Signal mismatch between RT Box Analog Out and DSP ADC in external mode

Hello everyone,

I am currently working on a project using PLECS together with a DSP-based controller, and I am experiencing a signal mismatch issue in external mode. In offline simulation, the Plant and Controller signals match correctly. However, in external mode, the signal measured by the ADC is significantly different from the original signal sent through Analog Out. The waveform shape is similar, but the amplitude and offset are noticeably different.

The Plant is running on the RT Box, and the Controller is running on a TI C2000 DSP in external mode.

Could this be related to ADC range, Analog Out range, clipping, or some other issue in between the RT Box and DSP signal chain?

Thank you.

single_phase_pv_inverter_PI_c2000.plecs (149.4 KB)

In the target settings for the controller, you have selected an external 3.3 Volt voltage reference for ADC A. Are you sure that you have an external reference voltage connected?

The model works fine if you select the internal 3.3 Volt reference.

Thank you for your suggestion.

You were right. ADC A was configured to use an external 3.3 V reference, but I did not have an actual external reference voltage connected.

After changing the ADC reference setting to the internal 3.3 V reference, the measured signals became consistent and the system is now working correctly in external mode.

Thank you very much for your help.