MathWorks today introduced Release 2015b (R2015b) with a range of new capabilities in MATLAB and Simulink. In addition to new features in MATLAB and Simulink, R2015b includes updates and bug fixes to 83 other products.
MathWorks is the leading developer of mathematical computing software. MATLAB, the language of technical computing, is a programming environment for algorithm development, data analysis, visualization, and numeric computation. Simulink is a graphical environment for simulation and Model-Based Design for multidomain dynamic and embedded systems. Engineers and scientists worldwide rely on these product families to accelerate the pace of discovery, innovation, and development in automotive, aerospace, electronics, financial services, biotech-pharmaceutical, and other industries. MATLAB and Simulink are also fundamental teaching and research tools in the world's universities and learning institutions. Founded in 1984, MathWorks employs more than 3000 people in 15 countries, with headquarters in Natick, Massachusetts, USA. For additional information, visit mathworks.com.
MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See mathworks.com/trademarks for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.
I am trying to connect delfino tms320f28335 microcontroller with matlab 2015b. I need to get sine pwm. To get sine pwm , i need to compare sine function(50Hz) with triangular wave (20KHz) by using rational operator in simulink. Before this, i have used a pulse generator and digital output block of F28335 microcontroller in simulink and i am getting same pulse at same duty cycle which i have opted in pulse generator block. I have checked this by oscilloscope and it working fine. Now i am trying to get sine pwm by using sine function and triangular wave (repeating sequence block) and a rational operator. This arrangement is giving me sine pwm in simulink scope but not giving on hardware gpio pins which i have selected in F28335 digital output block.
I have attached some files which are sine function setting , repeating sequence setting and solver setting file. For the repeating sequence, i have defined a frequency 'ft' and it's value can define in command window whatever carrier frequency you want to use.
Initially i was using fixed step solver with auto fixed step size but using this, repeating sequence was not generating the triangular wave than i put 1us step size and it was generating triangular wave with pure sine wave. After deploy to hardware, it is building and taking time but not getting output on gpio pin but simulink scope is giving nice pwm which i have already sent.
But if it is urgent, you can always contact MathWorks Technical Support. Everyone on our tech support staff has a MS or PhD in Engineering, so they are very very good, and they have ways to escalate issues to the right development teams here at MathWorks.