emBreakpoint | Top

emBreakpoint embedded breakpoint. Since R2019b Library: embeddedCreatorLib ( Dafulai Electronics) / embedded Modbus Slave & Debugger / emBreakpoint Description This block will set one breakpoint in any output port of any block. All white color background of "emBreakpoint"s are enabled. All grey color background of "emBreakpoint"s are disabled. If code stops in one "emBreakpoint" block, its background will become red color. Notes: 1 During pause, "emWait" 's timer is still running, "RTC" 's timer is still running. Modbus Server can still response to external Modbus Master request. 2 If "emBreakpoint" blocks are inside interrupt sample, this interrupt priority must be lower than timer1's interrupt (1ms tick created) and Uart's interrupt which is used in Monitor/Debugger. 3 In Simulink model, block's executing order is decided by "block priority". Lower value has higher executing priority. You can set block's priority in Block Properties window. Actual block executing order can be viewed by click menu item "DEBUG/ Information Overlays / BLOCKS / Execution Order" of "Simulink main menu" Parameters Please double click this block to open parameters dialog below: Let us explain parameters.
• | Enable Breakpoint — "checked on" will enable "this break point". If you didn't connect "Debug hardware", all breakpoints are disabled automatically.
• | How many executing times to create one break ?— uint8 type of scalar. 1 to 255 denotes one code break needs how many times to run here.
Notes: "Continue Run" is button, not parameter. It is used to run again when code stops here. Ports Input
• | — Any data type's scalar or vector. Connect to any output port of block. If "Enable Breakpoint" is true, and specified times to run here arrive, Code execution will stop. The block background color "Red" indicates "Stop"
Outport None Examples