View Single Post
  #8   Spotlight this post!  
Unread 02-01-2015, 00:02
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
Re: Team 1726 button toggle & SR Latch code

Quote:
Originally Posted by nwall View Post
Thank you for posting this. Our team has always done it one way (since I've been here) and haven't really thought about other ways of doing it because it worked. I do have a question about your "Button Toggle.vi", which is why you use the blocks used. (i.e. Not and And for "Pulse Out", Not and Select for "Toggle")

.
As a digital electronic technician (now retired) I am used to approaching these kind of problems at the lowest bitwise level. The use of the greater than comparison operator just seems wrong to me but that's just me. I must admit however that I had a "slap myself on the forehead" moment when I saw your elegant use of the XOR operator for the actual toggling of the output. I'm gonna use that one from now on.

Since Labview is an optimizing compiler, it will probably come up with a more efficient solution during compilation anyway.
Reply With Quote