View Single Post
  #2   Spotlight this post!  
Unread 01-01-2015, 19:21
nwall nwall is offline
It's a hardware problem
AKA: Nicholas
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Austin, TX
Posts: 13
nwall is an unknown quantity at this point
Re: Team 1726 button toggle & SR Latch code

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")

I have attached our version of the "Button Toggle.vi", which swaps out the two sets mentioned above with Greater Than and XOR. I ran a benchmark on both methods to compare the time required to do each operation 100 million times, and after taking the average of 25 runs, our method took ~1551ms to complete the 100 million iterations, with your method taking ~2000ms. I assume that this is because LabVIEW doesn't have to wait on the output from a block to put it into the next block, but I'm not sure.

For a competition, either would be plenty fast enough, so I'm just wondering why you do it this way.
Attached Files
File Type: vi Button Toggle.vi (11.5 KB, 29 views)
Reply With Quote