Go to Post Getting a swerve to drive predictably and effectively is arguably harder than designing and building it. - Holtzman [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 23-04-2012, 10:46
mjcoss mjcoss is offline
Registered User
FRC #0303
 
Join Date: Jan 2009
Location: Bridgewater,NJ
Posts: 70
mjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the rough
Re: URGENT: CAN Jag error code 1 - dequeue element in acquire semaphore

Quote:
Originally Posted by legogeek24 View Post
Hey all,
...
I get this:
"error code 1:
Dequeue element in acquire semaphore.vi:1->WPI_CAJaguar_SetTransaction.vi:28->WPI_MotorControlSetOutput.vi:9->Periodic Tasks.vi->Robot Main."
Note: Labview isn't my forte but ...
The error message to me implies that your code is accessing something that wasn't properly initialized, probably the CANJaguar controller. I'll take a quick look at the WPI_CANJaguar_SetTransaction vi and see if I can get a sense of what could have gone wrong. The CAN bus uses messages to update the Jaguars. The message are queued and dequeued and I suspect a semaphore is used to protect access to the queue.

Took a quick look at the vi, and it was as I suspected, it tries to acquire the semaphore, and then sends the command. The semaphore is part of the CANJaguar reference that is passed in. I would suspect that the CANJaguar reference is bad in some way. Without seeing the project that fails, I'm not sure what else to tell you.

Last edited by mjcoss : 23-04-2012 at 13:29. Reason: Updated
Reply With Quote
 


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 20:11.

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