LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wait for front panel activity

Solved!
Go to solution

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?

Message 21 of 26
(1,725 Views)

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? 🙂

0 Kudos
Message 22 of 26
(1,715 Views)

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.

0 Kudos
Message 23 of 26
(1,692 Views)

Nathand:

 

Do you think that I should open a new tread with the "measurement" question? 

0 Kudos
Message 24 of 26
(1,659 Views)

Nope, I think you should try a search on the forums Smiley Wink

A quick search for "Write to Measurement File" turned up this thread in which it is acknowledged as a bug in LV2009.

Message 25 of 26
(1,657 Views)
Solution
Accepted by topic author BjarneDK

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 :-). 

0 Kudos
Message 26 of 26
(1,640 Views)