|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
|||||
|
|||||
|
Re: Air Cylinder,compressor,soleinoids,relay
To verify that you have everything properly wired to control a compressor, and to see the programming that makes it work, follow the example and tutorial I pointed you to earlier.
|
|
#17
|
|||
|
|||
|
Re: Air Cylinder,compressor,soleinoids,relay
THIS is my begin
|
|
#18
|
|||
|
|||
|
Re: Air Cylinder,compressor,soleinoids,relay
Quote:
http://www.wenonahrobotics.webs.com/ I hope so too |
|
#19
|
|||
|
|||
|
Re: Air Cylinder,compressor,soleinoids,relay
You have no need for the while loop. Please see the example he is pointing you to!
|
|
#20
|
|||
|
|||
|
Re: Air Cylinder,compressor,soleinoids,relay
i did not program the begin
|
|
#21
|
|||
|
|||
|
Re: Air Cylinder,compressor,soleinoids,relay
Quote:
|
|
#22
|
|||
|
|||
|
Re: Air Cylinder,compressor,soleinoids,relay
Quote:
|
|
#23
|
||||
|
||||
|
Re: Air Cylinder,compressor,soleinoids,relay
Are you currently trying to operate the compressor and cylinders on a bench setup do you just want to make sure that your code will work once you get there?
I will be the Control System Advisor at the Razorback Regional. Look for one of the volunteers in an orange hat on Thursday and we will help get your compressor and solenoids working. In the Begin, you do not need the Relay Open block. It is taken care of by the Compressor Open. In the Solenoid Open, you have both solenoid channels selecting Solenoid 1. You need to add a Set Ref for the compressor so it can be used inside of Periodic Tasks.vi. Make sure that in Periodic Tasks that the compressor code is enabled and the reference is set to the same name as you add in the Begin.vi. In Teleop.vi, the release will need to be set to "Reverse", not "Off". Off leaves the valve in the last state. |
|
#24
|
|||||
|
|||||
|
Re: Air Cylinder,compressor,soleinoids,relay
Someone on your team did, and they did it wrong. The Compressor Enabled status check, and the while loop that contains it, should not be there. Instead, there should be a Compressor RefNum Set giving the compressor reference a name, and that same name should be used in the Compressor RefNum Get that feeds the compressor control loop function in Periodic Tasks.
Start with the example project I told you about. Get it working first. Then use the tutorial I told you about to move the example code into your robot program. |
|
#25
|
|||
|
|||
|
Re: Air Cylinder,compressor,soleinoids,relay
Hey, thanks and i was wondering when it comes to my victor motors do i have to program them into Teleop.vi.
|
|
#26
|
||||
|
||||
|
Re: Air Cylinder,compressor,soleinoids,relay
What are these victors used for?
You will need to create an Open Motor and Motor Set reference in Begin. Then you will need to use them in teleop. |
|
#27
|
|||
|
|||
|
Re: Air Cylinder,compressor,soleinoids,relay
The victors are for the shooter,and I've done all of that in the begin i just need to know how to do it in the teleop
|
|
#28
|
|||||
|
|||||
|
Re: Air Cylinder,compressor,soleinoids,relay
There's also a Motor Control example. It's pretty trivial -- all you need to do is wire the desired input to a Motor Set function.
|
|
#29
|
|||
|
|||
|
Re: Air Cylinder,compressor,soleinoids,relay
Hey, i tried that it didn't hep
|
|
#30
|
|||||
|
|||||
|
Re: Air Cylinder,compressor,soleinoids,relay
When you say the example didn't help, do you mean that it didn't work? Or do you mean that it worked but you weren't able to implement what it did in your own program?
If the example didn't work, there is a problem with your wiring. Give us as much detail as you can about how you have your motor and speed controller connected to the rest of the robot, and we'll try to help you figure out what's wrong. A clear picture of the wiring would be a big help. If the example works, then there is a problem with your software. Show us what you did, in both Begin and Teleop, and we'll try to help you figure out what's wrong. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|