NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

StationGlobals.NewSubproperty

Solved!
Go to solution

I am trying to set up a station global on the fly in test stand. The variable that I want to set up is a number. If it already exists I want to do nothing. I am trying to use the  StationGlobals.NewSubproperty. These are the properties I am passing in StationGlobals.NewSubproperty("Test", PropValType_Number, False, "999999", PropOption_DoNothingIfExists) but it does not work. Any help would be appreciated.  

0 Kudos
Message 1 of 3
(3,408 Views)
Solution
Accepted by topic author mdcoco

It worked for me with the following:

 

StationGlobals.NewSubproperty("Test", PropValType_Number, False, "", 0x4)

 

Not sure what the 999999 you had is doing?  Also, I used 0x4 instead of the Property Option.  Seems more stable to me.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(3,398 Views)

Thanks !!

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