Example Code

Programmatically Create .ncd File.

Code and Documents

Attachment

Download All

This program demonstrates how to programmatically create and build .ncd database files based on user input. The user inputs NI-CAN Message Names, Message Configurations, Channel Names, and Channel Configuration List Data and this program builds a .ncd file that can be used with the NI-CAN Channel API.

Language: English

Date of Last Update: 02/16/2009

Software Needed:

LabVIEW 8.6 or 8.5.1

NI-CAN 2.6 or newer

Steps to Using:

1. Input file path for database file to be created.

2. Input message name and configuration and channel name and configuration.

3. Run VI to create .ncd file.

CAN_ncd.PNG

National Instruments
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors