Software Listing of Author : "Mike Anthony"
- AutoConnect
- License: Shareware
- Price:


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...
- Publisher: Mike Anthony
- Date Released: 06-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- AutoSize
- License: Shareware
- Price:


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.
- Publisher: Mike Anthony
- Date Released: 18-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- AutoSizeOnConnect
- License: Shareware
- Price:


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....
- Publisher: Mike Anthony
- Date Released: 11-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Create Bus Data for Models with Root-Level Bus Inputs
- License: Freeware
- Price: 0.00


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...
- Publisher: Mike Anthony
- Date Released: 25-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- CreateMatrixFromModelData
- License: Freeware
- Price: 0.00


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...
- Publisher: Mike Anthony
- Date Released: 25-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- SinkAutoConnect
- License: Shareware
- Price:


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...
- Publisher: Mike Anthony
- Date Released: 25-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
