Jump to content

Releasing handles in CAN drivers


Lars915

Recommended Posts

Posted

I have many applications that must run various flavors of CAN, most notably CANOpen and DeviceNet. I am using a PXI-8464 dual CAN card. The problem I'm having is that during development, hiccups occur which crash the program before all of the CAN handles can be released. The only way I've found to clear them is to shutdown all of my NI software and restart which is a royal pain. I've also found that the NI DNET drivers do the same thing, leave handles unclosed, so I cannot run a standard CAN application after running DNET.

Anyone know how to get these handles to release without restarting LabVIEW???

  • 2 weeks later...
Posted

Hi,

I recently had a similar problem when integrating a driver which used NI CAN. It always had problems reinitializing itself (it obviously wasn´t developed for my usecase).

The ncReset.vi NI CAN KB Article helped a lot in my case (I didn´t want to debug the driver, making sure it closes all it references itself). 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.