NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Run VI Asynchronously

Solved!
Go to solution

Hi, I fairly new to Test Stand, I have an application that I need to turn on a DAQ output, will other tests are running, but I also need the ability to change the amplitude and frequency of this VI that's running in the back ground, then when all the test are completed, I would just need to set the stop but to true.  I have already creating the VI that can perform this, however not clear how I would update the parameters in test stand using the Run VI asynchronously to do this.

 

 daqOut.gif

 

How do you Update paramaters using test stand? 

How do you Stop the VI at cleanup? 

0 Kudos
Message 1 of 10
(5,351 Views)
What I would do is not have the loop in LabVIEW but use a TestStand loop and call the VI in there. Then you can pass parameters just like you would any other step. It would be a lot easier to stop the TestStand loop as well.
0 Kudos
Message 2 of 10
(5,350 Views)
Well I can see your point, I dont know if the daq card will function properly, would I excute each part of the DAq seperately?
0 Kudos
Message 3 of 10
(5,347 Views)
Why would the DAQ card function any differently? To be really efficient, start the task in a step prior to the loop and pass the task to the VI. The VI in the loop would only have the DAQmx Read.
0 Kudos
Message 4 of 10
(5,343 Views)
Actually the Daq write, but I will try thsi solution and reply if it works.
0 Kudos
Message 5 of 10
(5,340 Views)
Solution
Accepted by hallawt2004

I do this by creating a "functional global" VI that has functions like 'Start' 'Read' 'Stop' and call it from TestStand passing in the function it is to perform.

Store the task in an "Uninitialized Shift Register"

 

Look up or search for...

   Uninitialized Shift Register 

   Functional Global

   LV2 Global 

   Action Engine

 

 

Omar

Omar
0 Kudos
Message 6 of 10
(5,339 Views)
thank you all for the quick reply, thanks a lot Omar, not thinking i just,i am a better labview person then test stand.  Here was my solution, as stated I was able to us the run VI asynchronously, I used global variables to pass in the parameters, and used an VI with two different states which I either select update variables, or get setttings, along with a stop button, and it worked great.  Thanks again.
0 Kudos
Message 7 of 10
(5,330 Views)

Can you please add an example for your solution. I'm new learning Labview and Teststand.


@hallawt2004 wrote:
thank you all for the quick reply, thanks a lot Omar, not thinking i just,i am a better labview person then test stand.  Here was my solution, as stated I was able to us the run VI asynchronously, I used global variables to pass in the parameters, and used an VI with two different states which I either select update variables, or get setttings, along with a stop button, and it worked great.  Thanks again.

 

0 Kudos
Message 8 of 10
(3,962 Views)

This was an old application using TestStand 2010 / LabView 2011 with a DAQ card to generate a waveform.

I created global variables and included in the VI that does the work.  here's a snap shot of it.

 

Message 9 of 10
(3,956 Views)

Thank you for your fast respond.


@hallawt2004 wrote:

This was an old application using TestStand 2010 / LabView 2011 with a DAQ card to generate a waveform.

I created global variables and included in the VI that does the work.  here's a snap shot of it.

 


 

0 Kudos
Message 10 of 10
(3,949 Views)