LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want a flexible knob

Hii,

In my program i am having two knobs i want a help that as soon as i leave the knob the value must return to 0

this is the program which i had developed please see the code and modify according to my requirements.

0 Kudos
Message 1 of 10
(3,500 Views)

try this

0 Kudos
Message 2 of 10
(3,491 Views)

I would not use a CPU burner loop (with no wait, consuming 100% CPU) and I also would use local variables instead of value property nodes.

 

Just add a second loop that just waits doing nothing unless one of the controls is relased or stop is pressed. No change needed to your code at all.

 

(There is still a flaw in the case where you would move the mouse outside the control before releasing. In this case the control would not reset to zero. What is the purpose of your implementation?)

Message 3 of 10
(3,480 Views)

Thank You a Lot

0 Kudos
Message 4 of 10
(3,478 Views)
I want to control a dc motor using a h bridge
0 Kudos
Message 5 of 10
(3,477 Views)

@ altenbach

 

I also mean to implement it the way you did.Smiley Happy

what is the advantage of using local over value property.

0 Kudos
Message 6 of 10
(3,467 Views)

can you ellaborate

0 Kudos
Message 7 of 10
(3,449 Views)

@shankey wrote:

can you ellaborate



What post are you referring to? Elaborate on what?

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

alok.p wrote:

what is the advantage of using local over value property.


Why don't you simply do the experiment to see what is more efficient? Here's a quick benchmark applications (posted here).


To understand the reason, see DFGray's answer here.

Message 9 of 10
(3,423 Views)

@ altenbach

 

indeed a great learning........

Thank you

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