Example | Top Previous

Examples Example1: We use txWatchdog Mode 0 and TxWatchdog periods=500ms. TxWatchdog frame DLC=8. TxWatchdog coounter has 2 bytes starting from the 1st byte of frame's data field. Our PC will be in charge of setting TxWatchdog Counter value every 500ms. And the Counter value will increase 1 every 500ms. Please see screenshot of model below: It has "Wait" 500ms block. This "wait" block will lead to actual sampling time=500ms besides simulated sampling time=0.5 sec. Please open "your CAN Controller library folder"/examples/example1_sendTxWatchdog.slx (You must change USB serial Port number in CAN_setup block according to your physical USB port number)