Hi all,
We built a Simulink model that can be built, loaded and run correctly. The main algorithm is executed in a call-function (ADC-PWM subsystem) when ADC interrupt is received (e.g. every 50 us). Now we want to control one of the variables from the host through RTDX. So we add the RTDX blocks connected to the controlled variable in the call-function. However, the DSP cannot run into the call-function anymore though the simulink model still can be built can loaded into DSP. Is it something wrong with the RTDX block setting such as sample time?
After that, we remove the RTDX blocks in the call-function, just put them on the top level of the simulink model, and connected the "From RTDX" block straight to "To RTDX" block, and rebuild and run it, the read channel of "To RTDX" block can display the value exactly what we input in the write channel of "From RTDX", so it seems that the RTDX communication is correct.
Appreciate it if anyone can give us some solutions.
We are using:
28335 DSP, CCS V3.3, Matlab2009a
Kind regards,
Jerry