Showing results for 
Search instead for 
Did you mean: 

Sending multiple commands to power supply

Go to solution

Hi everyone,


I am programming a Keithley 2260B power supply using LabView 2013.  I know that I am able to make a connection with the power supply because when I do a *IDN? query, it returns the name of the instrument and its information in the read buffer. 


However, this code only runs every other time I run it.  The next time I run it, I will get a timeout error in the visa read, but if I run it another time, it works fine.  If I were to put another *IDN? query after the first visa read, it also doesn't work.  


I have a feeling this might be very obvious, but I just can't see it.  Any help is appreciated 🙂

0 Kudos
Message 1 of 3
Accepted by topic author _natalie_

Your second write has the string in the wrong display type.  You are sending the literal string "*IDN\n" instead of "*IDN?" with a carriage return.


A simple fix would be to use the Send End Enable (just pull the property node down to have one more input and set it to TRUE).  Then you do not have to mess with adding the carriage return as VISA will do it for you.

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 3

Thanks for finding that!  I wasn't able to get the new property node to work, but I will play around with that some more.  Thanks again.

0 Kudos
Message 3 of 3