NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

using a Teststand statement in LabVIEW

I want to be able to use the Seconds()expression from LabVIEW to obtain a time that has a relevance in the Teststand world.
I want to be able to reference the Teststand clock from LabVIEW to attatch time stamps to events that use the Teststand clock (Start of Teststand run), not the LabVIEW (since 1 Jan 1904) clock. Any help would be appreciated.
0 Kudos
Message 1 of 5
(3,434 Views)
Hi ADL,

Is this what you are after. (see attached TS2.01f1 sequence file and LV6.1 VI)

Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,434 Views)
Ray,

Thanks for your help, that solves my immediate problem.

The bigger picture question, was are we able to access the Statement Editor directly, e.g. sending a string statement to the engine, and getting a result back?

A.
0 Kudos
Message 3 of 5
(3,434 Views)
Hi,

Not sure I understand your question.

If you want to perform some method or function or query a property you can always use an API call using the ActiveX Adapter.
The example I supplied could have been an ActiveX Adapter calling the Engine object class and perform a Get Property.SecondsSinceStart.

Could you clarify what you are trying to achieve.

Regards
Ray Farmer
0 Kudos
Message 4 of 5
(3,434 Views)
Hi ADL,

I think what you are after is the method PropertyObject.Evaluate. Have a look at the help.

Bob
0 Kudos
Message 5 of 5
(3,434 Views)