Go to Post 99.9999% of the FIRSTers are really nice - Denman [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 21-08-2008, 19:27
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
Re: Variable rollover with Labview (suggestions?)

Quote:
Originally Posted by EricVanWyk View Post
I'm having a little trouble following exactly what you are trying to accomplish: could you provide example inputs and what you want as an output?

I've included a few options, all assume that rollover is 100.

Which of the following behaviors is correct?
1) 112 becomes 12
2) 112 becomes 100
That's the trouble. I want it to roll in both directions. Say I'm working with degrees, so I have the rollover set to 360. I need it to reset back to zero when it turns past 359, but I also need it to go to 359 when it goes past zero if it's turning the other direction.

Quote:
Originally Posted by EricVanWyk View Post
Perhaps pulling dx into your function would make it easier, as you can use it's sign without having to guess.
Also, would it help to temporarily use a 32bit int to avoid overflow, and then truncate back down?
I'll consider that, and see what I can do without too much hinderance to modification.
__________________
-- Marshal Horn
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with CMUcam & LABView Daniel_H LabView and Data Acquisition 1 30-01-2006 12:07
Problem with freezing frames in LabVIEW pdc LabView and Data Acquisition 2 26-01-2006 01:34
Problems tracking with CMUCam2 in LabVIEW PhilBot LabView and Data Acquisition 5 17-01-2006 20:42
Need help with 255 Variable Joseph F Programming 18 26-02-2002 14:49


All times are GMT -5. The time now is 11:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi