|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Help with CAN bus closed-loop speed control
Will the SetMotorSpeed.vi in LabVIEW set the "speed" or the "voltage" of motors if the Jaguars that are controlling the motors with CAN bus off the digital sidecar? Thanks in advance.
|
|
#2
|
||||
|
||||
|
Re: Help with CAN bus closed-loop speed control
The "set-speed" should set the speed, with feedback. (it requires an encoder)
I believe it's in RPM, but I don't recall. The "set-voltage" is proportional; -1 to 1 just like the pwm-based "set-speed" in the WPI libraries. |
|
#3
|
|||
|
|||
|
Re: Help with CAN bus closed-loop speed control
Which sub-pallete are the set-speed and set-voltage vi's in?
|
|
#4
|
||||||
|
||||||
|
Re: Help with CAN bus closed-loop speed control
All of the CAN VIs are available on FIRSTForge. http://firstforge.wpi.edu/sf/frs/do/....canjaguar/frs
The VIs included with LabVIEW do not support CAN. The SetSpeed VI that comes with LabVIEW uses PWM and sets a voltage, it doesn't actually set a closed loop speed. CAN does not run from the digital sidecar, it either runs from the serial port on the cRIO through a black jaguar or from ethernet through a 2CAN. When you said CAN, did you really mean PWM? |
|
#5
|
|||
|
|||
|
Re: Help with CAN bus closed-loop speed control
No I meant CAN. I'm sorry I didn't make that clear. I downloaded and looked at those vi's from Firstforge and it seems to me that they want inputs from encoders through the digital sidecar. But is there a way to program the Jaguars in Labview to perform closed-loop speed control by feeding the encoder wires straight to the Jaugars and hooking the Jaugars to CAN bus? (by the way, my team is using gray Jaugars just to let you know)
|
|
#6
|
||||
|
||||
|
Re: Help with CAN bus closed-loop speed control
Well, if you're using CAN, then the encoders SHOULD be hooked up directly to the jaguars.
The documentation may not explicitly say it, but if you're using CAN speed control (as opposed to voltage control), the encoders must be connected to the Jaguar, not the digital sidecar. |
|
#7
|
|||
|
|||
|
Re: Help with CAN bus closed-loop speed control
Well, the problem is I don't know how to tell the Jaguars, in LabVIEW, to utilize the closed-loop speed control that the Jaguars already have in them when encoders are wired straight to the Jaguars and the Jaguars are daisy-chained with CAN from the serial port on the CompactRIO.
|
|
#8
|
||||||
|
||||||
|
Re: Help with CAN bus closed-loop speed control
Have you looked at the speed control example that is included with the CanJaguar for LabVIEW download from FIRSTForge?
|
|
#9
|
|||
|
|||
|
Re: Help with CAN bus closed-loop speed control
Yes, but the default form of that example requires inputs from encoders or potentiometers to the cRIO for the code to work right.
|
|
#10
|
||||||
|
||||||
|
Re: Help with CAN bus closed-loop speed control
The file I'm looking at "CAN Jaguar - Speed Control Example.vi" does not use encoders or potentiometers on the cRIO. It uses an encoder on the Jaguar.
|
|
#11
|
||||||
|
||||||
|
Re: Help with CAN bus closed-loop speed control
We didn't use CAN this year so I may off base with this so keep that in mind...
As far as I know, CAN gives you feedback on current. Current is proportional to torque in a DC motor. That means you can perform feedback and control torque, so you won't be directly controlling speed. |
|
#12
|
||||
|
||||
|
Re: Help with CAN bus closed-loop speed control
Quote:
Would you please post a link to that file you're looking at? I am told by our programmer (and others) that the WPI CAN/Jaguar VIs they have looked at only support closed-loop speed control performed by cRIO using encoder signals passed to the cRIO, not closed-loop speed control performed by the Jags using encoder signals connected to the Jags. Thanks. ~ |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Closed Loop Speed Control | kgzak | NI LabVIEW | 16 | 29-03-2010 21:27 |
| closed-loop torque (current) wheel control for mecanum | Ether | Programming | 3 | 07-02-2010 00:54 |
| Radio Packet loss + closed loop control system = lunging robot | Dave K. | Control System | 5 | 20-02-2007 06:09 |
| PID control loops - closed loop feedback | KenWittlief | Technical Discussion | 56 | 26-04-2004 21:27 |
| How Can You Make A Closed Loop System???? | GRR_340 | Pneumatics | 6 | 21-03-2002 12:27 |