Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

A couple questions regarding CAN Write.

I've got two questions:
 
1.  For example, for CAN Write vi, what happens if I request to write 10 samples and only provide 5.  Does it broadcast the five samples and then scroll back to the beginning and start over or does it broadcast some default value for the remaining 5 samples?
 
2.  What is the difference between output mode and output recent?  I've read the help info, but I still don't see the difference between them.
 
thanks.
0 Kudos
Message 1 of 2
(3,743 Views)

Hi,

To your questions:

1.Yes, with output mode output it would send 5 values and then start from the beginning. With output recent it would allways output the same value( the first one) because it is the recent value. (see 2.)

2. The difference between output and output recent is the update process for the samples send out to the Bus. With output mode evry sample you provide to the write function will be send out with your sample rate. With output recent only the last value provided to the write function when the sample clock tick arrives will be send out. Thus it is possible update samples during runtime. See the NI-CAN Software and Hardware Manual comming with the driver on page 6-10

DirkW

0 Kudos
Message 2 of 2
(3,728 Views)