This example shows how an Advisor component can be attached to a Calculator component. The Calculator outputs varying signals, and demonstrates the use of TempValues.
Options:
PeriodMs: 1000
Constants:
InputSignals:
OutputSignals:
- { Type: CommonVesselInfo, Topic: CommonVesselInfo, Partition: }
TempValues:
- time
- variance
- modus
Expressions:
- time = time + 1
- variance = sin(time*6.28/120)
- modus = 0 + (variance > 0 )
- CommonVesselInfo.machinery.auxElProd = 300 * (modus +1)
- CommonVesselInfo.machinery.auxLoad_kW = 300 * (modus +1)
- CommonVesselInfo.machinery.meCons = 400 * (modus +1)
- CommonVesselInfo.machinery.meLoad_kW = 2000 * (modus +1)
- CommonVesselInfo.machinery.meRpm = 600 * (modus +1)
- CommonVesselInfo.machinery.sumCons = 520 * (modus +1)
- CommonVesselInfo.machinery.sumElProd = 300 * (modus +1)
- CommonVesselInfo.machinery.sumLoad_kW = 2300 * (modus +1)
- CommonVesselInfo.machinery.ptiPower = 200
- CommonVesselInfo.machinery.ptoPower = 0 * (modus +1)
- CommonVesselInfo.machinery.sfc = 0.2 * (modus +1)
- CommonVesselInfo.propulsion.efficiency = 0.5 * (modus +1)
- CommonVesselInfo.propulsion.pitchPd = 0.9 * (modus +1)
- CommonVesselInfo.propulsion.pitchPercent = 70 * (modus +1)
- CommonVesselInfo.propulsion.rpm = 140 * (modus +1)
- CommonVesselInfo.propulsion.thrust = 200 * (modus +1)
- CommonVesselInfo.propulsion.torque = 20 * (modus +1)
- CommonVesselInfo.propulsion.speed = 3 * (modus +1)
- CommonVesselInfo.propulsion.powerToPropellerJet = 2000 * (modus +1)
- CommonVesselInfo.propulsion.power = 2000 * (modus +1)
- CommonVesselInfo.nfc = 0.44 * (modus +1)
- CommonVesselInfo.machinery.auxCons = 120 * (modus +1)