NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Initialising StationGlobals

Hi, I'm new to Teststand 3.1 and was hoping someone can help me with a small problem.
Essentially what I want to do is initialise a StationGlobals 2d array periodically in my program.
The 2d array in question is not always the same size as it will contain communication data from a bus system which I want to clear after I analyze it.
Teststand has some functions available for 1d arrays but not for 2d.
Also I think it may be possible to send the array to Labview via ActiveX for clearing but I have no experience with this and don't know how to begin with it.
Does anyone have any advice ?

Thanks,




0 Kudos
Message 1 of 5
(3,390 Views)
OK,  I think i'm nearly there.
I used the invoke method application manager(get engine), property node engine( globals) , property object ( Set val Variant ) and gave it a blank array.
However how do I link the application manager to Teststand ?, do I wire the front panel icon to the vi icon ? and then link it to a object reference on teststand ?.

There seems to be very little info on ActiveX implementation out there, is a tutorial available anywhere ?
0 Kudos
Message 2 of 5
(3,361 Views)
Hi

Like you say you are nearly there. The easiest way to create the reference is in the way you create the Labview VI. 
In your Teststand sequence file create a new LabView action.
Bring up the Action Properties and under the General tab click on Specify Module.
Click on Create VI and specify the path.
This will  create a VI with a reference to the Testand sequence. Then create the Station Globals property node from this reference and then the SetValVarient method as you said in your previous post.

Hope this helps 
0 Kudos
Message 3 of 5
(3,342 Views)
Thanks a lot !

Worked a treat. My station globals are clearing now every time.

Is there an ActiveX ' map' or something out there that shows all the APIs that can be used with Teststand through LAbview ?
0 Kudos
Message 4 of 5
(3,338 Views)
Take a look at this:

http://digital.ni.com/manuals.nsf/websearch/BEA49C64F94A6BFE862572810060667A
0 Kudos
Message 5 of 5
(3,336 Views)