FromHDF
This block reads in data from an HDF5 file, then outputs the data as a signal.
Library
Activate/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.
If the block is activated by external activation and time stamp is also defined, the output are displayed at event activation times. The external activation may be turned off, if time instants are provided.
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 | Defines the datatype of the output of the block. Available datatypes are : double, int32, int16, int8, unit32, uint16, uint8. | String | 'double' |
outsize | Output port size | Size of output port. | Matrix | |
outevent | Generate events at time instants | Specifies if the block generates an activation event. When OutEvent is used, an additional event output port is added to the block. Default is off. | 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 |