GU Haojie Posted July 29, 2016 Report Share Posted July 29, 2016 Hello, team: Recently, I face a problem to send 2 CAN frames with different interval. i.e. Frame Interval FrameA 50ms FrameB 200ms The thing is that interval time is the longer one always. I have less knowledge of Labview so far, I don't know which structure could be used in my condition. Any help would be appreciated. Thanks you. Quote Link to comment
venugopal Posted July 29, 2016 Report Share Posted July 29, 2016 Hi Gu Haojie, Flat sequence will be the best one, need more details to help you at lest your block diagram snippet Quote Link to comment
hooovahh Posted July 29, 2016 Report Share Posted July 29, 2016 I don't understand. Are you writing CAN or reading it? Are you using NI-CAN or NI-XNET? What is your hardware, is it NI based even? Post your code. That being said I've never had any problem reading or writing CAN frames at different rates in any API. Oh and if you are new to LabVIEW here is some free training: NI Learning Center NI Getting Started -Hardware Basics -MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations) -LabVEW Basics -DAQ Application Tutorials -cRIO Developer's Guide Learn NI Training Resource Videos 6 Hour LabVIEW IntroductionSelf Paced training for studentsSelf Paced training beginner to advanced, SSP Required Quote Link to comment
GU Haojie Posted August 2, 2016 Author Report Share Posted August 2, 2016 On 7/29/2016 at 8:18 PM, hooovahh said: I don't understand. Are you writing CAN or reading it? Are you using NI-CAN or NI-XNET? What is your hardware, is it NI based even? Post your code. That being said I've never had any problem reading or writing CAN frames at different rates in any API. Oh and if you are new to LabVIEW here is some free training: NI Learning Center NI Getting Started -Hardware Basics -MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations) -LabVEW Basics -DAQ Application Tutorials -cRIO Developer's Guide Learn NI Training Resource Videos 6 Hour LabVIEW IntroductionSelf Paced training for studentsSelf Paced training beginner to advanced, SSP Required My hardware is NI-USB8473. And what I wanna do is to periodic send CAN frames, but they have difference time interval. Example, Frame A should be sent by each 50ms and Frame B should be sent by each 200ms. Thanks very much for your links, do u know how to post a picture, BTW? Here is my current block diagram CAN tool.7z Quote Link to comment
Tim_S Posted August 2, 2016 Report Share Posted August 2, 2016 XNET can do periodic frames well; I've done this with the PCI card. The database of frames contains the intervals to send them. As I recall loading the database was all that was needed. Setting the frame values changed what was being periodically sent. 1 Quote Link to comment
GU Haojie Posted August 3, 2016 Author Report Share Posted August 3, 2016 15 hours ago, Tim_S said: XNET can do periodic frames well; I've done this with the PCI card. The database of frames contains the intervals to send them. As I recall loading the database was all that was needed. Setting the frame values changed what was being periodically sent. Tks, it seems that couldn't work with the "NI USB-8473" Quote Link to comment
LogMAN Posted August 3, 2016 Report Share Posted August 3, 2016 (edited) On 8/2/2016 at 8:10 AM, GU Haojie said: My hardware is NI-USB8473. And what I wanna do is to periodic send CAN frames, but they have difference time interval. I have done this in the past with (multiple) NI-USB 8473 and invested hours and hours just to try and keep the frames synced. It's impossible to keep the frames on a certain interval as the OS and the USB will kill your timing. My application experienced delays of more than 400 ms for frames that required intervals of 20 ms! Long story short: Do yourself a favor and use an XNET compatible PCI card, they support periodic CAN frames by design. On 8/2/2016 at 8:10 AM, GU Haojie said: Thanks very much for your links, do u know how to post a picture, BTW? You can just drag files in your editor when posting, there is a field just below where you enter your text Edited August 3, 2016 by LogMAN Answering questions :-) 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.