From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Separate Initialization and Settings of Card

Solved!
Go to solution

Hello All,

 

I have a programmable resistor card from pickering.  If I were using LabView, I would initialize the card, and then use the VISA function "SetChannelPattern" to set the resistance, and close the card all in the same VI.

 

In TestStand,  I want the initialize, set, and close into different steps, so that means I can't use a VI do this (correct me if I am wrong). Is there a way to do this? (maybe accessing the VISA functions or something?)

 

Pickering does have a few StepTypes for TestStand, but there is a bug, so I can't use it anyways.

I have also tried putting the initialize function in one VI, the set resistance function on another VI, and the close function in a third VI, and then pass the VISA handle using local variables within TestStand, but it keeps on giving me the error "Not a valid session".

0 Kudos
Message 1 of 2
(2,847 Views)
Solution
Accepted by topic author Bladhart

Separate functions should work just fine. How are you saving the VISA reference? Have you looked at the shipping example that uses the session manager? It does exactly what you are asking about.

 

Message 2 of 2
(2,822 Views)