Quote:
Originally Posted by umangv620
I have very minimal solenoid code in LabView atm. I have a Solenoid Get Ref outside the Robot Main loop, and a Front Panel Boolean switch wired to the Solenoid Set inside the Teleop loop in Robot Main.
|
That won't work the way you think it will. The RefNum Get is very likely going to be executed before Begin.vi has done its RefNum Set, so the reference you're passing to the Solenoid Set will be invalid.
I strongly advise you to leave Robot Main the way it started. Don't change it from its default. When you want to add code, do it in the Begin, Teleop, and Finish vi's, and maybe in the Periodic Tasks. Your solenoid code should be right next to your drive code in Teleop.