From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

ECU MC toolkit - Problem when using multiple instances

Hello members,

I developed a driver that allows to communicate with a prototype using CAN, XCP and UDS protocols. The XCP side is based on the ECU MC toolkit libraries. The driver consists in 4 states : Standby, Initialize, Execute, Finalize

 

Everything works fine when I connect one only prototype: no problem both with the Standby-Initialize-Execute and with Execute-Finalize-Standby transition.

 

But when I connect two at the same time things are not good: even I manage to get into the Execute state and get data from the prototypes, get back to the Standby is impossible because the "MC ECU Close.vi" never exits (see attached pic).

 

Thank you for any info that can help!!

Marco

0 Kudos
Message 1 of 2
(3,222 Views)

How are you connecting the two prototype ECUs? Are they both connected to the same bus/CAN interface? Or are you trying to run your state machine code independently on two interfaces in parallel?

Jeff L
National Instruments
0 Kudos
Message 2 of 2
(3,204 Views)