Software Listing of Author : "Paul Metcalf"
- Chirp Source Block For Simulink
- License: Freeware
- Price: 0.00


This block for Simulink provides a chirp source for stimulating unknown system dynamics. The block has been developed specifically for the purpose of system identification, however it should be of interest to anyone looking for a robust and flexible chirp function. The chirp function is modelled using a power equation and is suitable for discrete time applications. The performance can be tuned to user requirements. It appears to provide advanced performance over the default blocks provided in the Simulink and Signal Processing blocksets.
- Publisher: Paul Metcalf
- Date Released: 20-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Foxboro I/A Series PIDA Blocks
- License: Freeware
- Price: 0.00


This block implements the PID control equations found on page 1680 of the Foxboro I/A Series Integrated Control Block Descriptions Manual Volume 3, dated May 31 2006. Use this block when the target platform for a PID control design is a Foxboro I/A Series DCS. These blocks have been field verified by the author and are designed to be directly compatible with the Foxboro equivalent PIDA blocks. Depending on the level of interest, the block may be developed in the future to add further functionality.
- Publisher: Paul Metcalf
- Date Released: 03-04-2013
- Download Size: 20 KB
- Download
- Platform: Matlab, Scripts
- Function to generate Timeseries file to use for Moore FSM coverage analysis
- License: Freeware
- Price: 0.00


This function generates a Timeseries file which can be used for Moore FSM coverage analysis. The file is generated in the working directory and can be opened into the Workspace for use by MATLAB, or read directly into Simulink using the 'Import Data From File' source block. The generated Timeseries is based on a modified Truth Table, which is essentially two mirrored and concatenated Truth Tables. This double length table increases the coverage result compared to using a single Truth Table. The intended application is for Moore FSM coverage analysis where the Moore Machine has boolean-only inputs (such as if the design is logic only, or the input comparators are located external to the machine). Example: generatetestdata(i) generates a Timeseries 'Test_Data.mat' in the working directory with dimension [M;N] where; M = 2*2^i and, N...
- Publisher: Paul Metcalf
- Date Released: 22-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Function to generate Timeseries file to use for Moore FSM coverage analysis.
- License: Freeware
- Price: 0.00


This function generates a Timeseries file which can be used for Moore FSM coverage analysis. The file is generated in the working directory and can be opened into the Workspace for use by MATLAB, or read directly into Simulink using the 'Import Data From File' source block. The generated Timeseries is based on a modified Truth Table, which is essentially two mirrored and concatenated Truth Tables. This double length table increases the coverage result compared to using a single Truth Table. The intended application is for Moore FSM coverage analysis where the Moore Machine has boolean-only inputs (such as if the design is logic only, or the input comparators are located external to the machine). Example: generatetestdata(i) generates a Timeseries 'Test_Data.mat' in the working directory with dimension [M;N] where; M = 2*2^i and, N...
- Publisher: Paul Metcalf
- Date Released: 09-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Function To Generate Truth Table
- License: Freeware
- Price: 0.00


This function very efficiently generates a Truth Table matrix of arbitrary, user specified dimension. The order of the Truth Table is limited only by the user's available system memory. The function is highly efficient, written using only three variables in 15 lines of MATLAB code. While this is longer in terms of lines than similar functions on MATLAB CENTRAL, it is the quickest and most direct function that obtains the solution (and the only function that doesn't depend on other functions to achieve the result). The Truth Table is returned as an M by N matrix where M = 2^i and N = i (the function argument). Example: generatetruthtable(3) returns the following output: ans = 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1
- Publisher: Paul Metcalf
- Date Released: 22-05-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Function To Generate Truth Table Condition Vectors
- License: Freeware
- Price: 0.00


This function returns a matrix of all possible binary condition vectors for a logical system with (I) inputs. The number of inputs is limited only by the user's available system memory. The function is highly efficient, written using only three variables in 16 lines of MATLAB code. While this is longer in terms of lines than similar functions on MATLAB CENTRAL, it is the quickest and most direct function that obtains the solution (and the only function that doesn't depend on other functions to achieve the result). INPUT: (I) shall be an integer >= 1 OUTPUT: CONDVECTS is a binary matrix of size [2^I,I] USAGE: GETCONDVECTS(3) ans = 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1
- Publisher: Paul Metcalf
- Date Released: 26-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
