10-21-2008 09:02 AM
Hello,
I'm facing a problem on how to send CAN frames at a rate of 10ms but with different contents.
More precizely, each frames have a frame number form 0 to 16 and a crc in the two last bytes.
frames contents are pre calculated and what i'm searching is a way to send those 16 pre calculated
frames on the bus each 10ms restarting to the first frame after sending 16 frames.
does anybody already done this ?
HW : PCI CAN2
SW : Labwindows/CVI 8.5.1 - NI-CAN 2.6
Thanks for your support.
10-31-2008 12:18 PM
Hello,
I think it has already been done, but did you have a look at the examples provided in the NI Example Finder?
You'll find in the following folder : Hardware Input and Output>CAN>Frame API>Basic both examples: CAN Transmit periodic and CAN Transmit Mutliple.
Maybe you could mix both...
Otherwise I'm afraid that you will have to code your own functions that do the behavior you want.
But It seems that The ncWriteMult function, with Timestamped transmit mode enabled (look in the Help) could delay each frame from each other.
Then, you will just have to send back the all array after it has been written.
Hope this helps.
Olivier L. | Certified LabVIEW Developer