NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

NI session manager question

I use NI session manager to control instrument,when I get the instrumenthandle and  can testing .but my question is :

if I close instrument power and not close NI teststand,but the teststand can run sucess ,my dll document run in demo.

but I think there must be a error ,and the dll return value is 0. in fact ,if the instrument closed, the return value maybe a negative.

how can I deal with it ?

0 Kudos
Message 1 of 6
(3,882 Views)

Hello Sean,

 

This post was recently brought to my attention.  It appears you may have posted earlier in October.  Are you still experiencing this issue?

0 Kudos
Message 2 of 6
(3,773 Views)

thank you very much ,the problem is still not sovled,In fact ,I can't  find out where I can change,it seems that teststand can run in demo if I shut down the instrument power under test,I hope the teststand can send out a caution or abort the test,but it does nothing.

 thank you no matter you can help me or not  。

0 Kudos
Message 3 of 6
(3,758 Views)

Hello Sean,

 

I want to make sure I fully understand your question.  Do you have a DLL that you are calling in your TestStand sequence as a code module?  If so, does a function within the DLL return a negative number if the instrument is not powered?  Is your overall question how can you determine whether the return value from the DLL is negative and make a decision based on this result?  Thanks in advance for these answers!

0 Kudos
Message 4 of 6
(3,732 Views)
that right, If I shut down the power,and the return value is not 0,negative or positive is not I need,so how can I deal with the return value?
0 Kudos
Message 5 of 6
(3,720 Views)

Sean,

 

You should be able to maintain a local variable to receive the return value from the DLL and then make decisions based on its value in later steps in your sequence.

0 Kudos
Message 6 of 6
(3,706 Views)