LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reset wait in case sturcture and

Solved!
Go to solution

HI ni expert,

 

I need to make an automate tap,

 

When the User butten is pressed, it suppose to count untill the Timeout Value is reach ,and the light turn on, if its press less then that it won't.

 

If the light is on and the user release the button ,again, counter untill second Timeout Value 2 is reach. if the user press before the light goes off, its remain on. like in the TAP file.

 

in my file (test222) i have 2 problems :

 

1. i dont manage to display the timer right

 

2. the wait function is not reset if the user is press the button below the Timeout Value's

 

Thanks in advance,

 

 

Download All
0 Kudos
Message 1 of 10
(3,728 Views)

If you could reupload it in 2011.

 

File>Save for previous version

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 2 of 10
(3,721 Views)

Done, thanks

0 Kudos
Message 3 of 10
(3,716 Views)

Is this what you meant?

Or do you want to see him actually count?

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 4 of 10
(3,700 Views)

Thanks for the quick answer!

 

I want him to actually count and display at the GUI, and reset when it need to count again

0 Kudos
Message 5 of 10
(3,694 Views)

wait ms should never be used as a software timer(which locks up the UI from responding), use it for the while loop iteration(otherwise, you have made a "greedy loop" by using 100% of CPU when all cases are False)...please use the tick count or elapsed timer for timing.

0 Kudos
Message 6 of 10
(3,693 Views)
Solution
Accepted by topic author dgefen

What Apok said is true.

 

I already changed it.

Hope you like it this way.

 

The second one resets the timer indicator if you release the button

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
Download All
0 Kudos
Message 7 of 10
(3,678 Views)

Thanks for the answer!

 

But it didnt work correctly... 

 

if i keep press the button its switch between timeout1 & 2 and the led is on\off because of that . and its don't suppose to happen.

 

if Timeout1 has passed and i still pressing the butten the led stays on. if i release the button its count on counter num 2.

 

0 Kudos
Message 8 of 10
(3,648 Views)

hi again,

i took ur solution and adujst him, and it works!

thank again

0 Kudos
Message 9 of 10
(3,624 Views)

Hi

 

Good to hear that!

Sorry, that I didnt' understand you right away.

 

Good luck!

 

Koen

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 10 of 10
(3,610 Views)