NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a LabVIEW Step dynamically

Solved!
Go to solution

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!

Download All
0 Kudos
Message 1 of 14
(8,151 Views)

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

Regards
Ray Farmer
0 Kudos
Message 2 of 14
(8,140 Views)

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

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 3 of 14
(8,123 Views)

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

0 Kudos
Message 4 of 14
(8,105 Views)
Solution
Accepted by vgravel

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

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 5 of 14
(8,080 Views)

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

0 Kudos
Message 6 of 14
(8,075 Views)

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

Message 7 of 14
(7,571 Views)

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

 

 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 8 of 14
(7,559 Views)

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.

0 Kudos
Message 9 of 14
(6,767 Views)

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

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 10 of 14
(6,748 Views)