LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error when running CAN-card

Hello!

Does anyone have any idea what might be wrong when getting this error message? See attached document...

Best regards and thank you.
0 Kudos
Message 1 of 5
(2,648 Views)
Hello Ex-jobb

Quite a few attributes/properties of NI-CAN can only be set, while the port/task/object is not yet started. Trying to set one of those attributes while the port/task/object is active (started) will cause error code 0xBFF62007.

Check out the help (CTRL+H in LabVIEW or the 'NI-CAN Hardware and Software Manual' in your ..\NI-CAN\Documentation\ folder) for the attribute you are trying to set. Most likely there is something like this mentioned:
"Communication must be stopped to set this attribute. Use Start On Open False with ncConfigCANNet.vi, set the attribute, then use ncAction.vi to start communication."

-B2k
0 Kudos
Message 2 of 5
(2,640 Views)
Hello! Thank you for your help! This is exactly what we are doing as you suggest... but we get the error message anyway. Any other suggestions? Thank you and best regards.
0 Kudos
Message 3 of 5
(2,628 Views)
Hello Ex-jobb

Could you post an NI Spy logfile from running the application? NI Spy captures calls from your VI to the NI-CAN driver. Launch NI Spy at:
Start » Programs » National Instruments » NI Spy

-B2k
0 Kudos
Message 4 of 5
(2,626 Views)
Oh, one more thing: Make sure that you always close your CAN handles/references with ncClose. Failing to do so (it might also happen during debugging when you terminate the VI with the STOP button) will cause the object to be still active/started as 'no-one' told the CAN card to stop. If you then restart the VI, the driver tries to configure the CAN card (through ncConfigCANNet.vi), but the card rejects those changes with that error as it is still active/started.

-B2k
0 Kudos
Message 5 of 5
(2,622 Views)