Marine systems simulation
|
External .dll communication interface.
Special class of SimObject that can have it's ports read and set from outside the simulation. This implements the interface in ExternalLink
See example file at the bottom of this page, for clarification.
Name | Width | Description |
---|---|---|
outputPortNames | n | Comma separated list of output port names. |
Initial_<outputPortName1>...Initial_<outputPortName<n>> | m | One for each output port name. Initial values for each output port. |
inputPortNames | k | Comma separated list of input port names. |
Size_<inputPortName1>...Size_<inputPortName<k>> | 1 | One for each input port name. Size of each input port. |
Initial_<inputPortName1>...Size_<inputPortName<k>> | size_<inputPortName<..> | One for each input port name. Initial values for each input port. |
There are two different ways of setting the output port values of an ExternalLink. With and without copy. Without-Copy only stores the given memory reference. Other processes that have access to the same memory reference can change values of the port at any time. With-Copy transfers the data from the given memory reference to a local buffer.
The internal state and time must be updated with "UpdateStatesAndTime" before correct values can be retrieved from the "GetMyInputPort" functions.
This SimObject is referred to as ExternalLinkStandard
This SimObject is referred to as System/ExternalLinkStandard