LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get each step name of the sequence file in CVI?How to transfer a string value to teststand?

Hi,I have devised a sequence file with teststand in which some steps are locating,I want to get each step name (or other attribute) in my CVI code and display them in the list string,how can I do with it?Is there any example for that?,I have sought for a long time,but didn't get it,please show me the URL or some code.
Thanks a lot:).

Another question for you, for instance(in Teststand):
Prototype:
long steven(char *sbc)
Function Call:
steven(&Locals.xyz)

CVI(External DLL):
*abc="Who am I?";
Teststand:
Locals.xyz, (define string)
It seems this method doesn't work,how to transfer the value of abc to the Locals.xyz?
Thanks a lot:).
0 Kudos
Message 1 of 4
(3,393 Views)
Hello,

With regards to your first question, you can use the TestStand API in CVI to get the name of a TestStand Step. The API call that you will want to use in CVI is called TS_StepGetName. For more information on using the TestStand API, I would look up the article in the TestStand help called "Using TestStand API Objects."

With regards to your second question, I am assuming that you are asking how to get the value of a TestStand string local variable inside your CVI code module. If this is what you are asking, you can use TS_PropertyGetValString in CVI to do that.

I hope that this information helps you out.

Regards,
Kevin L.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,378 Views)
Hello,Kevin,
Firstly,best regards for your timely answer.Under your instruction,I have solved the first problem.
As to the second,I mean to send a string value(abc="Who am I?") to the variable (Locals.xyz) in Teststand circumstance.
Prototype:
long steven(char *sbc)
Function Call:
steven(&Locals.xyz)
The instance above doesn't take effect,so how can I do in the Teststand for that?
🙂
0 Kudos
Message 3 of 4
(3,373 Views)
Hello,

To set a TestStand string local variable from CVI you will want to use the TS_PropertySetValString method. You can pass in a reference to the sequence context as well as the lookup string to the local variable. The lookup string would be something like Locals.XYZ. I hope that information helps you out.

Regards,
Kevin L.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,356 Views)