It is simple to assign stdout to a single variable in TS...
But I would like for my executable (python script) to print to stdout an array of data and I want to populate/update several variables in my teststand sequence.
Is there a way to do this?
I don't really think it is possible with the expression browser? Perhaps it is?
Solved! Go to Solution.
I found another forum post where someone had a similar question: https://forums.ni.com/t5/NI-TestStand/How-can-I-automate-a-simple-exe-using-the-step-call-executable...
Sounds like compiling the executable into a dll may be easier to implement - check out the final comment for an explanation of it.
However, if you are able to get the output into stdout, you may be able to do parse it out in the post-expression, although you may still have the same issue. It may be easier to parse this by passing it to a LabVIEW VI.
Yes I think that this is the best solution...
I can use all string manipulation functions and regular expression to extract the values I want...
We also just announced a beta release of our upcoming Python Step Types for TestStand that will allow you to call into Python scripts without having to go through the call executable step and do string parsing. You can read more about the features in our announcement post here:
We'd love to get your feedback on the step types! You can sign up for the beta now at ni.com/beta. We'll be releasing the beta software next week.
Product Support Engineer | Automated Test Software