FromCSVnoHeader
This block reads data from a CSV file where the header line may or may not be present.
Library
SignalImporters
Description
If the block is activated by external activation and a time stamp is also defined, the output is 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 | Filename | Defines the name (path and full name, in between quotes) of the input .csv file. | 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 of variables in the .csv file that are to be read. One variable corresponds to one column. | 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 | Defines how to interpolate the data that is read in from the .csv file. | String | 'ZeroOrder' |
Leftside | Behavior before the data time span | String | 'Zero' | |
Rightside | Behavior after the data time | String | 'Zero' | |
Offset | Data starts from line # | Line from which to start reading the .csv file. Default is 1. | Scalar | |
Separator | CSV or text file delimiter character | Enter a separator character in this field. If the field is left empty, Activate considers the first character following the variable time in the first line as the CSV separator. | String |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | nout | |
Port 2 | activation | input | externalActivation | |
Port 3 | activation | output | outevent |