Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN interface already in use

Hi every body,

Is ther a way to progamaticly figure out wether an CANx interface has already been configured/opened ? There is nothing in the ncGetHardwareInfo and the ncGetAttribute requires you to actually open it first (I'm no big fan of trial/failure method).

Thanks
0 Kudos
Message 1 of 2
(5,848 Views)

Hi,

There is no indication with NI-CAN that a Port is already configured. Thus if you configure it again it overwrites the Port properties.  Therefore it is recommended to track Port configurations actions programmatically and the same applies for any open handle.

DirkW

0 Kudos
Message 2 of 2
(5,833 Views)