NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual C++ 6.0 usage with TestStand

Greetings!  I would like to have a jump start in using Visual C++ 6.0 with Test Stand.  Any example of Visual C++ DLL and sequency file which demonstrates the most basic function as below :
Example 1:
a.  Test stand sequence calls a Visual C++ 6.0 DLL and pass in 2 parameters, say a variable type of float - "fInput" and another variable type of integer - "nPower"
b.  The Visual C++ 6.0 DLL calculates "fInput" to the power of "nPower" and pass back the results to Test Stand
c.  Test Stand evaluate the result by comparing to the upper and lower limit

Example 2:
a.  Test stand sequence calls a Visual C++ 6.0 DLL and pass in 1 parameter, says a variable type of string - "strMeasType" (value of "AC" or "DC")
b.  The Visual C++ 6.0 DLL reads the parameter and configure an instrument, says Agilent 34401A, to measure either ACVolt or DCVolt depending on "strMeasType" (using VISA)
c.  Test Stand evaluate the result by comparing to the upper and lower limit

Thanks a lot!

0 Kudos
Message 1 of 3
(3,123 Views)

Hi,

Have you looked at the examples supplied with TestStand.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,099 Views)
Hi,

What you are trying to do is pretty basic TestStand functionality. There are several resources you can use to get information on howTestStand and C++ DLL's can interact.

For instance, you can check out http://ni.com/manuals (or more specifically, http://sine.ni.com/manuals/main?q=Teststand) to look at the TestStand documentation that is shared online. For more TestStand documentation, you could also open TestStand and follow the Help menu to Help>>Search the TestStand Bookshelf. This will open a PDF with a link to several helpful documents. You could also check out the NI Developer Zone and search for help there.

If you are looking for specific coding examples, there are several examples of how to access a C/C++ DLL in <TestStand>\Examples. Specifically, you could look at the <TestStand>\Examples\MultiUUT example. While this example does not perform your exact requirements, it does demonstrate how a TestStand sequence file can use a DLL and how to evaluate limits. If this example is not what you are looking for, you can always search on the previously mentioned NI Developer Zone and look for example code to find something that better fits your needs.

Message Edited by Matt Mueller on 08-14-2006 03:20 PM

0 Kudos
Message 3 of 3
(3,075 Views)