Hi Srija,
I failed to reproduce your issue on my end. Could you please reply if the problem still persists and in which version of MATLAB you are facing this issue?
I am able to successfully generate consistent sin wave from DAC-B library block in Simulink on MATLAB R2023b.
(After 1 hour)
It could be happening because of faulty TI MCU or your digital oscilloscope.
Here are few steps you can take to debug this issue:
- Try replacing the probes. Try to see if the problem persists even on other oscilloscopes.
- Try checking if you are getting proper ground voltage (0V). Then see if you are getting 5 Volts and 3.3 Volts with respect to ground on F28379D.
- Is Simulink able to deploy the generated code to your MCU. Check if the Debug Probe XDS100 is not being used by other softwares, such as CCS.
- In the Simulink model, check if the Bias block is correctly set. Check if you are using correct DAC block.
These steps will surely help you get more clarity on what is causing this issue.
You can also view the output in Simulink itself, thereby removing oscilloscope from the loop. In Simulink, configure a GPIO Pin as input pin by using a Digital Input library block. Then on MCU board you can short DABOUTB pin and configured GPIO input Pin. Now with “Monitor and Tune” feature on Simulink, you should be able to view the DAC B output.
Good Luck!
Regards,
Vishwa