![]() |
Re: General LabVIEW questions from a VERY new user
1 Attachment(s)
how do you put the blue Stop thing though?
EDIT: Is there one of these VI's that is a MOTOR vi, not a DRIVE vi? That would make things WAYYYYYYYYYYYYYY simpler, and easier to understand. Pic attached |
Re: General LabVIEW questions from a VERY new user
Quote:
Quote:
|
Re: General LabVIEW questions from a VERY new user
The only timing VI's i found besides that one are all seemingly independent. The one attached above wires directly to a drive system. So I need one to wire directly to a SetMotorOutput vi. Or if not, then I don't know how to use one. Once again, all I'm trying to do is:
1) Send a motor control the value of -1 2) Wait 0.25 seconds 3) Send a motor control the value of 1 4) Wait 0.25 seconds 5) Send a motor control the value of 0 (and leave it that way until I call this function again) |
Re: General LabVIEW questions from a VERY new user
Quote:
|
Re: General LabVIEW questions from a VERY new user
Yes. Reset the global after the planned movements are complete.
Greg McKaskle |
Re: General LabVIEW questions from a VERY new user
I finally figured out the sequence. It was actually much easier than we were making it.
But now I'm starting to get into Autonomous programming. I think I understand the coding part of it fine, but I do have a few questions about the general use of Autonomous mode: 1) I was told you can have up to.. I think it was 10? different Autonomous modes. At competition, how do I choose one before the match starts? 2) When practicing during the build season, how do I simulate the Autonomous mode part of the game? Do i change the drive station to Autonomous, Enable, and after 15 seconds it will automatically flip over to teleop, or is it more complicated than that? I'm unable to test anything with our robot at the moment but I also don't want to accidentally mess anything up Thanks! |
Re: General LabVIEW questions from a VERY new user
1 Attachment(s)
There isn't a limit on the number of discrete autonomous routines you write.
You can choose the mode to run from the Driver Station, using the I/O tab, or wired selectors, or by choosing with a button press or a sequence of presses. You can install a switch on the robot itself to choose between autonomous modes. Switch values are available in your cRIO code. Lots of options. Choosing Autonomous mode on the Operation tab will just run Autonomous mode as long as it's enabled. No time limit is imposed. Using Practice mode will by default go through a typical field cycle of Disable/Autonomous/Disable/Teleop/Disable. Options are provided on the Setup tab to adjust the times, so for instance you can reset the Teleop period to be 0 seconds if you don't want to bother with that mode, but still get the Autonomous time limit and other transitions. |
Re: General LabVIEW questions from a VERY new user
Awesome, i played around with the drive station and understand that part.
Still a little confused how I can tell the drive station or robot to pick (ex) Autonomous Mode 2 of 5. So if we wanted we could have an Auto Mode for the back of the period and the front, and choose between them at the last minute. EDIT: Also so y'all know, I'm planning on making a video (after build season ends) where I go through our robot's entire code and explain absolutely everything I can. This way anyone that's in the position I was/am next year will be able to watch it and learn a ton without having to ask a million questions like me :) |
Re: General LabVIEW questions from a VERY new user
Quote:
|
Re: General LabVIEW questions from a VERY new user
Quote:
Quote:
|
| All times are GMT -5. The time now is 01:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi