09-16-2024 02:10 PM
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.
09-16-2024 02:26 PM
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.