ā07-17-2007 07:50 PM
ā07-17-2007 08:59 PM
ā07-18-2007 02:14 AM - edited ā07-18-2007 02:14 AM
Message Edited by GerdW on 07-18-2007 09:21 AM
ā07-18-2007 04:22 AM
Dear Forum Members. I need your help again. Please help me....
I attach the Vi. In my program how can I make Save button after 2 progress.
Now Save works when I push the start of program. How can I make it, after 2 progress, push and save...?
Thanks in advise....
Sincerely
Harutyun Melikyan
ā07-18-2007 04:38 AM
I strongly suggest you follow the links in my first response and go over some of those tutorials. Your program appears to be very complicated for no reason.
Gerd has already shown you a basic example of how you can use arrays to greatly simplify your program and I have a feeling that once you do that with the rest of the code it will already be much easier to handle. Additionally, you should create subVIs to do some of your functionality instead of doing it all in a single VI. This should all be covered in those tutorials.
Another important point Gerd brought up is using the Abort VI primitive to stop the loop. What I suggest you do is change the architecture of your program. Either use two seperate loops - one for the UI and one for the communication\processing or use a state machine with a single state for the UI handling. You can see some examples if you click File>>New and look at the templates section and also see some examples in the example finder (Help>>Find Examples).
As for your actual question, I didn't really understand it, but I think the answer would be solved by changing the way you work. The event structure is there to handle events, so let it do that - add a value change event for the save boolean and when that event happens perform your save.
ā07-18-2007 04:44 AM
ā07-18-2007 08:42 PM
Dear Forum members, thank you very much for yor help. I made clear graph button, but I want that the button work after 2 progress(1 measurement). How can I do it?
I attach the Vi. Please help me...
Thanks in advise...
Sincerely
Harutyun Melikyan!
ā07-19-2007 02:22 AM
ā07-19-2007 03:37 AM
ā07-19-2007 03:59 AM