 TH14
		
			TH14
		
		
		
		
		
		
		
		
	
			10-09-2015 11:39 AM - edited 10-09-2015 11:46 AM
How can I know if the knob value is increasing or decreasing?
I would really appreciate your help.
 Kyle97330
		
			Kyle97330
		
		
		
		
		
		
		
		
	
			10-09-2015 11:48 AM
Create an event case for "Value change":
 Dennis_Knutson
		
			Dennis_Knutson
		
		
		
		
		
		
		
		
	
			10-09-2015 11:49 AM
10-09-2015 11:53 AM
Well the problem for me was in getting the previous value of the knob.
Can it be done using a shift register?
10-09-2015 11:54 AM
Thank you for your help. I'm on it.
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			10-09-2015 11:56 AM
@TH14 wrote:
Can it be done using a shift register?
Yes, of course! (A feedback node is even simpler though). 😄
10-09-2015 11:58 AM
We haven't learned about the feedback node yet, so I prefer using a shift register.
 jcarmody
		
			jcarmody
		
		
		
		
		
		
		
		
	
			10-09-2015 12:25 PM
A minute of reading will cure you of that. 😄
@TH14 wrote:
We haven't learned about the feedback node yet [...]
 crossrulz
		
			crossrulz
		
		
		 
		
		
		
		
		
	
			10-09-2015 12:37 PM
@TH14 wrote:
We haven't learned about the feedback node yet, so I prefer using a shift register.
Feedback nodes work exactly the same as shift registers, they just are not necessarily attached to a loop.
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			10-09-2015 01:07 PM - edited 10-09-2015 01:08 PM
Of course with a value changed event, you don't get the same value if the knob is operated by the user and the last seen boolean will stay forever.
With a feedback node, you get the state since last update, which if often unchanged. You can easily latch the boolean logic to simulate the event behavior though (not shown).
Here's code using a feedback node.
 