NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

insert a local variable using the TestStand API

I've created some Global Variables using the ActiveX Adapter of TestStand. How can I insert local variables in my sequence? And an array? And how can I delete all this stuff? I'd like to create at the beginning of the sequence a lot of variables and at the end remove all. Some ideas? Thanks in advanced,

Angel
0 Kudos
Message 1 of 5
(3,966 Views)
Here you can find an example how to insert an array in the local variables:

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EB9B56A4E034080020E74861&p_node=DZ52194

You can delete variables with the method "DeleteElements" of the PropertyObject Class

Hope this helps.
0 Kudos
Message 2 of 5
(3,966 Views)
Hi Andre,
Thanks a lot, but I want to manage this only with an ActiveX action from the TestStand API operator interface. If you have some idea, please let me know.

Angel
0 Kudos
Message 3 of 5
(3,966 Views)
Hi,

I have attached an example creating an Number and Array of Numbers using API calls.

You dont really need to delete them at the end because the SequenceFile has not been set to indicated that the file has changed and therefore the variables are only available during execution.

But I have put an example of deleting the array in the cleanup.

Hope this helps
Ray Farmer
Regards
Ray Farmer
Message 4 of 5
(3,966 Views)
Hi Ray,
This is exactly what I need. Thank you very much!

Angel
0 Kudos
Message 5 of 5
(3,966 Views)