02-24-2010 09:38 AM
I have added comments on where to put stuff and how the loops work...Hope that helps...
Hummer1
02-24-2010 10:23 AM
02-24-2010 10:37 AM
02-24-2010 10:44 AM
02-24-2010 12:12 PM
Well, just one more question, I guess that all my counting stuff has to be in "false" in the case, so that it activates (and turn off) when the Start button is hit? But grr nothing seems to work 😕
I guess that I have to have it cut out in basic peaces. I want my counting loop to be activated (and turned off) with the Start button, so I as I wrote, I think it has to go on in the false part, but how? I have tried a lot of different things:manmad:
02-24-2010 02:54 PM
Hi again,
Sorry for all my questions, but I think that Im getting close now 🙂 I have implemented my counter, and each time I have a dp/dt (0) it counts one op, so far so good. Now, I would like my counter, to be the one to deside, when the chosen counts are reached.
How do i do that ? I mean, which part of the for-loop "recognize" when it has reached the chosen numbers ?
I attach the newest one, thanks!
02-24-2010 09:13 PM
02-26-2010 12:09 PM
02-26-2010 12:23 PM
I do not completely understand what you're trying to achieve, but it sounds like you simply need to replace your for loop with a while loop, and then wire the stop condition to true when the while loop's iteration counter (the 'i' terminal) reaches your desired number of counts.
By the way, you should consider using a notifier instead of using property nodes to communicate between the loops. You could also use a notifier in place of 4 separate stop buttons, so that one button would stop all your loops.
02-26-2010 12:57 PM
Thanks for your answer. Well I have a main program and want a on/off button for saving data. The user should be able to choose how many cycles he want to have saved (its a pressure curve). So my counter detects dp/dt of the curve (top of curve), and then I want the save button to switch off, when the counts are reached (and NOT start before user press the button again).
I have tried simply to stop the loop, but I cant start it again? I have never used notifiers, so I dont really how its works out, but Ill look at it (mabye you can explain how to connect the stop buttons?) I have attached the newest vi, again thanks for your help 🙂
Im sorry I have only worked with LabVIEW for a month, so Im a bit newbee to it 😄 |