From: smm on
Parallel execution when multiple subvis are in a while loop is not really parallel. It executes in an inorderly fashion
I have a vi here which contains another vi file path to open which consists of a subvi. If I try to run this, I realize to the eye it might seems parallel but inherently is not. The subvi is also made re-entrant. Can anyone help me to make it truly parallel. I tried using separate while loops but it did not do it either.
7862-Buttons_ver2 is my main VI
78652-manual_EDIT is the 2nd vi in the heirarchy and then 7862SUBVI_manualmode is the 3rd in the heirarch. Its a subvi.
Can anyone help me here.


7862SUBVI-manualmode.vi:
http://forums.ni.com/attachments/ni/170/321766/1/7862SUBVI-manualmode.vi


7862-Buttons_ver 2.vi:
http://forums.ni.com/attachments/ni/170/321766/2/7862-Buttons_ver 2.vi


7862-manual_EDIT.vi:
http://forums.ni.com/attachments/ni/170/321766/3/7862-manual_EDIT.vi
From: MikeS81 on
smm wrote:... Can anyone help me to make it truly parallel. ...Hi smm,this is only possible if you use more than processor. :smileyhappy:If you have two or more you can use timed loops and assign each loop to one processor.Hope this helpsMike
From: smercurio_fc on
How many DAQ boards do you have? 1 or 6? If you only have 1...
From: smm on
I have one DAQ unit- the PCI 6515. I am basically trying to automate a thermostat tester. I have 6 units connected to it.
From: smercurio_fc on
Well, there you go then. You can only have 1 "read" task for one device active at a time. Your " 78652-manual_EDIT" is set up in parallel, but each task can only execute once the currently active "read" is done. Since the "7862SUBVI_manualmode" VI is dependent on data from the "78652-manual_EDIT" VI, it can only execute once the data has been read. You can mitigate this somewhat so that instead of 6 separate reads you perform 1 read to get a 2D array of booleans and then index out each one to your 6 instances of " 7862SUBVI_manualmode". The " 7862SUBVI_manualmode" VI, however, contains additional DAQ tasks so you may get some blocking in there as well.