|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Maximum value
If a potentiometer is turned clockwise and then counterclockwise, is there any way of finding the highest degrees it turned?
|
|
#2
|
|||||
|
|||||
|
Re: Maximum value
Implementation depends on the language, but in general you just save the maximum value.
Do a comparison of new values against the old maximum value (start w/ a maximum of zero), if the new value is greater, then it becomes the maximum value. Here's a generic LabVIEW example (replace the dice with the analog input). ![]() Last edited by Mark McLeod : 04-02-2012 at 21:05. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|