LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA: RS232 Two termination chars

Solved!
Go to solution

Hi.

I'm working in LV8.6, and have to do serial port manager. I have problem, because I have to allow user to use two termination chars in transmition. Is it possible to do with VISA? The termination chars should appear when reading and when sending.

0 Kudos
Message 1 of 4
(2,519 Views)
Solution
Accepted by topic author Czarek

Hi Czarek,

two termination characters for sending is no problem, but not for receiving. You should disable the termination character and read all bytes available. The you can cut your string with regular functions.

 

Hope it helps.

Mike

Message 2 of 4
(2,508 Views)

Hi MikeS81.

I'll follow your advice. Thanks a lot.

0 Kudos
Message 3 of 4
(2,504 Views)
Is the communication protocol specific in that the appearance of those 2 characters in that specific sequence indicates the end of the message, or is it more like a CR/LF situation? If it's the latter, then you can simply set the termination character for the read to be LF (i.e., the second character).
0 Kudos
Message 4 of 4
(2,483 Views)