04-18-2017 09:58 AM
Hello,
I have custom application in C#, which is running TestStand sequence. I am able to pass standard numeric/boolean/string variables from TestStand to C# using UI messages. Like:
double digitalInput = e.uiMsg.Thread.GetSequenceContext(callStack, out frameId).Locals.GetValNumber("digitalInput", 0);
How can I pass more complex data types (containers, arrays,..) from TestStand to C#? - Is it any similar easy way as with standard data types?
Thanks,
Petr
04-18-2017 07:24 PM
There are several ways to accomplish this. The simplest bet is to pass the sequence context as part of your UI Message and then use the TS API to get the data that you want.
Another option is to flatten the data to a string and pass it as a string then unflatten it in C#.
Here is a discussion forum about it a few years back:
There are other methods if you google: container UI Message TestStand.
Hope this helps,
04-20-2017 08:44 AM
Thanks Jigg,
I used the TS API applied on sequence context to get what I want.