Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to read SMU voltage/current after closing the original session?

Solved!
Go to solution

What is the method, or is it even possible, to read the live voltage and current measurements from a PXIe-4138 SMU after the original configuration session has been Closed?  I have a (relatively) long-running Teststand sequence that configures the SMU to deliver power to the DUT, then performs tests and along the way I need to take the SMU readings.  I've always been under the impression it's best practice to open, configure, and close the SMU quickly, but the 3-state programming model doesn't seem to allow a way to jump back into the Running state from Init with Channels VI, except by going through Uncommitted and Committed states, and thereby shutting everything down in the process. The Power Measure VI only works if you're in the Running state. Seems like a no brainer, so what am I missing?

0 Kudos
Message 1 of 4
(4,587 Views)
Solution
Accepted by topic author bholsinger

@bholsinger wrote:

I've always been under the impression it's best practice to open, configure, and close the SMU quickly


That is BAD advice.  You open at the start of your program, you do whatever you need to with it inside of your test program (configure, read, etc) and you do not close the session until you are shutting down your program.


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
Message 2 of 4
(4,571 Views)

Is the best practice to open the SMU at the beginning of the test sequence, and store the reference into a file global?  We have multiple different VI's that need to access the SMU (sometimes just to read the measurements, without changing any running parameters), and all those VI's will now have to be re-written to reference a global teststand variable, which won't exist when the VI is run stand-alone.  Now it becomes more difficult when developing VI's that access the SMU: we can't just run the VI by itself to test the functionality, now we have to run it inside a TestStand sequence that opens and closes the instrument.  

 

Advice is very welcome. Thanks!

0 Kudos
Message 3 of 4
(4,546 Views)
Solution
Accepted by topic author bholsinger

I store my instrument reference in an Action Engine, so it stays independent of TestStand.


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
Message 4 of 4
(4,544 Views)