View Single Post
  #2   Spotlight this post!  
Unread 25-10-2015, 09:20
Ari423's Avatar
Ari423 Ari423 is online now
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 585
Ari423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant future
Re: Autonomous Independent Cluster Input

I see a few problems here:

Firstly, your wire going from Vision to Teleop is going the wrong direction; it is an output from teleop that is being passed into Vision. If you did want to use wires for this for some reason, you would want to reverse the direction of the wire by changing the control in Vision to an indicator and the indicator in Teleop to a control.

More importantly, you can't use wires to pass information between parallel loops. The loop receiving the info will wait for the first loop to end before it gets only the information from the last pass from the first loop. Since you want these loops running in parallel, this method won't work. For parallel loops you will need to use global variables. You can set them in one loop (vi) and then read them in another. FIRST gives us a global variable in the prebuilt robot framework. You can add elements to the preexisting global by adding controls to its front panel and then drag it into the vi where you want to read write it. You can find more information on global variables here.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


Reply With Quote