FromHDF
This block reads in data from an HDF5 file, then outputs the data as a signal.
Library
SignalImporters
Description
The FromHDF block reads in data from an HDF5 file created by the ToHDF block.
Then the original signal fed to the ToHDF block can be reconstructed by FromHDF block.
It is important to note that this block cannot read any HDF file, only HDF file created by ToHDF can be read.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
fname | File name | Full filename, with path, of the HDF5 input file. | String | |
varname | Variable name | Name of the variable to store the signal values. | String | |
timename | Time variable name | Name of the variable to store the signal time values. | String | |
typ | Output datatype | String | 'double' | |
outsize | Output port size | Matrix | ||
outevent | Generate events at time instants | Number | 0 | |
externalActivation | External activation | Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected. | Number | 0 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
Buffer | Buffer size | Scalar | ||
Method | Interpolation method | String | 'Zero-order' | |
Leftside | Behavior before the data time span | String | 'Zero' | |
Rightside | Behavior after the data time | String | 'Zero' |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | activation | input | externalActivation | |
Port 3 | activation | output | outevent |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | Time Dependency = standard mode activated |
direct-feedthrough | no | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |