| RESPITE: The CASA Toolkit Page: Documentation: Block Library Index:MInput |
MInput is used from within the CTKShell to directly import data from the MATLAB variable space for use in a CTK system. The name of the variable to import can be given explicitly using the string parameter, NAME. Alternatively, if this parameter is left unset the block will search for a variable matching the name of the block itself. The interpretation of the MATLAB variable will depend on its dimensionality. A 1-D variable will be fed into the network as a 1-D time series i.e. a sequences of samples. A 2-D variable will be treated as a time series of 1-D frames. A 3-D variable as a time series of 2-D frames and so on.
The DURATION parameter specifies the number of samples or frames to read. If set to 0 (which is the default) then all the data stored in the variable will be used.
| Inputs | Meaning | Sample | 1-D frame | |
|---|---|---|---|---|
| No inputs | ||||
| Outputs | Meaning |
|---|---|
| out1 | Data imported from MATLAB |
| Parameters | Type | Default | Meaning |
|---|---|---|---|
| SAMPLE_RATE | Float | - | Set the data sampling rate (samples/second) |
| DURATION | Integer | 0 (0=all the data) | Number of samples to read |
| NAME | String | - | Name of the MATLAB variable to import |