NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
vgravel
Posts: 109
0 Kudos
Accepted Solution

Create a LabVIEW Step dynamically

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!

Trusted Enthusiast
RayFarmer
Posts: 4,648
0 Kudos

Re: Create a LabVIEW Step dynamically

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
Active Participant
j_dodek
Posts: 940

Re: Create a LabVIEW Step dynamically

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

Member
vgravel
Posts: 109
0 Kudos

Re: Create a LabVIEW Step dynamically

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

Active Participant
j_dodek
Posts: 940

Re: Create a LabVIEW Step dynamically

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

 

Member
vgravel
Posts: 109
0 Kudos

Re: Create a LabVIEW Step dynamically

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

Member
Lonnie1
Posts: 4

Re: Create a LabVIEW Step dynamically

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

Active Participant
j_dodek
Posts: 940

Re: Create a LabVIEW Step dynamically

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

 

 

 

 

Member
jgonzalez601
Posts: 4
0 Kudos

Re: Create a LabVIEW Step dynamically

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.

Active Participant
j_dodek
Posts: 940
0 Kudos

Re: Create a LabVIEW Step dynamically

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

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page