NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing Python script with Teststand 2019

Hello together,

 

I am trying to call a python script from TestStand for the first time. The script returns a list, a 2D array of numbers (type numpy.ndarray in Python) and a 1D array of numbers (numpy.ndarray). After calling the method from .py program in TS I get a Return value in the module window where I set a local container containing an array of strings, a 2D array of numbers and 1D array of numbers. Every run I get an error on the return function and I am not sure what it is wrong. How should I create the Return variable in TS in order to fit to my returned values from the Python method?

And also is there a way to assign a variable for only one of the returned variable of my method? 

 

Thank you in advance!

0 Kudos
Message 1 of 3
(2,111 Views)

Google teststand python to get the document 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000fzNhSAI&l=en-US

 

FYI

0 Kudos
Message 2 of 3
(2,086 Views)

Hey,

 

Did you managed to find a solution? I also have a similar challenge 🙂 

0 Kudos
Message 3 of 3
(1,706 Views)