ni.com is experiencing intermittent service disruptions.

Support teams are actively working on the resolution.

Example Code

Write Multiple Messages to a CAN Bus at Different Sample Rates

Code and Documents

Attachment

This example shows how to write mutiple messages to a CAN bus using different sample rates.  For example, you can be sending message 1 at a rate of 10 Hz and message 2 at a rate of 30 Hz.  To do this you have to configure things a little bit differently.

The attached VI is written in LV 7.1.1.  To use it, you will have to have CAN hardware and you will have to have your messages configured in MAX.

Scott G.
AE Specialist
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
vanita
Member
Member
on

it's a good example for me, but i have no hardware currently, could you send us realated *.vi, thanks!

Todd S.
NI Employee (retired)
on

Thanks for posting, Scott.  Could you embed the block diagram image in the description area so we can see what the code looks like?  Also, please rename your attachment to include the LabVIEW version. "_LVxx.vi" is good enough.

Todd S.
LabVIEW Community Manager
National Instruments
bghy
Member
Member
on

Good VI, Thanks.

smoothdurban
Active Participant
Active Participant
on

Great VI.  However I have listed several channel names and I can only get the VI to push the first index channel to the CAN network.

Tim
Contributors