getBoolean pure function

Requirements.Internal.CSV.getBoolean  ยท source

Icon of getBoolean

Value of the i-th Boolean column at time t (piecewise constant)

Extends Modelica.Icons.Function

The value of the Boolean column column (an index into the booleanNames the file was opened with) at time t: the value of the last row whose time is at or before t, constant between rows. At an event of the file the bracket (nextTimeEvent, preNextTimeEvent) selects the side, as in getReal: before the block's when-clause has fired the value of the last row before the event, afterwards the new value. Outside the file's range the first or last row is held, or an error is raised (extrapolateHold = false). An extending block of Sources.PartialSignalsFromFile assigns each Boolean output with it in when {fileEvent, initial()}, so that the output changes only at events.

Inputs

NameTypeDescription
file inputFileThe file
column inputIntegerIndex into the booleanNames the file was opened with
t inputRealCurrent time
nextTimeEvent inputRealThe block's nextTimeEvent
preNextTimeEvent inputRealpre(nextTimeEvent)

Outputs

NameTypeDescription
y outputBooleanValue of the column at time t