Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Programmatically Clearing a CAN or DNET 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.

Solution:
To programmatically reset your NI-CAN or NI-DNET card using ncReset.vi, this will clear all objects from your device. The ncReset.vi can be found in
National Instruments\labVIEW\VIlib\nican\nican.llb
, note it is not located on the VI pallet in LabVIEW. Place the ncReset.vi at the beginning of the code to insure that no CAN objects can be  called before the card is reset.


Note:
The ncReset.vi will resets both ports of your two port device even if you call it on a single port.


Related Links:

Attachments:





Report Date: 02/19/2008
Last Updated: 04/03/2008
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