FromHDF

This block reads in data from an HDF5 file, then outputs the data as a signal.

    FromHDF

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

FromHDF_0

NameLabelDescriptionData TypeValid 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'
'int32'
'int16'
'int8'
'uint32'
'uint16'
'uint8'
'boolean'
'inherit'

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
1

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
1

FromHDF_1

NameLabelDescriptionData TypeValid Values

Buffer

Buffer size

Scalar

Method

Interpolation method

String

'ZeroOrder(floor)'
'ZeroOrder(ceil)'
'ZeroOrder(nearest)'
'Linear'
'Not_a_knot'
'Natural'
'Clamped_To_Zero'
'Akima'
'Fritsch_Butland'
'Steffen'

Leftside

Behavior before the data time span

String

'Zero'
'Hold'
'Extrapolation'
'Repeat'

Rightside

Behavior after the data time

String

'Zero'
'Hold'
'Extrapolation'
'Repeat'

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Port 2

activation

input

externalActivation

Port 3

activation

output

outevent

Advanced Properties

NameValueDescription

always active

no

Time Dependency = standard mode activated

direct-feedthrough

no

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

See Also