10-06-2013 04:13 AM
Hi,
I am developing an application which uses a set of input controls for performing a task. I have given eight such sets of these controls in the main vi. However, I want to provide user an option to add more sets if required by invoking a subvi (which will have one such set of control) and likewise invoking the same subvi to have few more sets (as windows of one set each).
The important things here to be noted are:
How can I implement such case using labview? All suggestions are welcome.
10-07-2013 12:17 AM - edited 10-07-2013 12:26 AM
Hi mnx,
Just to correct me if I'm wrong:
Well, if you want to open the subVI: you can find the example code here: http://forums.ni.com/t5/LabVIEW/Call-a-SubVi-in-Labview/m-p/1590320#M580140
To start 2 subvis parallely, you can use the error cluster to force execution just like the vis I modified from the example codes from the earlier link. The error cluster wires (error in and error out terminals) make use of the dataflow rule in LabVIEW to make 2 functions or subVI's to run in parallel.
Hope it helps
Warmest regards,
Lennard.C
10-07-2013 01:01 AM
@Lennard.C wrote:
The error cluster wires (error in and error out terminals) make use of the dataflow rule in LabVIEW to make 2 functions or subVI's to run in parallel
Data flow forces sequential execution which is exactly the opposite of parallel. For parallel operation the subvis should be set to reentrant and there cannot be any data dependency.
(Sorry, posting by phone. Cannot look at code)
04-03-2014 10:41 PM
04-03-2014 11:02 PM - edited 04-03-2014 11:09 PM
@manasam191 wrote:
Reentrant vi also not working because in reentrant vi I have many subvi those are not reentrant so the values which I have using is toggling each other
This thread is half a year old. There is no information in the discussion above that would indicate that the subVIs contain many non-reentrant subVIs. Do you know something we don't know? Do you know user mnx?
Is this an unrelated problem?
So.... What "values"? What is "toggling each other"?
Please start a new thread and show us your code.