NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access the variables from Run vi asynchronously

Solved!
Go to solution

Hi,

I have one VI created with only one Pushbutton (named it is stop) and put in while loop until the user press this button the VI will keep on running and i have called this VI in Teststand as Run VI Asynchronously to run VI in parallel and proceed to execute the rest of the sequence in teststand.

i will try to access the VI parameters from another Teststand sequence when never needed. In Run VI Asynchronously step, i have assigned all the parameters with local variables i have created, but the problem is the parameters of labview VI is not getting update in Run VI Asynchronously. while running the teststand, i am seeing value changes in the front panel of the VI but the local variables of Teststand is not getting update with the last value always it is showing zero. am i missing something here? how to get the parameters of a VI in Teststand which is continuously running?

 

Thanks,

Kalpana 

0 Kudos
Message 1 of 7
(4,516 Views)

It might help if you posted your sequence.  From what I understand, you have two sequences running in parallel: one runs your asynchronous VI that updates a local variable; the other is trying to access the local variable of the first sequence.  I believe that if your asynchronous VI is updating a FileGlobal or StationGlobal, then the second sequence will be able to access the current value.

0 Kudos
Message 2 of 7
(4,496 Views)

Hi,

I have attached the GUI.VI and ExampleProjects.Seq..

My GUI.VI will run continuously until the user press STOP Button and also it has a addition operation inside where if I change the input, the output of the VI changes on the front panel. where the same output variable in mapped to the file global variable in teststand which is not getting update. always it is reading Zero..

I would like to know how to access the VI Variables which is running continuously(Run VI Asynchronously) in  parallel in teststand.

 

Thanks,

Kalpana

Download All
0 Kudos
Message 3 of 7
(4,492 Views)
Solution
Accepted by topic author kk777

You have to continually write to the TestStand variable.  The way that the sequence/VI is set up now, the value doesn't update until the VI completes.  Your VI and TestStand call should look like the attached files.

 

Download All
Message 4 of 7
(4,487 Views)

Hi,,

Its solved my problem.. Thanks..

0 Kudos
Message 5 of 7
(4,380 Views)

Hi,

Any idea how to write data continuously to multiple variable from LabVIEW to teststand.. The above example works only for one variable.

 

Thanks,

 

0 Kudos
Message 6 of 7
(4,371 Views)

You would just have multiple steps for Set Property Value inside the loop with all of the different variables you want to update.

Message 7 of 7
(4,368 Views)