LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help on the error in (out) cluster of VISA

I am a learner of Labview. I am using VISA to design my serial communication. The problem is how I create a cluster that can connect with the ERROR OUT / ERROR IN PIN of VISA? Thank you very much
0 Kudos
Message 1 of 3
(2,766 Views)
Look on the Array and Cluster palette and you'll see Error In and Error Out controls already built for you.
Message 2 of 3
(2,766 Views)
Typically you don't need to worry about creating an error in control. The default value if not wired is the same as wiring in a cluster with no error. So your first VISA call in the chain does not require an error cluster wired in. Just make sure you chain its error out to the next call's error in. By the way, this is standard LabVIEW coding practice.

Then all you need to worry about is handling the error out cluster from the last call. If the error boolean is false, then all the calls succeeded. Note that you should not be checking to see if the status code is 0, since some VISA calls put a positive value in the status code even though they are not errors.

Dan Mondrik
Senior Software Engineer, NI-VISA
National Instruments
Message 3 of 3
(2,766 Views)