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).