NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use parameter by Val in TS?

HI,
 
I want to specify in the TS CVI Module Call a parameter (panel) and use it by Ref.
 
I specified in CVI :
     "long __declspec(dllexport) TS_HandlePanel(CAObjHandle context, long *TSpanel, long mode, const char *retErr)"
I specified in TS in the CVI Module Call a numeric parameter:
     panel
     long*
     Signed 32-bit integer
     by ref
 
I follow step by step with the CVI debugger and I see that the value of TSpanel is set to some value, however, whet the function ends, the value in TS remains 0.
The value doesn't pass!!
 
What is wrong with this procedure?
 
(I know how to transfer the value with the API function TS_PropertySetValNumber, but I wanted to try it this way...)
 
Thanks for helping    
0 Kudos
Message 1 of 2
(2,766 Views)
Hey Rafi2003,

It looks like you have everything set up correctly as far as the dll and the function call.  I'm assuming you are passing in some Local value from TestStand?  One thing to keep in mind is that you are only going to be modifying the run time copy of whatever variable you are using.  In other words to see if the value is changing, you will need to set a breakpoint and check the value from the Context tab within TestStand.  If you are already trying this, could you post a screenshot of your specify module window?
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,749 Views)