09-02-2009 09:00 AM
Hello,
I'm quite new to Teststand.
I'm trying to create a LabVIEW step dynamically using ActiveX in Teststand.
What I'm trying to specify the LabVIEW module using the NI TestStand API with the class "Step" and the method "SpecifyModule". This makes sense to me but I'm asked to edit my ActiveX call. I'm probably not using the good class or method.
Any help would be greatly appreciated!
I've attached screenshots for more clarity.
Thanks in advance!
Solved! Go to Solution.
09-02-2009 01:43 PM
Hi,
Have you had a look at the SequenceBuilderTool.seq in the Examples folder.
I would suggest this is a good place to start.
Regards
Ray Farmer
09-03-2009 03:02 AM
Hi,
If you are using TS4.0 ot higher, there is no need for using the Active-X Step Type.
You can access the TS-Api by using the a Statement Type or every Pre-,Post- and Status Expression.
The biggest advantage is that you have "multi"-lines or lets say if one expression you can call more than
one api function. It just like writing a script.
Greetings
Juergen
09-03-2009 01:20 PM
Hello,
First, thanks for taking time to answer to my post.
I had a look at the Sequence Builder and I understand most of what is going on there. What I haven't figured out yet is how to link the VI's terminals (input and output) to the TestStand's variables (Locals or FileGlobals for exemple) dynamically. I guess there is a class and "Call Method" or "Set Properties" in the API. Help would be greatly appreciated on this...
I've tried using Statement Type this morning and it work pretty well. It will be much more readable that way. Thanks for the tip.
Vincent
09-04-2009 10:09 AM
Hi Vincent,
Try this example.
With the builder.seq you will create dynamically a test.seq
it will contain the LV Dialog from NI.s Hello world example - Computer.seq
The sequence, step, and variables, and parameter linking to LV are included
Greetings
Juergen
09-04-2009 10:22 AM
WOW,
This seems to be a pretty good example that will help me alot. Thank you very much... I'm always amazed by the amount of help we can get on this forum...
Thanks again!
Vincent
01-28-2010 12:12 PM
Juergen,
I am interested in your example. I am looking for details on how to add parameters to a step using activex. Unfortunaly it seems that the attached "CreateSeqFile.zip (268 KB)" is corrupt when I try to download it.
please repost the attachment (or point me to a good example of adding parameters to a step)
Thanks,
Lonnie
01-29-2010 12:55 AM
Hi
I have downloaded my stuff tested it in TS and rezipped on my office maschine. (385Kb ?!?!)
To create an Active-X Step you should take a look to the ActiveXAdapterModule in the help.
http://zone.ni.com/reference/en-XX/help/370052H-01/tsapiref/reftopics/activexadapter/
Here is a thread to create a .net step
http://forums.ni.com/ni/board/message?board.id=330&thread.id=26979&view=by_date_ascending&page=2
hope this helps
Juergen
02-03-2012 10:44 AM
This is a very good example.
Has any one seen the same process of creating a LV step but in LabVIEW?
The test sequence translator expample only has a custom step type with no adapter.
Thank you.
02-06-2012 01:33 AM
Hi jgonzalez,
I have choosen to do the example in TestStand itself. So everyone may join it.
Of course you can do this in LabView, by using the TestStand API.
The TestStand programm could be a useful template for the LabView block diagramm.
If you are using it in the same order, you will get it running in LabView.
Hope this helps
Juergen