My Instrument Cannot Communicate with LabVIEW

Updated Sep 21, 2018

Reported In

Software

  • LabVIEW

Driver

  • NI-VISA

Issue Details

Whenever I try to send commands to my instrument via NI VISA in LabVIEW, nothing happens.  There is no hardware or software response to my commands in NI VISA functions.  When I test my device in NI MAX with a VISA test panel it works fine.  However, my code does not work in LabVIEW. How can I fix this?

Solution

It is possible that we are sending the wrong commands to our instrument in LabVIEW.  To fix this:
  • Check the string control that sends the commands to the NI VISA functions.  Right-click on the string control and make sure the display mode is set to '/' Codes Display.

Additional Information

​NI-VISA functions in LabVIEW take commands through string controlers defined in LabVIEW.  Everytime you use a string controller, remember that there are several ways to display or interpret a string in a programming language.  LabVIEW is not the exception.  In Normal Display mode you could be sending commands with extra characters (like carriage returns, new lines) that are not visible.

WAS THIS ARTICLE HELPFUL?

Not Helpful