NI-CAN Error -1074388985

Updated Apr 26, 2023

Reported In

Software

  • LabVIEW

Driver

  • NI-CAN

Issue Details

I am trying to use the CAN Set Property.vi (nctSetProperty in C) in a loop to set properties for all of my channels, but am receiving an error -1074388985 (0xBFF62007). What could be wrong?
CANError.JPG

Solution

When using the Set Property functions in either LabVIEW or C, some of the available properties apply to the CAN interface and not a specific channel. Whenever you attempt to set an interface property after the port interface has already been started you will receive this error. 

For example, if you try to set any of the Interface properties in a loop you will see this error since the port is already running. Make sure that you set the Interface properties outside of your loops to avoid this error.  

This interface is usually configured to Start On Open. This option can be disabled.

Disable.JPG

Additional Information

The shipping example Series 2 Filter Mode.vi is a great example of how to change properties from within a loop. It can be found at NI Example Finder » Hardware Input and Output » CAN » Frame API » Basic.