LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication via Sub vi

i wrote a vi to communicate with my test device. It works fine if it is used as a "standalone". When i try to call it from another vi as a Subvi no communication is possible. (time out). In the main vi i never use serial communication.

Greetings J.Lankenau

(english is not my native language)
0 Kudos
Message 1 of 5
(3,132 Views)
Are you correctly defining the VISA resource name in your main VI and passing it to the subVI? Same question about the port number if you're using the old serial VIs.
0 Kudos
Message 2 of 5
(3,132 Views)
Make sure you are trapping the errors properly. There shouldn't be any issues called a Serial/VISA application as a SubVI. Use the debugging tools to ensure that no errors are being generated and the SubVI is in fact being called.
0 Kudos
Message 3 of 5
(3,133 Views)
Hello,

I had downloaded a driver for my data acquisition switch.

As the communication with this instrument is made via a serial port (interface), it's necessary to install additional software (NI 488.2 or/and NI-VXI).

Should we install NI-488.2 or NI-VXI?

Where can we download them?

Thank you in advance

Best regards

Angel
0 Kudos
Message 4 of 5
(3,082 Views)

Neither. NI-GPIB is for communicating with a GPIB instrument and NI-VXI is for a VXI chassis. You have an instrument connected to the serial port. All you should need is NI-VISA installed. The VISA driver is on your LabVIEW drivers CD. Check MAX to see if it's already installed. You can also get the latest here.

Message 5 of 5
(3,072 Views)