LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sillicon Labs UART USB Communication with LabVIEW..

After starting, the data displayed on the screen repeats itself until "ESC" is pressed. Then you will have to press "1" and "Enter", but first I want to see what PUTTY shows.
I changed the display as you wrote, so now only "\05" is displayed.

0 Kudos
Message 21 of 26
(476 Views)

You still failed to show how you actually start putty. What is shown in the initial post is what putty will show after many many repeated outputs but not what the first exchange is right after you opened the putty session.

 

Obviously your device sends a character \05 which is according to the ASCII table an ENQuiry character. So it seems to prompt for something. That something is apparently presented by putty, for instance by you pressing enter after the session is opened, but maybe something else. You seem not to have enabled any terminal emulation so not sure, what would be answered normally on the ENQ character.

 

Actually Putty seems to have a default configuration: Answerback to ^E: Supposedly it would automatically send that string when receiving the ^E (\05) character:

rolfk_1-1705921033888.png

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 22 of 26
(466 Views)

Sorry, I forgot, this is the Putty setting:putty.png

0 Kudos
Message 23 of 26
(449 Views)

So what happens if you try to send LabVIEW\r\n right after receiving the \05 character and then just keep reading line after line with VISA Read?

 

Basically LabVIEW simply does communication without any automagical things, like what Putty does. Putty even on a normal serial line does some minimal terminal emulation.

 

One of them for instance is the checkbox under Connection->Telnet called Return key sends Telnet New Line instead of ^M.

^M is the single <carriage return> character, whereas the Telnet New Line is the <carriage return><line feed> combo.

 

The other is the Answerback to ^E: setting which defines what Putty will automatically send back when it sees the \05 (^E) character. It is highly unlikely that your device is specifically expecting "PuTTY" here (but it might be, or it might expect anything with TTY at the end, or maybe something else). It should be documented in the documentation for your device which you of course have, don't you?

So you'll have to experiment a little. Most likely it will also work with "LabVIEW" or maybe "LvTTY" or any random character followed by <carriage return><line feed> (\r\n).

Rolf Kalbermatter
My Blog
0 Kudos
Message 24 of 26
(431 Views)
He tried if I send "\r\n" or "\r" or "\n" before reading or after reading, but the character "\05" always comes back when reading.
0 Kudos
Message 25 of 26
(404 Views)

Well I guess we are at the point of RTFM. I really can’t guess what magical incantation this device needs, not the least because we have no idea  what the device is..

Rolf Kalbermatter
My Blog
0 Kudos
Message 26 of 26
(380 Views)