getBoolean pure function
Requirements.Internal.CSV.getBoolean
ยท source
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
| Name | Type | Description |
|---|---|---|
file input | File | The file |
column input | Integer | Index into the booleanNames the file was opened with |
t input | Real | Current time |
nextTimeEvent input | Real | The block's nextTimeEvent |
preNextTimeEvent input | Real | pre(nextTimeEvent) |
Outputs
| Name | Type | Description |
|---|---|---|
y output | Boolean | Value of the column at time t |