07-09-2015 04:18 AM
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
07-09-2015 04:38 AM
07-09-2015 06:51 AM - edited 07-09-2015 07:14 AM
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...