05-17-2018 09:02 PM
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.
05-18-2018 04:12 PM
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.
05-19-2018 11:22 PM
Also this: http://www.ni.com/tutorial/8847/en/
05-22-2018 06:21 PM
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...
05-23-2018 01:44 PM
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