NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling methods(functions) from Python scripts

Hello All,

 

I have just recently started to use the NI TestStand.

 

I have already written scripts in Python for my test automation system. I have read this tutorial: http://www.ni.com/tutorial/8847/en/ and I have watched the demo videos.

 

My question is: How can I call the methods inside of the Python scripts in NI TestStand? 

 

I could not have found any information from the tutorial given above. I understood that how can I call the Python scripts but I did not get how can I reach the methods inside of those Python scripts?

 

BR,

0 Kudos
Message 1 of 3
(5,036 Views)

Hello Selimcam,

 

take a look into this forum post: Exchange data with TestStand from a python thread

It discusses how to access the TestStand COM objects in python.

 

Regards

AndGar

Andreas Gareis
Senior Applications Engineer, NI
Certified LabVIEW Developer & TestStand Architect
0 Kudos
Message 2 of 3
(5,014 Views)

Hello AndGar,

 

Thanks for the reply. I understood that I need a C/C++ DLL library for TestStand to interface with Python, which is similar to the: Java Step Types. So this DLL ensures functions to invoke methods by specifying Python class and method name.

 

Does TestStand have such a wrapper DLL?

 

Best Regards,

 

Selimcan.

 

0 Kudos
Message 3 of 3
(4,956 Views)