11-27-2008 09:24 AM
I have a typedef that contains a variable named "PI" like the constant 3.1416... but it's an acronym for "Program Information".... I can't rename it since it's a corporate typedef...
If I need to call it from an expression, TestStand takes it as the constant, but returns a syntax error due to variable notation... example "Step.Result.PI"
Is there a way to call it?
Thanks
Jim
Solved! Go to Solution.
11-27-2008 03:42 PM
Hi,
This type def called PI, you dont say what is made of, lets say its just a string containing information about your program. To use it you would insert it as a Local, FileGlobal, Parameter or StationGlobal in your Sequence/SequenceFile/Station Globals.
eg Insert into Locals of MainSequence, Locals.my_pi (this is avariable of type PI) and you would enter some inital value.
How this helps
Regards
Ray Farmer
11-27-2008 03:57 PM
Finally we found a solution,
Locals.PI_Get = ThisContext.AsPropertyObject.GetValNumber("Step.Result.PI",0)
11-30-2008 10:30 PM
Jim -
Just to let you know that we are aware of this and we have an open issue, 131253, on this limitation.
12-01-2008 12:54 PM
Hi Scott,
do you mean http://forums.ni.com/ni/board/message?board.id=330&thread.id=131253 ?
because it doesn't seem to work.
Thanks
12-02-2008 11:39 AM
Hello,
What Scott means is that you can call in to NI Support to find out the status using that ID or check the readme for a release to see if that ID was fixed.