FromCSVnoHeader
This block reads data from a CSV file where the header line may or may not be present.
Library
SignalImporters
Parameters
Name | Label | Description | Data Type | Valid 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' | |
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 |
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 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
Method | Interpolation method | String | 'ZeroOrder' | |
Leftside | Behavior before the data time span | String | 'Zero' | |
Rightside | Behavior after the data time | String | 'Zero' | |
Offset | Data starts from line # | Scalar | ||
Separator | CSV or text file delimiter character | String |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | nout | |
Port 2 | activation | input | externalActivation | |
Port 3 | activation | output | outevent |