NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

calling a C++ function

Hi, I am new to TestStand and would appreciate some help on this. I am using TestStand 3.5 for some automated testing. I have created a PCB board which uses RS232 serial communication interface and so far I have been communicating with it through Hyperterminal on PC. Now I would like to be able to incorporate it with automated testing with TestStand. For that, I have created a C++ serial port class and function which accepts 4 bytes and sends it on the serial port.

 

My question is, how do I call this from TestStand? Is there any step-by-step guide to doign this? I have created the CPP in Visual C++ 2008.

 

Thanks. 

0 Kudos
Message 1 of 2
(2,840 Views)

Hi Engineer101,

 

One way to integrate your code into TestStand would be to save it as a .dll file.  Cick this link for information on how to do this in visual c++ 2008. Once you have the dll, you can call it in teststand using a c/c++ dll action step.  I hope this helps, and let me know if you have any further questions!

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 2 of 2
(2,810 Views)