10-11-2023 04:28 AM
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:
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
10-11-2023 11:49 AM
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
10-11-2023 12:32 PM
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.
10-11-2023 03:29 PM
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 😁