NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Reference to C# objects in TestStand - how to save and retreive them

I am new to LabView and TestStand.
I want to use 2 .NET objects in those applications
 
In Labiew, I successfully created the objects, manipulate the functions through VIs and closed the references.
 
While I could use the VIs for TestStand, I would rather use the DLL directly.
I am able to create both objects in a sequence, but I have problems with the following:
 
  - I don't know how to save the reference to the object after the constructor is run.
    - is the object stored in Globlal variables? I tried 'RunState.Engine' but it does not work
 
  - I don't know how to get the reference back in the other steps where I want to reuse the object to invoke a method on.
 
  - Once I can do the above, I need to get it to work in the 'batch' or 'parallel' modes.
     I am using successfully the 'RunState.TestSockets.MyIndex' to select my testing resources,
     but I am still confuse as where the array of objects would be.
     Note that I already set the number of DUT <> 1 and I can create successfully my 2 objects in X instances.
 
Thanks,

Daniel Coupal
 
0 Kudos
Message 1 of 3
(3,473 Views)
dcoupal,

Getting the reference to the object involves specifying that as a return value in one of your parameters when you specify the module for that action. Inside of the parameters table you can also save that return value as a local object reference and then use it later on in the sequence.

Regarding your second question, I'm not sure what the array of objects is that you're referring to but this KB might be of some assistance.

Message Edited by Jon M on 11-01-2006 12:44 PM

Test Engineer - CTA
0 Kudos
Message 2 of 3
(3,453 Views)

Jon,

thanks for the pointer, it is working now.

Regards,

Daniel Coupal

 

0 Kudos
Message 3 of 3
(3,426 Views)