01-11-2009 02:32 PM
Solved! Go to Solution.
01-12-2009 12:03 PM
osasson,
The maximum bus rate is 1 Mbit/s and so I want to clarify that 500 Mbytes cannot be transmitted on the bus, but 500 Mbits can.
1. You could possibly configure this to happen using the Channel API. This would be fairly accurate after calling CAN Write as long as the input arrary had data in it. Once CAN Write was called a second time, the timing would be off.
2. You could configure this with a fair ammount of accuracy the first time that the CAN write runs, however on subsequent calls the timing would be off again.
3. More information on the CAN buffers can be found here. The buffer depends on the API used.
4. No, this is not possible using a non-deterministic (non-RT) OS.
From your application description, it sounds like you need to use a Real-Time OS in order to get the performance that you desire. The non-deterministic nature of Windows, Linux, etc will make this application very difficult to get to reliably function as desired.
Regards,
01-12-2009 02:33 PM
10ex.
A. Please note that I wrote 500 bytes (not 500Mbytes), this is the reason that I assumed that i will be able to get "pseudo RT" performance.
B. So actually the can card is a slave of the S/W, it is not autonomous
C. Are you familiar with any other (NI or other) product that supports "card configuration" (sending messages only 46milisec after "sync message", sending "sync message" periodically...)?
Regards,
Ofir
01-13-2009 01:37 PM
Ofir,
It is possible to program the application you described in the Windows environment, it will usually be accurate, but there is no guarantee that it will happen.
1. I see the difference now for the 500 bytes vs. 1 Mbits. My misunderstanding came from 500 Mbits/s being a common CAN baud rate.
2. The card is software timed.
3. You might be interested in CompactRIO using the NI 985x C-Series CAN modules. Using the CompactRIO, you could program precise timing parameters and have them execute in real time. These C-Series modules support the Frame API.
NI CompactRIO
Regards,