functionexchangeReals

Exchanges values of type Real with the socket

Information

Function to exchange data of type Real with the socket. This function must only be called once in each communication interval.

Inputs

TypeNameDefaultDescription
IntegersocketFDSocket file descripter
IntegerflaWriCommunication flag to write to the socket stream
Modelica.Units.SI.TimesimTimWriCurrent simulation time in seconds to write
RealdblValWriDouble values to write
IntegernDblWriNumber of double values to write
IntegernDblReaNumber of double values to read

Outputs

TypeNameDefaultDescription
IntegerflaReaCommunication flag read from the socket stream
Modelica.Units.SI.TimesimTimReaCurrent simulation time in seconds read from socket
RealdblValReaDouble values read from socket
IntegerretValThe exit value, which is negative if an error occurred

Revisions

  • May 5, 2009, by Michael Wetter:
    First implementation.