3.2.4 Sensor view inputs
Prefix
Sensor view inputs shall be named with the following prefix:
OSMPSensorViewIn
Rules
-
If only one sensor view input is configured, the prefix shall only be
OSMPSensorViewIn. -
If more than one sensor view input is configured, the prefix shall be extended by an array index, for example,
OSMPSensorViewIn[1]andOSMPSensorViewIn[2]. -
Array indices shall start at 1 and shall be consecutive.
-
Each sensor view input shall be defined as a notional discrete binary input variable with
@causality="input"and@variability="discrete". -
The MIME type of the variable shall specify the
type=SensorViewas part of the MIME type parameters. -
Sensor view data shall be encoded as
osi3::SensorView. -
The sensor view passed to the model shall contain data as specified by the parameter
OSMPSensorViewInConfiguration. -
The guaranteed lifetime of the sensor view protocol-buffer pointer provided as input to the FMU shall be from the time of the call to
fmi2SetIntegerthat provides those values until the end of the followingfmi2DoStepcall.