ToCSV

This block writes data into a CSV file. The first line of the CSV file must include the variable names, and the first variable name should be "time".

    ToCSV

Library

SignalExporters

Parameters

ToCSV_0

NameLabelDescriptionData TypeValid Values

fname

CSV Filename

String

nin

Number of exported variables

Number

inports

Variable selection

Structure

inports/varname

Variable name

Cell of strings

inports/vardatatype

Datatype

Cell of strings

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

Separator

CSV file separator character

String

SubS

Sub-sampling rate

Scalar

addTime

Name of the first column

If the name is omitted, a time column will not be added to the CSV file.

String

quotedNames

Variable names should be quoted

Number

0
1

externalActivation

External activation

Number

0
1

append

Append data

Number

0
1

increasingTime

Strictly-increasing time

Select to create a strictly-increasing time sequence.

Number

0
1

BufferSize

Buffer size

Scalar

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin

Port 2

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no