06-04-2015 04:08 PM - edited 06-04-2015 04:09 PM
Hi,
I've gotten my pressure gaugse instrument setup with NI Max, so I can send and read commands via serial (RS232). However in Labview I'm getting a "VISA Read in " error. I've attached pictures of the labview program and some syntax requirements from the instrument's manual.
Any ideas?
06-04-2015 04:11 PM
I've attached some commands from the instrument's manual. "\r" is the carriage return I'm using for NI Max.
06-04-2015 04:14 PM
What's the display mode of your string control? I think you may have forgotten to turn on '\Codes Display"
06-04-2015 04:24 PM
^It was on normal. I switched to '\' Codes Display and it's not working. The odd thing is everything seems to work fine in the VISA Test Panel. I've attached a picture.
06-04-2015 04:26 PM
Did you fix the extra slashes that showed up when you switched to "\Codes"?
I'm pretty sure you'll stop getting that timeout if you can get your string to match the one in the Test Panel.
06-04-2015 04:28 PM
^I just tried that and still no luck. I've attahced the new vi.
06-04-2015 04:31 PM
OK. Do you need to configure your serial port? Perhaps with VISA Configure Serial Port?
06-04-2015 04:44 PM
The buad rate needs to be changed to match the device's of 19200. I've attached the settings that worked with the VISA test panel
06-04-2015 04:50 PM
Use this function to set your baud rate from LabVIEW
http://zone.ni.com/reference/en-XX/help/371361L-01/lvinstio/visa_configure_serial_port/
06-04-2015 04:53 PM
^That did the trick. Thanks!