View Single Post
  #3   Spotlight this post!  
Unread 30-03-2012, 13:47
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Event structure with unit change problems

As Ryan said, this forum is mostly for the FIRST Robotics Competition, but you are more than welcome to join us. Just be warned that you might have to start a robotics team if you stick around.

It looks like the VI you attached is pretty close - the event structure is firing on the value change. However, the logic inside of it performs a unit conversion on all of the items in the array without paying attention to what the old units were.

To show this, set the unit to L/hr, type in a value, and hit enter. The value entered is mis-converted and replaced.

One way to work around this is with the "OldVal" node on the side of your event structure. This can help you find what the old unit was and convert (or not) as appropriate.
Reply With Quote