Communicating with an Ethernet Controlled Instrument in LabVIEW

Updated Dec 13, 2017

Reported In

Hardware

  • cRIO-9067

Issue Details

How do I communicate with an Ethernet instrument in LabVIEW? Or I am trying to communicate with an Ethernet instrument in LabVIEW with a cRIO, but I can't create a TCP/IP resource in MAX.

Solution

There are two ways to reference an Ethernet instrument in LabVIEW: 
  • Create a VISA resource constant.  The instrument reference in the figure below is TCPIP::xxx.xxx.xxx.xxx::INSTR, where the x's refer to the instrument's IP address, and INSTR is the resource name. (INSTR may not always be the resource name, check your device's manual.) This method does not require configuration in Measurement & Automation Explorer (MAX). 
  • Create a new TCP/IP VISA resource in MAX.  Then reference the VISA Alias in LabVIEW instead of using the constant created in the previous step.  To setup the TCP/IP VISA resource, refer to the Ethernet Instrument Control Tutorial referenced below. Because cRIO real-time targets do not have the ability to create a new TCP/IP VISA resource in MAX, you need to create a VISA resource constant to communicate with an Ethernet Instrument.

Additional Information

  • More information regarding VISA resource constants can be found here.

WAS THIS ARTICLE HELPFUL?

Not Helpful