Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset XNET session

Hello All,

 

I developped a TestStand sequence that calls steps using CAN FD xnet session (TS2021(64bits), LV2021 (64bits) and NI X-NET 21.8). This sequence is executed using parallel processmodel (6 executions).

 

After communication error, due to UUT tested, it happens sometime that the "XNET Clear" doesn't work properly and then, when I restart the sequence, the "XNET Create session" return the following error :

XNET:  (Hex 0xBFF6309A) The interface has already been opened with different cluster settings than the ones specified for this session. Solution: Make sure that the cluster settings agree for the interface, or use a different interface. [Error Code: -1074384742]

 

The only solution to reset this error is to exit TestStand.

 

so I would like to know if there is a solution to reset  all XNET sessions used by a CAN interface ?

 

Thank you for your help

 

JP

 

 

 

0 Kudos
Message 1 of 3
(177 Views)

What I can think of:

  1. Use XNET System Close.vi to reset all XNET interfaces.
  2. If you want to reset only a specific interface, use System Config API. You can refer to the shipping example Reset All Devices.vi (Hardware Input and Output >> System Configuration) and specify your interface number in the filter.

ZYOng_1-1737297263212.png

 

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 3
(161 Views)

Hello,

 

thank you for the answer, it looks like the system config Reset VI is not supported by CAN interface

 

JP_V_0-1737383583623.png

 

any other idea?

 

0 Kudos
Message 3 of 3
(146 Views)