02-26-2010 01:35 PM
See if this does it for you. It uses a notifier to trigger the counting loop to start, and it also uses the notifier as a way to trigger the other loops to stop. When the user interface loop stops, the notifier is destroyed. This causes an error when the other loops attempt to access that notifier, and the errors stop the loops.
As for your original problem, it looks to me like you were very close to having it working the way you wanted, but why didn't you simply wire the output of the equals comparison to the while loop stop terminal? Did I misunderstand what you wanted?
02-26-2010 02:20 PM
Oh waw! that was just what I wanted, thanks!!! Well I tried to send the true statement to the loops stop button, but couldnt get it working, maybe I messed the case structure up some how 🙂
But finally it works, great!! Just one more question, howcome that you are not allowed to switch the "enable" on and off more than once on the "write to mesurement file"?
Thats why I use a relay to simply cut on and off the data instead, but im not sure it its the right way? 🙂
03-01-2010 10:19 AM
BjarneDK wrote:Just one more question, howcome that you are not allowed to switch the "enable" on and off more than once on the "write to mesurement file"?
I don't know. I took a brief look at the code generated by Write to Measurement file - you can do this by right-clicking on the Express VI and choosing Open Front Panel - but it's more complicated than I have time to investigate right now. Perhaps someone who's used that VI can answer.
03-04-2010 07:49 AM
Nathand:
Do you think that I should open a new tread with the "measurement" question?
03-04-2010 07:58 AM
Nope, I think you should try a search on the forums
A quick search for "Write to Measurement File" turned up this thread in which it is acknowledged as a bug in LV2009.
03-04-2010 10:09 AM
Hi Nathand,
Thanks for the link, it was a bug in the VI, but I found a get around :-). Ill try to be better at seaching the forum, next time 😉
Well, I think that I got my questions solved in this tread, thanks to you all especially Hummer1 and Nathand :-).