Discussion:
My periodic tasks don't look so periodic on the bus monitor.
(too old to reply)
FlamingYawn
2007-05-25 01:40:08 UTC
Permalink
My periodic tasks don't look so periodic on the bus monitor.  Is it possible the bus monitor is reporting incorrect rates or are my frames really not being sent very close to periodically?  Are there only certain multiples of a base rate than can be sent periodically?  The attachment shows my different rates.  I've written in the middle of the columns what they should be.  Some are fairly close, some are not.  Am I doing something wrong?  Thanks for any help/advice.
 
 


CAN Bus Timing.PNG:
http://forums.ni.com/attachments/ni/30/2603/1/CAN Bus Timing.PNG
FlamingYawn
2007-05-29 15:40:14 UTC
Permalink
Hi Chris,
Thanks for responding.  I've attached an image of my LabVIEW code setting up and executing the periodic messages.  I'm doing a simple loopback to read what I'm sending out on the other port.  The code is executing without error; I was just wondering if it is normal for hardware-timed periodic messages to be so erratic.  I would have imagined that if the CAN transciever is sending out buffered data at intervals specified by the on-board clock the messages would appear more deterministically timed.
I appreciate your efforts to keep these forums monitored.  I know these questions can be pretty random.


Periodic CAN.PNG:
http://forums.ni.com/attachments/ni/30/2617/1/Periodic CAN.PNG
Chris_R.
2007-06-04 18:40:13 UTC
Permalink
Hi FlamingYawn,
This may be an issue of too many messages trying to transmit at once.  Some may have to wait and thus, mess up the "periodic" timing.  It may be due to your many channels being configured all at once.  I suggest splitting up the channels into 2 or 3 separate Initialize, Start, Write sequences instead of 1.  Try splitting this up into two sequences at least and see if that improves anything.  If you do 2, I suggest doing 1, 2, 10 and 20 in one set of functions, and 40, 50, and 62.5 in another.
Let me know if you have any questions.
FlamingYawn
2007-06-10 19:11:00 UTC
Permalink
I staggered my starts as you suggested (see attached image) but it doesn't seem to have any effect.  Any other ideas?
Thanks,


Staggered start.PNG:
http://forums.ni.com/attachments/ni/30/2641/1/Staggered start.PNG
Nick D
2007-06-12 01:40:08 UTC
Permalink
Hey FlamingYawn,
Have you had a chance to try the periodic transmit VI in the example finder?
<img src="Loading Image...">
Regards,
Nick D.Message Edited by Nick D on 06-11-2007 08:22 PM


PTransmit.jpg:
http://forums.ni.com/attachments/ni/30/2650/1/PTransmit.jpg
FlamingYawn
2007-06-25 22:10:10 UTC
Permalink
Thanks for chiming in, Nick, but I'm using the Channel API and would like to stick with it.&nbsp; Any other ideas, guys?&nbsp; Am I simply overloading the NI CAN card?&nbsp; When I tested just the 62.5 Hz singals, they were all right on the money.
&nbsp;
Thanks,

Continue reading on narkive:
Loading...