06-29-2011 11:19 AM
Hi,
First of all sorry for my English.
I think that my Vi doesn't work because the use of structures.
I've made a Tab Control with 3 pages, related to a case structure with 3 cases, and I want to execute 3 programs y each case. One case to acquire data and write to Measurement File. Other to Read from measurement file. And the last to send a file by TCP. Each case work separeted, but I can't make to works all in one Vi. Each program have to work only when the page is selected. If the program reset when you select a new page, I think it willl be better.
Any idea to Help me??
06-29-2011 02:09 PM
Just a brief review of your code:
Bad: Your loop is consuming 100% CPU resources.Place a 50ms wait in the outer loop.
Other basic improvements:
Use an enum instead of the ring -> the case structure will display the enum text instead of a number.
Error handling -> just get the error wires running all through and place an error handler at the end.
Topics to study: Event structure. Then state machines.
Felix
06-29-2011 02:31 PM - edited 06-29-2011 02:31 PM
Thanks, I will review
06-29-2011 02:33 PM
Some more points: