ToTextFile

This block is used to save Activate data to a text file.

    ToTextFile

Library

Activate/SignalExporters

Description

The ToTextFile block is used to save Activate data to a text file.

Parameters

ToTextFile_0

NameLabelDescriptionData TypeValid Values

fname

Output filename

Name of the output text (Ascii) file.

String

cformat

Output print format (C)

A string describing the output printing format on the text file on each line. The format string should be compatible with the C language specifications.

String

FirstLine

First line annotation

A string that is printed at the first line of the text file. This field may be left empty ("").

String

BufferSize

Buffer size

In order to speed up the operation a buffer may be used. Once the buffr becomes full, it is flushed on the disk.

Scalar

SubS

Sub-sampling rate

The data is sub-sampled before being stored in the file. The default value is one, which produces no subsampling. Larger values reduce the size of the file.

Scalar

append

Append data

Appends the data to the end of an existing file.

Number

0
1

increasingTime

Strictly-increasing time

Select to create a strictly-increasing time sequence.

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

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

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

yes