View Single Post
  #2   Spotlight this post!  
Unread 14-02-2013, 10:35
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Rookie Help- Toggle a spike

Quote:
Originally Posted by Omar View Post
Make this a sub VI and make it re-entrant. Then use it where ever you need a toggle boolean output.
More information on re-entrant VIs: http://zone.ni.com/reference/en-XX/h...ts/reentrancy/ and http://digital.ni.com/public.nsf/all...256C59006B57CC

Basically, with a re-entrant VI, LabVIEW will allocate each instance of the VI like an independent sub-VI. This allows you to run all of the instances simultaneously without them interfering with each other.

To make a VI re-entrant, go to File»VI Properties (or hit crtl + I) and select "Execution" from the drop down menu.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote