FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

2 Vi's in the same cRIO project

I have just finished a program where the relay is controlled by a latched joystick value. I would like to have both this VI and the Tank Drive VI running on the cRIO at the same time. If I just put both of the VI's in the project explore and downloaded them onto the cRIO would that work? Or how would I go about setting this up?

0 Kudos
Message 1 of 2
(3,762 Views)

Hi ShortCircuit,

You can only have one top level VI running on the cRIO at a time. You will need to combine your two VIs into one such that they are running in parallel. Ideally, you should actually be modifying the default code (that's provided in the Robotics Project) with the relay and tank drive code.

Please take a look at our FRC Robot Framework Tutorial or FRC Mastery's FRC Walkthrough for information and steps on how to modify the default robot code.

~Olivia

0 Kudos
Message 2 of 2
(2,779 Views)