10-24-2005 06:09 AM
10-25-2005 02:57 PM
Hi Sajk,
There is an example that ships with LabVIEW that demonstrates how to send periodic messages using the Channel API. If you go to Help >> Find Examples... this will launch the Example Finder. If you browes to Hardware Input and Output >> CAN >> Channel API >> Basic, the VI is Single Sample Periodic Output.vi. This demonstrates how to use CAN Init Start to set up the sample rate for periodic transmission. In the Measurement & Automation Explorer you can select the baud rate of the bus. Just select you CAN interface and press Properties. The baud rate multiplied by the frame size gives you the maximum transmission rate. The timing is performed in hardware both for the baud rate and the sample rate.
10-25-2005 03:08 PM
Hi Sajk,
Please note that the maximum rate for periodic objects is limited to
2 ms. So you can have two periodic CAN objects with a rate of 4 ms each
or ten periodic CAN objects with a rate of 20 ms each. In both cases
the combined rate is not faster than a transmission every 2 ms.
If you exceed that limitation, you'll get an error (hex 0xBFF620A1 or hex 0xBFF62130) from the NI-CAN driver.
-B2k
05-11-2008 09:58 PM
05-13-2008 10:26 AM