LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wait for front panel activity

Solved!
Go to solution

I have added comments on where to put stuff and how the loops work...Hope that helps...

 

Hummer1

0 Kudos
Message 11 of 26
(1,371 Views)
Thanks, that gave a lot more meaning.. But I still have a bit difficulties to see how to I get my counter working without using shift registres and I guess that you just cant have a while loop in a for loop? (mabye a stupid question :-))
0 Kudos
Message 12 of 26
(1,361 Views)
Ah.. would it give the same meaning, to use shift registres in for loops (sorry I didnt knew that you could before now), as in while loops?
0 Kudos
Message 13 of 26
(1,359 Views)
Yes, it looks like you can use shift registers in for loops...
Message 14 of 26
(1,356 Views)

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:

0 Kudos
Message 15 of 26
(1,343 Views)

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! 

0 Kudos
Message 16 of 26
(1,335 Views)
Hmm mabye some kind of way to detect "chosen counts" with my counter and stop the for-loop (to case false) when the two numbers equal? Just an idea 🙂
0 Kudos
Message 17 of 26
(1,318 Views)
Anyone help?? 🙂 I just dont get it, basically I just want my counter to compare with the chosen number at then turn the case false (and switch the button off again as it does right now).. But how?? could it be a while loop outside the case, turning the case false with a "True"?? Idea solutions?? 
0 Kudos
Message 18 of 26
(1,300 Views)

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.

Message 19 of 26
(1,298 Views)

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 😄 

0 Kudos
Message 20 of 26
(1,289 Views)