Please add the Diagnostic Description in the CANoe configuration (Configuration | Diagnostics/ISO TP…) to both networks as indicated below.
Note that both ECU qualifiers have to differ (e.g. Door/Door2).
With this configuration, you can change between both networks without stopping the measurement using the CAPL functions setBusContext() followed by DiagSetTarget()like shown in the example below:
void MainTest ()