STIM (Stimulation) is the inverse of DAQ. Instead of the ECU sending data to the tool, the tool sends data to the ECU — writing values to specific ECU RAM variables at a configured event rate. This enables a bypass architecture where a Simulink model on the PC drives an ECU algorithm input, replacing what the ECU would normally compute.
Normal operation: ECU computes: torque_demand = f(throttle, rpm, temp) ECU writes: torque_demand → actuator STIM bypass mode: Simulink model on PC: torque_demand_model = StimulusFunction(inputs) Tool sends STIM packet → XCP writes → torque_demand_stim (ECU RAM) ECU reads torque_demand_stim instead of its own computed value (controlled by bypass_flag MEASUREMENT variable) Benefits: - Test new algorithm on real ECU before code integration - Validate plant model accuracy against real hardware response - Rapid algorithm iteration without ECU reflash
💡 STIM vs DOWNLOAD
STIM writes ECU RAM variables at a real-time rate (synchronised to an ECU event channel, e.g., every 10ms). DOWNLOAD is a one-shot write used for calibration parameters. Use STIM when the PC model must continuously update an ECU variable at the task cycle rate; use DOWNLOAD for static parameter changes.