08-25-2005 11:24 AM
08-25-2005 11:27 AM
08-25-2005 11:47 AM
08-25-2005 12:18 PM
08-25-2005 12:19 PM
08-25-2005 12:22 PM
Hello Dennis,
I set my message at about the save time you sent yours. I'm still digesting your message.
Thanks,
Steve
08-25-2005 12:33 PM
Hello Dennis,
I moved the checkbox control inside of the outer while loop, and it seems the vi is working now.
I did look at the event structure when I started having problems. I just thought correcting this problem would be simpler than changing to a different design. Also, I didn't realize the VI doesn't read the controls in the while loop, ie. the button controls.
Please see attached VI.
Thanks,
Steve
08-25-2005 12:35 PM
Wow twice in one day! ![]()
Please attached VI.
08-25-2005 01:07 PM
Your VI still has still some "issues" with the "save to file" mechanics.
You should NOT use local varables inside the inner loop for this boolean, because this setting should probably not be changed during run. For example of you would switch it from on to off during run, the file will not get closed at the end! If you turn it on during the run, you might try to write to a file that has not been opened.
The modification shown in the attached image shows how this should be wired directly instead. (I highlighted the new wire).
Also, on the left you initialize using two property nodes. You should wire the error out to the edge of the big while loop to ensure this takes place before the main loop starts. if there is no dependency, there is theoretically no guarantee what happens first. (see red insert in attached image).
(I haven't looked at the rest of your code).
08-25-2005 01:30 PM