NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

What Lookup String can I use to get the sequence file name and the step name form a DLL?

Hello,
My sequence makes a DLL call to a function written in CVI. In that CVI function I need to know the name of the sequence call and the name of the particular step that made the call. I know that by using the function TS_PropertyGetValString I can get different parameters. What is the Lookup String that I should use to get the name of the sequence (actualy, the file name) and the name of the step that made the call?

With respect,
Yariv Guy
Enertec
yariv@enertec.co.il
0 Kudos
Message 1 of 2
(2,254 Views)
Hi yarriv,


To get the sequence file use RunState.SequenceFilePath. This returns the full pathname.

To get the step name use
TS_PropertyGetProperty(propObj, &errorInfo , TS_PropertyName, CAVT_CSTRING, &Name);

If the propObj is for a Step Object then the step name is returned. If for a Sequence Object then the sequence Name is returned.

Hope this helps

Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,254 Views)