NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you integrate TS with a LabVIEW AE?

I have a front panel (TS Front Panel.vi)  and a VI that does the work (Traffic Lights.vi).  I want TS to run the operation (Traffic Control.seq) similar to the way that my demo VI (Traffic Lights Demo.vi) does it.

 

Any help for a green TS user?  If my design indicates that I am so badly out-of-line that it cannot be fixed, I can accept that--just say so.

 

Thanks,

kc64

0 Kudos
Message 1 of 8
(3,686 Views)

Hi kc,

 

I liked the demo. 

 

I think that you are already mimicking your demo VI.  I don't think I fully understand your issue.  Do you need the Front Panel of the TS Front Panel to show all the time?  Why don't you just call the demo VI? 

 

I made a few changes to keep your references and such consistant.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 8
(3,678 Views)

>>I liked the demo. 

 

Thanks. :^)

 

 

>>I think that you are already mimicking your demo VI.  I don't think I fully understand your issue.  Do you need the Front Panel of the TS Front Panel to show all the time?

 

Yes.

 

 

>> Why don't you just call the demo VI?

 

I am trying to replace the demo VI with TS.  I want to have just  Traffic Lights.vi used in TS and set the obj refs and do the looping under TS control.

 

0 Kudos
Message 3 of 8
(3,673 Views)
I forgot to add:  when I run the TS seq, neither of the front panels of TS Front Panel.vi nor Traffic Lights.vi changes.
0 Kudos
Message 4 of 8
(3,672 Views)

Created an example that shows one way to do it.  It's really too hard to explain everything in a post.

 

Basic things you ought to know about this example:

Run VI Asynchronously step creates a new thread for the TS Front Panel VI

Start and Stop TestStand Modal VIs inside of TS Front Panel make it Modal to TS

Passing properties to and from TS to the TS Front Panel VI is done using Get and Set TestStand Property VIs  You need this because it's in a different thread.  The Sequence Context is what allows you to do this.

 

Give it a look and let me know if you have any questions.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 5 of 8
(3,665 Views)

Jigg--

 

I am very pleased with your solution.  Thank you so much for your help.

 

kc64

0 Kudos
Message 6 of 8
(3,633 Views)

Hey kc64,

 

Just came accross this example today and thought you might be interested as it accomplishes the same thing just in a different way-

 

http://zone.ni.com/devzone/cda/epd/p/id/6045?submitted=yes

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 7 of 8
(3,595 Views)
Thanks, Jigg.  I am tied to the action engine code right now, though.
0 Kudos
Message 8 of 8
(3,593 Views)