getInteger pure function

Requirements.Internal.CSV.getInteger  ยท source

Icon of getInteger

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

Extends Modelica.Icons.Function

The value of the Integer column column (an index into the integerNames 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 Integer output with it in when {fileEvent, initial()}, so that the output changes only at events.

Inputs

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

Outputs

NameTypeDescription
y outputIntegerValue of the column at time t