Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5     Rate this Document

Programmatically Clearing a CAN, DNET or LIN Device.

Primary Software: Driver Software>>NI-CAN
Primary Software Version: 2.5.2
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Industrial Communications>>CAN

Problem:
My program has crashed or aborted and my NI-CAN or NI-DNET object was not closed properly, when I try to restart my code again I get error -1074388986. How can I clear my device?

Solution:
Use the ncAction.vi with "Reset" wired into the Opcode input.  The Reset action first issues the Stop action, clears all entries from the write queue, then resets the CAN or LIN hardware.  Resetting the CAN hardware sets the CAN error counters to zero, returning the CAN controller to error active state.

Resetting the LIN hardware returns the interface to slave mode and resets all slave task response queue entries so that the slave task subscribes to all LIN IDs.

The reset action is propagated up to all open higher-level CAN Objects.. The current NI-CAN Hardware and Software Manual and Specifications document, linked below, provides more details of this VI.

Some errors that may be resolved by resetting the CAN, DeviceNET or LIN device:

Error -1074388986 occurred at ...
NI-CAN:  (Hex 0xBFF62006) The object is already open in another application.  Solutions: Ensure that only one application at a time uses an object , and that you close all objects prior to exiting your application (don't use LabVIEW toolbar's Abort button).

Error -1074388969 occurred at ...
NI-CAN: (Hex 0xBFF62017) This attribute's value must be provided prior to the Open. Solutions: Set the attribute using the Config function before the Open, and do not set the attribute at any later time; Do not configure multiple CAN Objects for the same ID.

 



Related Links:
Product Manuals: NI-CAN Hardware and Software Manual and Specifications
Product Manuals: NI-DNET User Manual
KnowledgeBase 3X2IG5C5: Error -1074388969 When Running a CAN Program


Attachments:





Report Date: 02/19/2008
Last Updated: 03/30/2009
Document ID: 4IIHT8SL

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit