06-22-2010 09:01 AM
Hi,
I have a while loop for image acquisition in remote system(PXI). Another while loop will save data parallel with the first one through shared variable in host computer. But the first loop for image acquisiton have to wait for trigger. Therefor the two loops cannot start at the same time. Is there any idea to solve this problem? Thanks in advance.
Solved! Go to Solution.
06-22-2010 09:07 AM - edited 06-22-2010 09:09 AM
There are multiple ways, queues notifiers or occurences. Seems like an occurence would work well for this but without seeing the code it is hard to tell. You may wan't a queue or a notifier instead, depending on what else is happening in your program.
Edit: misread your post and my answer above may not be correct for your situation. I assumed the loops were running in parallel on one PC
06-22-2010 09:27 AM
The two loops are runnung in parallel on two PC. So I was consuming how to transfer a occrence from one computer to another computer.
06-28-2010 04:21 AM
Hi,
you could use a shared variable with a boolean value. The variable is default on false. When the first loop starts the variable is set to true. The other PC reads the shared variable an waits until its true. Now the other loop starts.
But you still have the delay of the network, so its not possible that the loops start exact at the same time.
06-28-2010 06:43 AM
hi
File>New
then please see the VIs from VI template
RENN