NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a variable named "PI"

Solved!
Go to solution

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

0 Kudos
Message 1 of 6
(3,311 Views)

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

Regards
Ray Farmer
0 Kudos
Message 2 of 6
(3,307 Views)
Solution
Accepted by JICH

Finally we found a solution,

 

Locals.PI_Get = ThisContext.AsPropertyObject.GetValNumber("Step.Result.PI",0)

 

 

 

0 Kudos
Message 3 of 6
(3,305 Views)

Jim -

Just to let you know that we are aware of this and we have an open issue, 131253, on this limitation.

Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 6
(3,277 Views)

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

0 Kudos
Message 5 of 6
(3,252 Views)

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.

With warm regards,

David D.
0 Kudos
Message 6 of 6
(3,231 Views)