Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5     Rate this Document

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 out of the first VISA function to the error in of the next VISA function  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 following Block Diagram demonstrates how to communicate with two GPIB Instruments using data flow.



Related Links:
GPIB (IEEE 488) Solutions
Product Manuals: GPIB Hardware Guide
Product Manuals: NI LabVIEW 8.6 Help-Block Diagram Data Flow


Attachments:





Report Date: 11/13/2003
Last Updated: 09/11/2008
Document ID: 33CFMUFQ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit