Bernd F Posted January 29, 2007 Report Share Posted January 29, 2007 Hello LabVIEW users, programmers and friends, I create a Programm to send Data with the Channel-API to a LED-board. I use LowSpeed-Transceiver; 125kBaud; SP=81,3%; BTR1=0xC3; BTR2=0x2B. I use "CAN Init Start.vi" to send with the "CAN channel-name" Port "CAN1" mode "Output Recent" sample rate "0" and "CAN Init Start.vi" to read with the "another CAN channel-name" Port "CAN1" mode "Input" sample rate "10000" It works perfect, but it is really "slow" (84ms per message-frame[6,3ms data + 78ms break]). If i open the NI-CAN BusMonitor it works really faster! (10ms per message-frame[6,3ms data+ 3,7ms break]). But WHY??? Same Code! I just open the BusMonitor! ??? Is there a setting that speed up the CAN-communication or set another priority to the LabVIEW-programms? I want to include this settings to my programm, but don't no what they are. I get a timing statistic: "CAN Read Single Chan Multi Samp 1D Dbl.vi" uses without monitor 312,5 ms (423 runs) and with monitor just 78 ms (also 423 runs). "CAN clear.vi" without monitor 172 ms (382 runs) and with monitor 62 ms (382 runs). ? Why this difference ? An other question: Can i get the information if a channel (by name, not by task reference) ist initialiced yet? So i must not initiate it again. Could anyone help me? Thanks a lot Bernd F. Quote Link to comment
Bernd F Posted January 29, 2007 Author Report Share Posted January 29, 2007 :question: how could i delete this 2nd post? Quote Link to comment
martin@aerodynamics Posted January 29, 2007 Report Share Posted January 29, 2007 :question: how could i delete this 2nd post? Just delete the post (upgrade to premium member....) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.