04-14-2009 12:29 PM
04-14-2009 12:56 PM
R.
First- clean up your block diagram and try to limit scrolling on your block diagram to 1 direction only. Most times you can break your code into managable pieces.
Conside using a state machine. [Initialize, acquire, process, file, exit] would be the easiest break out for this code. and allow it to be much easier to debug
You waste a lot of space and the various structures are placed haphazardly making it harder than necessary to folow the data flow. Add discriptions for your controlls and indicators (use tip strip too)
Now that i'm done criticising:
attached is a shot of your code. yoou have wired an output of one loop to the input of the next. the second loop cannot start until the first exits.
04-14-2009 01:09 PM
Yup! that is the first problem.
The next problem will be that the data read from the local for ouput purpose will probably be read befoe it is written.
Ben
04-14-2009 02:11 PM
Thanks for the input. After removing the input to the second loop both loops execute simultaneously.
04-14-2009 09:03 PM