Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel loops

I will attach a picture of my parallel while loops. This is on a cRIO and so I need to reference the FPGA from both loops.
When I run it, the first loop excecutes once then the second loop goes but it never comes back to the first loop.
 
I am thinking that something with the FPGA reference is holding things up? I just want both loops to excecute independantly.
 
Attached is a picture. I have the VI if anyone wants to see it further.
 
Jeff
 
 
0 Kudos
Message 1 of 3
(3,777 Views)
I would suggest running your VI with Highlight Execution turned on to see exactly where it holds up.  You could also try putting a Disable Diagram around your second loop to see whether or not your first loop runs continuously when it is by itself.  Please post your findings, thanks!
0 Kudos
Message 2 of 3
(3,739 Views)
Thanks for the response.
I solved my problem by removing the FPGA reference from one of the loops. Not sure why this works.
 
Before I did this, the first loop would excetute once, then the second loop would excecute, never returning control to the first.
 
So now I have one loop that reads buttons and updates the screen, and the other loop accesses the FPGA. 

This seems to work but I'm not sure why lol.
 
Jeff
 
 
0 Kudos
Message 3 of 3
(3,734 Views)