Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Bus communication problem

Hello,

I'm trying to use the NI Visual Basic test sample program Single Sample Output.vbp installed from the CAN CD, directory "MS Visual Basic\Channel API examples\Single Sample Output".

When running on the controller with the CAN card (self test all right), I get the error BFF62201 from the function nctInitStart with text: "Error 0xbff62201 (nctErrUndefinedChannel); Channel not found in MAX or the CAN database file. Solutions: Check for proper spelling using MAX; For Get/Set Property, ensure that the channel name exists in the task."

What can be the problem / solution ?

With thanks,

best regards,

Geert
0 Kudos
Message 1 of 3
(3,744 Views)
To use this example it is essentialy to import the example.ncd file from the NI-CAN Folder. Therefore go to CAN Channels in MAX and import this file. Now the MAX knows the channels used in your example.

Hope thats it.
0 Kudos
Message 2 of 3
(3,743 Views)
Hello,

thank you for your answer. Indeed, the ncd-file was the problem.

Best regards,

Geert
0 Kudos
Message 3 of 3
(3,743 Views)