LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the value of a control inside a while loop inside a subVI from a callingVI

Hello,

 

Basically as the subject describes, I need to be able to change the controls inside a while loop inside a subVI from a calling VI. 

In theory it should be simple but trying to get my head how to do it. Globals maybe

 

Anyways, I've made a simple example of my problem.

 

Thanks,

Oliver

Download All
0 Kudos
Message 1 of 3
(2,691 Views)

Hi owallis,

 

globals, AEs, FGVs, notifier, queues, …

 

And always obey DATAFLOW: use parallel running loops!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,669 Views)

You really miss even the most basic concepts of LabVIEW, your example VIs show that pretty well. Here you can find links for free learning material (at section "Looking for free training"):

https://decibel.ni.com/content/docs/DOC-40451

I would recommend you to start with the Core 1 online course.

 

edit: have a look at the attached small example VIs. Of course, the actual task decides what is the best solution. Note that, the subVI does not run indefinitely like your subVI, it waits for a msg to arrive in the Queue. If necessery you can also set a certain timeout for this Dequeue function inside the subVI, to perform a cyclic task for example...

 

 

 

Download All
0 Kudos
Message 3 of 3
(2,622 Views)