Modelica.Blocks.Interfaces.BusAdaptors.SendReal
Converts an InPort connector to a signal which can be connected to the signal bus. Connect connector 'toBus' with the signal bus. A pop-up dialog appears which allows to specify the signal from the bus which is set equal to the signal of the InPort connector.
block SendReal "Send Real signal to bus" Internal.InputReal toBus; InPort inPort(final n=1); equation toBus = inPort.signal[1]; end SendReal;
Modelica.Blocks.Interfaces.BusAdaptors.SendBoolean
Converts a BooleanInPort connector to a signal which can be connected to the signal bus. Connect connector 'toBus' with the signal bus. A pop-up dialog appears which allows to specify the signal from the bus which is set equal to the signal of the BooleanInPort connector.
block SendBoolean "Send Boolean signal to bus" Internal.InputBoolean toBus; BooleanInPort inPort(final n=1); equation toBus = inPort.signal[1]; end SendBoolean;
Modelica.Blocks.Interfaces.BusAdaptors.SendInteger
Converts an IntegerInPort connector to a signal which can be connected to the signal bus. Connect connector 'toBus' with the signal bus. A pop-up dialog appears which allows to specify the signal from the bus which is set equal to the signal of the IntegerInPort connector.
block SendInteger "Send Integer signal to bus" Internal.InputInteger toBus; IntegerInPort inPort(final n=1); equation toBus = inPort.signal[1]; end SendInteger;
Modelica.Blocks.Interfaces.BusAdaptors.ReceiveReal
Converts a signal from the signal bus to an OutPort connector. Use this element by connecting connector 'fromBus' with the signal bus. A pop-up dialog appears which allows to specify the signal from the bus which is set equal to the signal of the OutPort connector.
block ReceiveReal "Receive Real signal from bus" Internal.OutputReal fromBus; OutPort outPort(final n=1); equation fromBus = outPort.signal[1]; end ReceiveReal;
Modelica.Blocks.Interfaces.BusAdaptors.ReceiveBoolean
Converts a signal from the signal bus to a BooleanOutPort connector. Use this element by connecting connector 'fromBus' with the signal bus. A pop-up dialog appears which allows to specify the signal from the bus which is set equal to the signal of the BooleanOutPort connector.
block ReceiveBoolean "Receive Boolean signal from bus" Internal.OutputBoolean fromBus; BooleanOutPort outPort(final n=1); equation fromBus = outPort.signal[1]; end ReceiveBoolean;
Modelica.Blocks.Interfaces.BusAdaptors.ReceiveInteger
Converts a signal from the signal bus to an IntegerOutPort connector. Use this element by connecting connector 'fromBus' with the signal bus. A pop-up dialog appears which allows to specify the signal from the bus which is set equal to the signal of the IntegerOutPort connector.
block ReceiveInteger "Receive Integer signal from bus" Internal.OutputInteger fromBus; IntegerOutPort outPort(final n=1); equation fromBus = outPort.signal[1]; end ReceiveInteger;