NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating C++ DLL for TestStand 3.5

Hi,
 
I am working on a small project to add functionality to our Common Sequence calls in TestStand 3.5.  I have created a custom step type by copying the Action step type from NI_Types.ini into MyTypes.ini.  I designated the adapter as Sequence and added a C/C++ DLL as a Substep.
 
I would like to call a DLL that launches a help file based on the name of the sequence.  I believe that this information is located in Step.TS.SData.SeqName, so I know that I will need to pass that to the DLL.  I planned on simply using a lookup table that loads a different string (the path of the file and filename) into ShellExecute to launch the corresponding help file.  I know that this is a rather simple DLL to write, but am unsure of how to do this (if the way I'm trying to do this won't work, please let me know).
 
I would greatly appreciate it if somebody could provide a code example of how to do this, and let me know how to actually create the DLL.  I know that this isn't exactly a TestStand question, but it is the last step in implementing this functionality and I am stuck at the moment.
 
Thanks in Advance,
Bryan
0 Kudos
Message 1 of 6
(4,556 Views)

Nevermind, we just got it.  If anybody else needs help with this, let me know.

0 Kudos
Message 2 of 6
(4,548 Views)
Hi,
I am very new to TestStand tool. I want create and execute sequence through programmatic using C#.NET. If solution provided with sample code is greate appreciative.
 
regards
RKK
0 Kudos
Message 3 of 6
(4,404 Views)
Hello

I'm also quite interested in an C#  example using the TestStand .Net API running without the ActiveX classes.
Basically I only would like to select a sequence file, open it and run the complete sequence. I don't need any UI and want to define the sequence file and path directly in the code.
Would be great if somebody could post an example how to do that using the Engine Class and the ApplicationMgr Class.

Many thanks
Stefan
0 Kudos
Message 4 of 6
(4,397 Views)
Hello RKK and Stefan,

Thanks for contacting National Instruments!

Have you tried exploring the <TestStand>\Examples folder?  There are some text-based examples there that are great tools.  Furthermore, there is a TestStand Operator Interface that you can find at <TestStand>\UserInterfaces\NI\Simple\CSharp that you could use to get you pointed in the right direction.
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 5 of 6
(4,365 Views)

Hi Derrick S,

Thanks for suggestion. Could you please explain me how to pass parameters to dll through program? Please help me.

Please find my attachment. I would expect you to explain commented line regards to pass parameters.

Thank you

RKK

 

0 Kudos
Message 6 of 6
(4,318 Views)