Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   How to program the digital side car (http://www.chiefdelphi.com/forums/showthread.php?t=114649)

iilego 04-03-2013 17:31

How to program the digital side car
 
With the default program, we are able to use PWM 1-4, but for some reason 5-10 don't work. We know the motors work, so we think it's the program and so I'd like to know how it is you program a DSC or incorporate it into the program?

Alan Anderson 04-03-2013 22:47

Re: How to program the digital side car
 
The Digital Sidecar produces PWM signals for motor speed controllers and servos. It also produces signals to control Spike relay modules. It also has general-purpose digital inputs and outputs for things like limit switches, optical sensors, quadrature encoders, I2C and SPI communication, etc. "How to program" it is much too general a question to get a simple answer in a forum post. Ask a more specific question instead, like "How do I keep an arm motor from running too far and breaking something?" or "How do I maintain a motor at a constant speed?"

The default program only has PWMs 1-4 defined, as the four drive motors. What are you trying to control on the other PWMs, and how do you have them connected? How have you modified the program to use them?

Mark McLeod 04-03-2013 23:20

Re: How to program the digital side car
 
The general style for adding a motor controlled by a PWM output involves Opening it in Begin.vi and using it in Teleop.vi and sometimes other places.
Did you do these things?

Here's a simple example:


All times are GMT -5. The time now is 12:07.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi