NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to transfer values of local variables from TestStand 2.0 in CVI module?

What kind of adapters type should I use to pass Locals var from TS2.0 to CVI function? Any examples?
0 Kudos
Message 1 of 2
(2,537 Views)
Hi,

Use the C/CVI Standard Prototype Adapter.

Inside your code module you would use an TestStand API call to obtain the value from your Local variable.
e.g.
// tsErrChk (TS_PropertyGetValString(testData->seqContextCVI, &errorInfo,
// "Locals.MyName",
// 0, &UserName));

This obtains the string value from the Locals.MyName variable.


Look at the example \TestStand\Examples\Demo\C\computer.seq for starters.

Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,537 Views)