07-20-2017 08:54 AM
Hi, I get the above error when trying to update Boolean variable Station Globals in Teststand 2014 from LabVIEW 2015;
Solved! Go to Solution.
07-20-2017 09:00 AM - edited 07-20-2017 09:01 AM
07-20-2017 09:32 AM
I already creat the variable in TestStand.
Even i can creat a new string variable from labview but i can't do that if the variable was boolean.
07-20-2017 11:22 AM
You are not passing a valid value to the options parameter for SetValBool. Replace "PropValType_Boolean" with a numeric constant of 1, which corresponds to "PropOption_InsertIfMissing".
07-21-2017 04:38 AM
If it works it works..... but I am not sold on that solution. I have attempted to replicate what bill0w is doing.
The VI below works fine for me (no run time error), LV 2014 & TS 2014. NOTE: I also manually created the Global Boolean "StevesBool" in TestStand prior to the VI running.
Is it possible something else is going on here?
07-21-2017 08:47 AM
You're correct that something else is probably going on Steve. TestStand will ignore invalid PropOptions.
Since that variable is stored in StationGlobals.ini, it's possible that file was deleted or the variable was added to the ini file for a different bitness of TestStand (like if using the 32-bit sequence editor, but a 64-bit LabVIEW OI).
I could come up with some other wild theories, but realistically - the variable didn't actually exist, or that error would not have been thrown.
Hope this helps!
Trent
07-21-2017 09:38 AM
It is not correct to pass a PropValType constant for the options parameter. The options parameter is expecting PropOption constants (using bitwise-OR to specify more than one). See the API help for details.
07-21-2017 09:44 AM
07-21-2017 09:59 AM
Thanks WireWeaver, it is good to know that TestStand ignores invalid PropOptions rather than throwing an error.
07-24-2017 09:47 AM
The API takes an integer. It's not necessarily ignored. It might be misinterpreted to mean something you didn't intend if the value you pass corresponds to one or more valid property options. Make sure you don't pass the wrong kind of value for these integer parameters. If you aren't sure what to pass for a parameter, check the API help.
-Doug