Go to Post FIRST involves school, parents, family etc etc....at least it does at our house! - MrForbes [more]
Home
Go Back   Chief Delphi > Technical > Control System
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-03-2013, 22:43
Retro Frost Retro Frost is offline
Registered User
FRC #4153
 
Join Date: Feb 2013
Location: Los Alamos, NM
Posts: 5
Retro Frost is an unknown quantity at this point
Problems with Labview, Unexplainable lag

We are having massive issues with Labview and possibly CAN bus, however it isn't anything we can specifically identify.

We have a version of code deployed to run as startup which works flawlessly, but when we added one more jag (in code, it was already physically in the CAN bus) we started getting huge amounts of lag and jerkiness in any control. Including things not on the CAN bus.

We removed the offending code, and the problem persisted. We thought, and still think, that we are causing some sort of error cascade (handling one error takes long enough that it can cause a timeout error, which is handled, etc) but commenting out all the error handling helps only intermittently. (It worked once, and for a while afterwords, but then we had the errors again.)

Any help would be appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2013, 00:59
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,562
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Problems with Labview, Unexplainable lag

Quote:
Originally Posted by Retro Frost View Post
We are having massive issues with Labview and possibly CAN bus, however it isn't anything we can specifically identify.

We have a version of code deployed to run as startup which works flawlessly, but when we added one more jag (in code, it was already physically in the CAN bus) we started getting huge amounts of lag and jerkiness in any control. Including things not on the CAN bus.

We removed the offending code, and the problem persisted. We thought, and still think, that we are causing some sort of error cascade (handling one error takes long enough that it can cause a timeout error, which is handled, etc) but commenting out all the error handling helps only intermittently. (It worked once, and for a while afterwords, but then we had the errors again.)
Yes, LabVIEW has trouble with cascading errors. Additionally, many of the CAN VIs block until a response is received. If it blocks in teleop, it can cause timeouts.

How many CAN messages are you sending per loop? The black jaguar serial bridge is very limited in how many it can handle. The 2CAN is much better.

Some VIs, like the set motor VIs have an isochronous option which causes them to send the command and not wait for a response. This is much better to use if you are setting a command every loop.

Have you asked for help from the CSA at your event?
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 20:13.

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