Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to create .ncd file without using MAX?

Is it possible to create .ncd file without using MAX? I am trying to read the data given by hundreds of possible Arb. IDs on one of the CAN port without having to create it from the MAX.
Thank you
 
0 Kudos
Message 1 of 3
(5,277 Views)
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
Message 2 of 3
(5,262 Views)

Hi bus monitor. It's possible to create a ncd file programmatically. See the link below.

 

http://decibel.ni.com/content/docs/DOC-3456 

 

 

My regards,

Vinicius 

0 Kudos
Message 3 of 3
(4,452 Views)