NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Controll TestStand form a other application on the same system

Hallo,

My task is to write an application that allows me to control TestStand 2022. For example, I should be able to start a sequence from my program, and this sequence should also start in the TestStand 2022 application, like a remote control. Both programs are running on the same system. In principle, this should be possible if I can access the engine instance of my TestStand 2022 application. Unfortunately, I don't know how to achieve this. Here are some ideas I have:

  • Configure the TestStand 2022 engine as a remote engine.
  • Write a tool that is called from TestStand 2022 and can be used to control it.
  • Find a way to send the engine instance to my application in some manner.

Furthermore, I would like to mention that I need to establish a TCP connection in my application through which I receive the commands.

I am grateful for any assistance.

Best regards, Tim

0 Kudos
Message 1 of 4
(904 Views)

You can access the TestStand engine using the ActiveX API 

TestStand comes with some good examples, also the example OIs might be of great help

 

if you need to achieve this using TCP/IP you want to take a look at

 

https://github.com/ni/grpc-teststand-api

 

 

 

 

0 Kudos
Message 2 of 4
(878 Views)

Thank you very much for your quick response! 

Do you mean the normal TestStand API with the ActiveX API? Furthermore, I would be interested in which examples are suitable for this and where to find them. I am aware that there are examples for TestStand under "C:\XXX\National Instruments\TestStand2022\examples", but I could not find anything helpful here.

0 Kudos
Message 3 of 4
(871 Views)

The TestStand engine is basically an ActiveX Server. So yes, the TS API can be used accessing this server.

The gRPC Stuff I had lonked in the previous post is more or less a wrapper to make the API accessible via TCPIP

 

I have no computer with a TS installation available at the moment, yet IIRC there are some examples in that folder which actually refer to the API in their name. Please also check about the example operator interfaces.

 

for clarification: the TS Sequence Editor is just a program, which uses the API, so everything you can do with the SeqEdit  can be done with your own code. If you know how 😁

0 Kudos
Message 4 of 4
(853 Views)