View Single Post
  #5   Spotlight this post!  
Unread 11-23-2016, 09:22 PM
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Quick fix for getting serial data from CMUcam5 Pixy

There isn't anything related to serial communication in the begin VI. In this case having the initialization code outside of and feeding the loop is effectively the same as having it in the begin VI. The only difference is that code in the begin VI executes before code in periodic tasks. There is also no need for a Refnum set/get VI.

The begin VI exists to help organize code that only needs to execute once and at the beginning of the program, and to ensure that code that initializes something executes before that thing is called in other VIs like periodic tasks or teleop.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620
Reply With Quote