ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating variables/parameters from a code module that persist when the sequence is over

Solved!
Go to solution

I am creating variables/parameters programmatically in a code module (C#) by passing in the Locals object and calling the method 'NewSubProperty'.

I've also tried SetValNumber with PropOption_InsertIfMissing.

 

But it seems they are only being created in that instance of the sequence, because they are gone when the sequence is over. I really wanted them to persist.

I wanted to avoid creating station globals dynamically like this, but maybe that's all I can do to make them last.

 

Any ideas would be gratefully appreciated.

Thanks,

Ronnie

 

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 1 of 3
(3,155 Views)
Solution
Accepted by topic author Believer

Hi,

 

Check out the links on this response

http://forums.ni.com/ni/board/message?board.id=330&message.id=11226&query.id=267719#M11226

 

It maybe of help

 

Regards

Ray Farmer

Regards
Ray Farmer
Message 2 of 3
(3,142 Views)

Thanks Ray - I thought I'd searched extensively before asking the question, but obviously not!

Thanks for taking the time to direct me to that post.

Best regards,

Ronnie

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 3 of 3
(3,129 Views)