NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read expression as string through TS API

Hi,

I'm writing a custom step type with labwindows cvi, and i parse all step with Numeric test in sequence (and subsequence recursively).

I have no problem to read Low and High properties when it is a constant numeric value (ie 9, 11, ... using TS_PropertyGetValNumber (caobjStep, &errorInfo, "Limits.High", 0, &lfHigh))

My problem is to read properties with expressions inside (ie FileGlobals.Limits.iValMax[Locals.iLoopIndex]) as string.

I have tried TS_PropertyGetValString, but error.

If anyone can help me...

Thanks

0 Kudos
Message 1 of 3
(1,999 Views)

If you are doing this 'on the fly', you can use the function Evaluate to get the actual value contained by the variables.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 2 of 3
(1,994 Views)

Thank you for your answer.

OK for the value. But how can i catch the string of the expression?

Is it possible?

0 Kudos
Message 3 of 3
(1,981 Views)