View Single Post
  #1   Spotlight this post!  
Unread 21-08-2008, 17:08
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Variable rollover with Labview (suggestions?)

I'm looking for a better way (if there is one) of making a number roll over at a specified value, with Labview. What I have come up with so far is this:



If you don't have the boolean symbols memorized, what it does is determine whether a value is closer to the rollover limit or the highest possible number, and places it where it should have been back within the range. (of course, it only does this when the number is out of range)
The challenge here is that the number may change at an inconstant rate (you can add or subtract values much greater than 1). The problem with this solution is that it doesn't actually tell which way a value has rolled over, and thus could pose some problems if the increment is quite large. Also, it must be in a feedback loop to work for more than one rollover.
Please post your suggestions! I don't mind if you post them as VIs, but other people might appreciate your using pictures.

Thanks!
__________________
-- Marshal Horn

Last edited by kamocat : 21-08-2008 at 18:03.
Reply With Quote