Controlling Multiple GPIB Instruments on the Same Bus at the Same Time in LabVIEW Hardware: GPIB>>External Controllers/Convertors>>GPIB-ENET
Problem: I want to run tests with two different GPIB instruments on the same bus at the same time. What is the best way to implement this in LabVIEW? Solution: This can be easily done using data flow. Simply control the order of operations that you want to execute by connecting the error in and error out inputs and outputs in line of all the VI’s on your block diagram. For example, you could do a VISA Open VI for one resource, and then connect the error out to the error in of another VISA Open VI for another resource. You could then connect together a VISA Write to Instrument 1, then a VISA Write to Instrument 2, then a VISA Read from Instrument 1, and then a VISA Read from Instrument 2 all in sequence in the same manner. A write or read by one instrument should not affect a write or read by another instrument. Using data flow is more effective and better programming than using case structures. The Block Diagram picture in the Attachments section demonstrates how to communicate with two GPIB Instruments using data flow. Related Links: Attachments:
Report Date: 11/13/2003 Last Updated: 01/16/2004 Document ID: 33CFMUFQ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
