02-12-2015 03:39 AM
Hello guys, I am making a case loop that allow me to increment a value by a constant step, and I need when the value that was incrementated reach to a upper limit set by me to cancel the status of button who control the case loop. How can I do that?
Regards,
Vlad
02-12-2015 03:53 AM
Hi,
This VI have a increase number control and trigger boolean control.
And u can see what number now.
Pls see the attachment .
02-12-2015 03:55 AM
Show your VI what you tried so far...
02-12-2015 03:56 AM
sorry I can open it, i am using LabVIEW 2013.
02-12-2015 04:07 AM
Does this help?
02-12-2015 04:08 AM
Hi,
In your program have two timer, otter loop timer is 100ms.
It means you set delay timer 1000ms, and it delays 1100ms.
I think u should fix it at first.
Patrick
02-12-2015 04:10 AM
u are so nice.
This block diagram is clean and good-looking lol
02-12-2015 04:13 AM - edited 02-12-2015 04:15 AM
Put your 100 msec Wait function into the FALSE case of the voltage ramping case. So when your VI in idle state, it iterates with 100 msec (it is good you slow down the iteration in idle state, do not hog your CPU). When your voltage ramping is active ("Start" button is TRUE), you will not wait another 100 msec. So during voltage ramp, you will have exactly the waiting time ("time for steps [s]) which you specified, and not +100 msec.
edit:
"This block diagram is clean and good-looking lol"
the "Clean up diagram button" can do magic (well, not always :)) ).
02-12-2015 04:14 AM
Blokk, thank you for aranging the diagrams. Youre solution dont work.
02-12-2015 04:20 AM
You are going to the negative direction with voltage, just change the "Greater or equal" into "Less or equal".