FromCSVnoHeader

This block reads data from a CSV file where the header line may or may not be present.

    FromCSVnoHeader

Library

SignalImporters

Parameters

FromCSVnoHeader_0

NameLabelDescriptionData TypeValid Values

fname

Filename

String

timeColumn

Time column number (-1 if no time is available)

If no time is available, the block should be activated by an external activation. If a time column is specified no external activation is required.

Scalar

nout

Number of requested variables

Number

outports

Variable selection

Structure

outports/colnum

Column number

Cell of scalars

outports/vardatatype

Datatype

Cell of strings

'double'
'int32'
'int16'
'int8'
'uint32'
'uint16'
'uint8'
'boolean'

outevent

Generate events at time instants

If a time column is specified, then the values in that column are the times of the event activations.

Number

0
1

externalActivation

External activation

If no time is available, the block should be activated by an external activation. If a time column is specified no external activation is required.

Number

0
1

FromCSVnoHeader_1

NameLabelDescriptionData TypeValid Values

Method

Interpolation method

String

'ZeroOrder'
'Linear'
'Not_a_knot'
'Natural'
'Clamped_To_Zero'
'Akima'
'Fritsch_Butland'
'Steffen'

Leftside

Behavior before the data time span

String

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

Rightside

Behavior after the data time

String

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

Offset

Data starts from line #

Scalar

Separator

CSV or text file delimiter character

String

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

nout

Port 2

activation

input

externalActivation

Port 3

activation

output

outevent