Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset CAN Network Object using NI-XNET

This post

http://forums.ni.com/t5/Automotive-and-Embedded-Networks/How-can-I-reset-a-NI-CAN-network-object-wit...

 

mentions that there is a better way to reset an NI CAN network object using the NI-XNET API. Can someone please share how to do this using XNET? What's the equivalent of ncReset in XNET?

 

Thanks.

 

0 Kudos
Message 1 of 5
(7,685 Views)

Sima,

 

The closest thing in XNET is the XNET clear.vi, described in the XNET Hardware and Software Manual on page 4-419.

 

The use case for the VI is still pretty limited, as LabVIEW will take care of most clean up itself.

 

Hope this helps,

 

Jen W

0 Kudos
Message 2 of 5
(7,676 Views)

Still, is there a way to do a generic reset of the card - not the clear VI, which is specific to a task? I already have a bunch of code written in the old CAN channel & frame APIs and want to implement a reset with the XNET API.

0 Kudos
Message 3 of 5
(7,623 Views)

Sima,

 

Unfortunately, XNET does not have an implementation of a board reset.  There certainly are cases in which one would be useful, so you can always fill out a Product Suggestion.  If you do decide to do that, which I definitely encourage you to do, be sure to include as many specifics about the scenario as you can to show that you really do need a board reset and not just an XNET clear.  Hopefully this feature will get implemented in the future with this feedback, and I'm sorry there isn't a better solution right now.

 

Best,

 

Jen W

Applications Engineer

National Instruments

0 Kudos
Message 4 of 5
(7,618 Views)

Jen, thanks for letting me know.

0 Kudos
Message 5 of 5
(7,616 Views)