Hi,
the NI-CAN driver software does not provide functions/VIs to generate
*.ncd files. However the *.ncd file format is just plain XML (ASCII text). Take a
look at the example.ncd file that gets installed with NI-CAN
(<ProgramFiles>\National Instruments\NI-CAN\):
<?xml version="1.0" encoding="UTF-8"?>
<nican_config version="0.1">
<saved>8/8/2005,17:58</saved>
<message name="TransmissionFluids">
<id extended="0">82</id>
<dbc>C:\Program Files\National Instruments\NI-CAN\example.ncd</dbc>
<conflicts>0</conflicts>
<bytes>6</bytes>
<interface>1</interface>
<comment></comment>
<channel name="ClutchPressure">
<conflicts>0</conflicts>
<bitfield start="0" bits="8" order="0" type="1"/>
<linear_scaling factor="1.600000e+001"
offset="0.000000e+000" max="4.000000e+003" min="0.000000e+000"
default="0.000000e+000" unit="kPa"/>
<comment></comment>
</channel>
...
</message>
</nican_config>
Thus, you could generate *.ncd files with simple file I/O. Having XML-specific file I/O functions simplifies this task.
-B2k