Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-CAN with Delphi?

I like to use Delphi to control a NI-CAN. So, my question is if there is an any way to control the CAN card directly from Delphi and if there is any example code availible for this kind of task?
0 Kudos
Message 1 of 3
(4,504 Views)
Not sure if this is possible.  Here is an extract from "NI-CAN Hardware and Software Manual.pdf":
 
"The NI-CAN software does not provide formal support for programming languages other than those described in the preceding sections.  Nevertheless, you may find libraries and examples for other programming languages on the National Instruments Web site, ni.com.

If the programming language provides a mechanism to call a Dynamic Link Library (DLL), you can create code to call NI-CAN functions. All functions for the Channel API and Frame API are in

nican.dll."

Can you call DLL Functions?  All of the documentation for the functions are provided in the manual.

Jaegen

Message 2 of 3
(4,454 Views)
Hi,
National Instruments does not support Delphi with NI-CAN. However, here are two examples and a NI-CAN wrapper in Delphi that has not been extensively tested (attached below). I hope the examples will be helpful to you. Also check the "NI-CAN Hardware and Software Manual" for more information on the NI-CAN functions and parameters. This manual is available on our web site at the following URL:
http://digital.ni.com/manuals.nsf/websearch/75A23BEFC0DECEB98625700B00083154
 
These examples and wrapper are not supported, but hopefully will be a good resource for you. Jaegen's post is also a very good suggestion to try.
 
Regards,
Missy S.
Project Engineer
RoviSys
0 Kudos
Message 3 of 3
(4,433 Views)