Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
phpEnter 5.1.
Udemy Clone script 2.01
VisualNEO Web 19.11.7
VisualNEO for Windows 19.4.29.0
SentiVeillance SDK Trial 7.3
Devart ODBC Driver for PostgreSQL 3.2
SecureBridge 9.2
dotConnect for QuickBooks 1.9
dotConnect for Magento 1.9
dotConnect for Zoho CRM 1.10
dotConnect for FreshBooks 1.10
IP2Location Geolocation Database January.2020
dotConnect for BigCommerce 1.10
HTMLPad 2020 16.0
WeBuilder 2020 16.0
Top Code
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Report About Simulink signal trace and highlight 1.0
- required fields

Please enter text on the image
  



A modification of the "Highlight to Source" and "Highlight to Destination" functions useful in large block diagrams utilising buses.

The function uses undocumented properties TraceDestinationInputPorts and TraceSourceOutputPorts. Handle with care.

% myTraceSignal traces Simulink signals. Unlike the builtin
% "Highlight to Destination" it will only highlight signal
% routes which end on a non-virtual destination block (signal
% routes which end in e.g. a Terminator block, or signals which
% are never extracted from a bus will not be highlighted).
%
% out = myTraceSignal(direction,hBlock,porttype,sigidx,verbose)
% direction [char] 'forward' or 'back' (or 'f' or 'b')
% hBlock [handle] originating block
% porttype [char] 'inport' or 'outport' (or 'i' or 'o')
% sigidx [number] port index (optional, default ':' all ports)
% verbose [bool] command prompt text (optional, default true)
%
% Example - trace all signals entering the selected block
% (e.g. a BusCreator) to their destinations
% out = myTraceSignal('f',gcbh,'i');
%
% Note: Function is intended to trace signals (not buses) so, for example,
% for forward tracing use myTraceSignal('f',gcbh,'i') to trace destinations
% of signals entering a BusCreator, and use myTraceSignal('f',gcbh,'o')
% to trace destinations of signals leaving a BusSelector.
%
% Note: Goto blocks in back-trace are not highlighted (but the From-
% blocks and the lines are).

Back