Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 VISA basic example is working but not my program.

Hey Guys,

 

Bit of a noob when it comes to labview but please bear with me. Ok I have an RS232 device which has no previous drivers written for it. So I looked up and understand the VISA Basic example which connects and controls the device (Note it took a bit of reading these forums to get the \r\n term character problem sorted). No problems there. However if I try altering the write input string configuration with the exact same command string (either passing from another vi using the basic example as a subvi or changing the input so that a concatenated string is used such as "1 start" + "\r\n") the program completes without error, no read string is read back, and nothing happens with my device. I cannot figure this out and dont understand this. I have even left all the changes to the input string inside the case structure where the write string can be found in the basic example vi as can be seen from the attached pic. Has anyone got any suggestions please?

 

Tony

Download All
0 Kudos
Message 1 of 3
(4,814 Views)

Make sure your \r\n string constant is set to '\' Codes display. (also there is a end of line constant available on your string pallette you could replace that string constant with.)

I don't see any constant or control wired to your True/False case structure in your diagram.

Also include what version of LabVIEW you are using.

 

Now Using LabVIEW 2019SP1 and TestStand 2019
Message 2 of 3
(4,799 Views)

Ahhhhhhh! Success! EOL constant did the trick.

 

Thankyou very much GovBob.

0 Kudos
Message 3 of 3
(4,795 Views)