Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   How to use "Sync Groups"? (http://www.chiefdelphi.com/forums/showthread.php?t=90692)

Dave Bush 01-02-2011 13:08

How to use "Sync Groups"?
 
Can't find much info on how "Sync Groups" work with CAN based motors? The online help really doesn't help. What does the Sync value represent? The address of the motor you want to send the same command to? If so is it possible to sync more than one motor? :confused:

Current config: 2Can, LV, dual motor drive (i.e. two motors, one gearbox per side).

lior_regev 05-02-2011 16:43

Re: How to use "Sync Groups"?
 
I'de love an example too please

Talguy 07-02-2011 13:47

Re: How to use "Sync Groups"?
 
when your setting the output using the "motor set output" vi, you can create a constant for the sync group. This constant is defines what sync group the motor will be in for that update cycle. After all you motors are set to their desired outputs call the "Jag update sync group". This last command will tell all the jags in that group to accept the output values and start adjusting that motor speed all at the same time.

jhersh 08-02-2011 02:12

Re: How to use "Sync Groups"?
 
Quote:

Originally Posted by Talguy (Post 1017633)
when your setting the output using the "motor set output" vi, you can create a constant for the sync group. This constant is defines what sync group the motor will be in for that update cycle. After all you motors are set to their desired outputs call the "Jag update sync group". This last command will tell all the jags in that group to accept the output values and start adjusting that motor speed all at the same time.

That's mostly correct. The only correction is that the group is an 8-bit mask. This means you could call set output and assign a sync group of 3 and then pass 1 or 2 into Update Sync Group and and the update would be applied in either case. You could also assign one motor to 4 and another to 8 and then pass 12 into Update Sync Group and both motors will update.

Not sure why you would want to do any of this, but that's how it works. Just don't accidentally use group 2 and 3 and expect them to be independent.

-Joe


All times are GMT -5. The time now is 10:14.

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