LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA read doesn't return anything

I'm trying to use SCPI commands to send Keithley measurements to labview.  I wrote a test code for the *IDN? command and using the write function I can get a return count but when I try to read the response, I don't get a return count regardless of my buffer count.  I was able to get everything working in the VISA test panel, so I don't understand what the issue is. 

Download All
0 Kudos
Message 1 of 2
(209 Views)

You have a very common issue.  Look at the string constant.  Right-click on it and select Visible Items->Display Style.  You will now see a 'n' appear on the left part of the constant.  This is an indicator that your constant is in "Normal" style.  What this means is that every character in the constant is a literal character.  In other words, you are not sending the Line Feed to end the message.  Instead, you are sending the literal characters '\' and 'n'.

 

Now click on the little 'n' and change the display style to '\' Codes Display.  You will now notice there are two '\' characters.  Delete one of them.  Now you will have a \n code, which is a Line Feed to end the command.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(199 Views)