Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

"Visa Configure Serial Port" equivalent for labview 5

I'm writing a simple Labview ascii data capture for the serial port for LabView 5, 6i, and 7.1.  I want it to be the most compatible with every version, so I need a "Visa Configure Serial port" equivalent VI for labview 5.  I'm thinking this could be made with Visa open and Serial port init, but which should be executed first?
  Posted is the result of downconverting the VI from version 6 to 5, as you can see the Visa Configure Serial Port vi is missing.
 thanks!


0 Kudos
Message 1 of 4
(3,738 Views)
For the VISA library architecture, any serial port configuration shall be done *AFTER* the VISA Open call.  This is because setting/getting any attribute (including Serial baudrate, databits, flow, etc...) for serial I/O requires a VISA Session handle.
0 Kudos
Message 2 of 4
(3,722 Views)

Hi,

You don't need a open VISA before configure it just work fine when you directly configure a serial port.

I don't think VISA already existed in LV5, but i can't remember.

I think it is better to make a VI in LV5 and then upgrade this for newer versions of LV

0 Kudos
Message 3 of 4
(3,708 Views)
In the visa since lv7.1 an open will be implitly done when not explicitly called.
So never reopen a device that is already open.

If you open a serial device it will use the defaults defined in MAX, if none are defined in MAX it uses baudrate 9600, bits 8
stopbit 1 and no handshake.
 
greetings from the Netherlands
0 Kudos
Message 4 of 4
(3,683 Views)