07-17-2013 07:20 AM - edited 07-17-2013 07:25 AM
Dear Friends ,
I haven solved a my problem .
The problem is i have two loops #
1. To run the motor front and back in sequence structure.
2. To measure the motor revolution continously in while loop.
I couldn merge it together to get a continously monitoring of the motor measurements.
At once only one loop runs ...
I have saved separately & run it same time it works fine.
Can someone suggest or solve the problem?
07-17-2013 09:59 AM
Can you share the code with both loops in it?
My guess is that you created a data dependency between the loops with a wire. This would make it so one loop must complete before the other can run.
07-17-2013 10:07 AM
Thanks for the reply dude i couldn attach the VI .
dono wats wrong
07-19-2013 04:58 AM
You cannot pass data between parallel loops with a wire, you can use for example local variables to pass data within a single VI
07-19-2013 06:40 AM
You are likely restricting dataflow by wiring the two structures together in an attempt to pass data, or are somehow misusing the sequence structure to restrict parallelism.
Could you post your attempt at putting them both in a single VI? That way we can more easily identify your issue.
07-19-2013 07:12 AM
@MaveenD wrote:
Thanks for the reply dude i couldn attach the VI .
dono wats wrong
Try zipping the VI and posting the zip. If that doesn't work, change the file extension to txt and post that with the note to change the extension back. There still seems to be a bug for some people not being able to attach certain types of files.
07-19-2013 08:00 AM
Thanks Dude but i couldn try it .
I dono wat d heck happen?
I couldn attach the VI .
Here is VI
07-19-2013 08:27 AM
07-19-2013 08:56 AM
You shouldn't have the huge loop with everything inside of it. What is happening is that the large loop can't iterate until everything inside is complete. Your smaller while loop is running intil you press the stop button, which stops the large loop. You should move your smaller while loop outside of the large loop. I would recommend having all of your DAQ in a loop and all of your serial communication in another loop. There's also no need to reinitialize and close your serial port. Open it once before your loop and close it once after the loop. You can then write and read it as much as you want inside of the loop.
07-19-2013 09:20 AM
thanks cross