NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the teststand API from a C program

Hello,

 

I want to create a teststand sequence from a csv file via a C script for example. I searched a lot on the forums, the docs trying to find a procedure to be able to create a teststand sequence from visual studio in C++ but I can't do it...
Could someone explain to me step by step how to do this?


thanks in advance

0 Kudos
Message 1 of 5
(309 Views)

TestStand uses ActiveX for its API. The limitation could be in the support for ActiveX in C.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 5
(294 Views)

Hello,

 

I started with C++ so I can use ActiveX but from the little I found on the net you need the teststand.tlb file, the include and lib folder of teststand but I have to search, check and reinstall my teststand I still don't have them. Does anyone know how to do it?

 

Thanks

0 Kudos
Message 3 of 5
(279 Views)

I'm not the C++ guy, but if I were to do what you need, I would start with this example: %TestStandPublic%\Examples\TestStand API\Accessing Properties Using API\MFC\Accessing Properties Using API.seq. Optionally, you can also look at this example: %TestStandPublic%\Examples\TestStand API\Accessing Arrays Using API\MFC\Accessing Arrays Using API.seq.

 

If you learn how to access properties and call methods based on these examples, you should be able to do whatever you like using the TestStand API.

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 4 of 5
(258 Views)

Thank you for your suggestions, I finally succeeded using LabView...

0 Kudos
Message 5 of 5
(237 Views)