Go to Post Would all you teams please stop! My chin will be bruised for weeks from dropping on the floor so much. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2011, 13:08
Dave Bush Dave Bush is offline
Registered User
FRC #0801
 
Join Date: Mar 2010
Location: Merritt Island, FL
Posts: 7
Dave Bush is an unknown quantity at this point
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?

Current config: 2Can, LV, dual motor drive (i.e. two motors, one gearbox per side).
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2011, 16:43
lior_regev lior_regev is offline
Registered User
FRC #2630
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2006
Location: Israel
Posts: 8
lior_regev can only hope to improve
Re: How to use "Sync Groups"?

I'de love an example too please
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2011, 13:47
Talguy Talguy is offline
Registered User
FRC #2168
 
Join Date: Nov 2010
Location: CT
Posts: 8
Talguy is an unknown quantity at this point
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2011, 02:12
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: How to use "Sync Groups"?

Quote:
Originally Posted by Talguy View Post
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:19.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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