Software Listing of Author : "Mike Anthony"

Unlike SISO block in Simulink, blocks that have multiple inports and/or outports, or no outport, do not autoconnect if dragged over a signal line in a model. Placing a call to this function in the CopyFcn and MoveFcn callbacks of any block will cause the block to automatically connect when the block is dropped over a line in a Simulink model. This is similar to the built-in behavior of SISO blocks (i.e. gain, unit delay, etc) in Simulink. This also allows you to autoconnect MIMO blocks onto multiple independent signal lines. For example, 3 inports are connected to 3 outports. A subsystem with 3 inputs and 3 outputs can be dropped onto the connected ports and pending the co-linearity of all the subsystem inputs/outputs and the signal lines, all of the ports will automatically connect. This can be made the default behavior for these...

  • Platform: Matlab, Scripts

In Simulink, it is often the case where a user wants to connect multiple blocks to another block, particularly in case of mux, demux, and bus creator blocks. The typical practice is to select multiple blocks, hold control, and select the mux block (for example). This done, the blocks are all automatically connect. The next step is then typically a manual resize of the mux block by the user to make all of the lines just created straight. This functional will automatically resize the block when the lines are initially drawn to eliminate the manual step of doing so. Open the included model AutoSizeTest.mdl and follow the instructions to see an example of the functionality.

  • Platform: Matlab, Scripts

In many cases, Simulinkā„¢ users have multiple blocks that they wish to connect to a block, particularly mux, demux, and bus creator blocks. The current practice is to drag one of these blocks from the Simulink library browser into the model. The mux block, for example, by default has 2 input ports. If you have 4 blocks that you wish to connect, you must open the mask of the mux block and set the number of inputs to 4. This will then create 4 input ports on the mux block. The user can then select the 4 blocks he/she wishes to connect to the mux block, hold CTRL, and select the mux block to automatically connect all of the blocks. This function eliminates the manual step of opening the mask and setting the number of desired inports/outports and does that automatically based on the number of blocks the user selected to try to connect....

  • Platform: Matlab, Scripts

A common task in Simulink is to test a certain component of a larger model. With large-scale modeling, such componentization is often accomplished through the use of model reference. These large models also often use bus signals to organize large amounts of signals in the model. The situation at hand is the desire to unit test one of these components in an open-loop sense, driving that component with data from another simulation or from real world (non-simulated) data. Often this data is simply a matrix of data, columns of variables, rows of data. Making this data work with root-level bus inputs in a Simulink model is sometimes a challenge. The root cause of this challenge has to do with an understanding of Bus Objects. Assume there is a root-level inport which is associated with a bus object "INPUT_BUS." In Simulink, and in code...

  • Platform: Matlab, Scripts

CreateMatrixFromModelData Mike Anthony Mark McBroom Copyright 2010 The MathWorks, Inc. This is a recursive function takes any of the following data objects commonly associated with data logging in Simulink: Simulink.ModelDataLogs Simulink.SubsysDataLogs Simulink.ScopeDataLogs Simulink.TsArray Simulink Timeseries This function outputs an nxm matrix of type double where: n = length of the timeseries data m = number of timeseries in the input (if the input is a Timeseries, m = 1). output_matrix = CreateMatrixFromModelData(inputTsArray) This function is particularly useful in conjunction with bus signals, signal logging, and the Limit Check element in SystemTest. When signal logging is enabled for a bus signal in Simulink, the data is saved as a Simulink.TsArray. As of R2009b, the Limit Check Element in SystemTest only supports...

  • Platform: Matlab, Scripts

Unlike SISO block in Simulink, blocks that have a single inport and no outport (Scope, Display, To File, To Workspace) do not autoconnect if dragged over a line in a model. Placing a call to this function in the CopyFcn callback of any single-inport block will cause the block to automatically connect when the block is dropped over a line in a Simulink model. This is similar to the built-in behavior of SISO blocks (ie gain, unit delay, etc) in Simulink. These blocks, when dropped on a line, automatically connects the inport and outport. With this function, in this case of a single-inport block, the block is moved just below the line and the inport is automatically connected. This can be made the default behavior for these blocks by creating a custom library containing the desired blocks and adding the call to this function in the...

  • Platform: Matlab, Scripts
New Reviews

Print Inspector

Whether you are using a printer connected to your local desktop computer or a print server sometimes you need to see whats going on in your printer by having a close look at the print jobs sent by the users. Print Inspector is such type software ...


Disk Genius

Disk Genius was formerly known as Partition Guru which is an all-in-one solution for disk partition management, data recovery and disk repairing. It can recover lost files from partition, backup and restore partition table, clone partition or clone ...


Safe In Cloud

It is quite difficult to find any computer users nowadays who do not need to use the web, for any purpose. Whether it is for education or entertainment, the web is your best resource. You also need to use various online services for banking, ...


PictBear

Nowadays, a majority of PC users resort to digital image editing once in a while. It may be required for retouching image captured in smart phones or for creating an album in Facebook. For some people, tinkering with digital images is a pastime too. ...


Panda Cloud Cleaner

PC security has become a tricky and complicated subject both for home users and network supervisors, with complexity and risk factors multiplying over the years. Using a single antivirus app may not be enough anymore. That explains why many users ...


SnapCrab

Nearly every PC users need to take screenshots from time to time, whether it is for personal or professional needs. While using the basic Windows screenshot capture method is available, it is not adequate for everyone. When you want to capture ...


BitKiller

Dealing with various types of data efficiently holds the key to success in any computing task. Apart from generating new data and modifying existing files, it becomes necessary to delete existing files at times. While most users resort to using ...


New Downloads

RationalPlan Single Project
for Linux

RationalPlan Single Project is
a project management software
covering the project
management areas starting with
WBS ...

Disk Usage Analyzer Free

Disk Usage Analyzer Free - a
small utility that will help
you visualize how to allocate
space on your hard drive. Any
PC ...

DreamPlan Home Edition

DreamPlan Home Edition for
Windows is an easy to use
software. See your dream floor
plan with customized kitchens,
...

Express Zip Plus for Mac

Express Zip Mac Software for
File Compression and
Archiving. Easily create,
edit, manage and extract
compressed files and ...

Express Scribe Pro Edition

Express Scribe Pro Edition
helps typists by installing on
the user\'s computer and
connecting to a transcription
foot ...

Security Monitor Pro

Video Surveillance with
multiple IP or USB cameras.
Monitor and record from
multiple cameras
simultaneously, create ...

FTP Manager Lite

Free fast FTP client supports
secure transfers and multiple
connections. The file manager
like interface is intuitive to
...

IP Tools for Excel

NEW - IP Tools for Excel -
Add-in / Plug-in for Microsoft
Excel. Instant Productivity -
Instant Results in Microsoft
...

PhotoPad Pro Edition for
Mac

PhotoPad Pro Edition for Mac
Editing Software allows you to
easily edit digital photos and
other pictures. PhotoPad Pro
...

Windows 10 Manager

An all-in-one utility for
windows 10 specially, it
includes over forty utilities
to optimize, tweak, clean up
and fix ...