Download Block Parameters
Transcript
Chapter 1: Xilinx Blockset Now you can edit the M-file with the MATLAB editor and set break points as needed. During the Simulink simulation, the MATLAB debugger will stop at the break points you set when the break points are reached. When debugging, you can also examine the values of the variables by typing the variable names in the MATLAB console. There is one special case to consider when the function for an MCode block is executed from the MATLAB debugger. A switch/case expression inside an MCode block must be type xfix, however, executing a switch/case expression from the MATLAB console requires that the expression be a double or char. To facilitate execution in the MATLAB console, a call to double() must be added. For example, consider the follwing: Vivado: Designing with System Generator UG958 (v2015.3) September 30, 2015 www.xilinx.com Send Feedback 218