View Single Post
  #3   Spotlight this post!  
Unread 13-01-2009, 17:38
Hazmatt's Avatar
Hazmatt Hazmatt is offline
Registered User
AKA: Matt
FRC #2645 (PowerSurge)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Muskegon
Posts: 51
Hazmatt will become famous soon enoughHazmatt will become famous soon enough
Re: Using the analog sensor .vi's

Quote:
Originally Posted by Greg McKaskle View Post
The first part of that, using 1 instead of the enum "AI 1" will result in a coercion dot, and will work as long as you know the encoding. This is sometimes useful when casting between enums or when using a loop to get all values. So in other words, this isn't really an error, but when doing constants, it is much more readable to use the specific ones.

Greg McKaskle
Hm, i'm really interested to know where I could have read about this beforehand.
__________________
Relax! It's only ones and zeros!
Reply With Quote