LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel while loop sub vi not executing simultaneously

Solved!
Go to solution

Edit - I have solved my issue, please delete/close etc

 

Hello,

 

please see attached the vi and relevant sub-vi (while loops labelled "Single Readings").

 

I am trying to talk to two identical instruments attached via  RS-485 to USB converters to two USB ports on my computer. The while loops holding the sub-vi's that are responsible for polling the instruments do appear to execute in parallel, but the sub-vi's themselves will only execute one at a time. I must switch off the first, in order for the second to start.

 

I think this has something to do with how I am passing the control references to the front panel, but i'm also wondering if it could be due to having two copies of the same sub-vi trying to run with different inputs?

 

Thanks in advance for any help you can give!

Download All
0 Kudos
Message 1 of 3
(2,420 Views)
Solution
Accepted by topic author jm22b

This topic can be closed/deleted.

 

The solution? Remember to set the reentrant properties...

0 Kudos
Message 2 of 3
(2,410 Views)

...but above all, remember to post to the correct board (LabVIEW boardSmiley Wink



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(2,378 Views)