4.7.1.10. Control

4.7.1.10.1. GPIN

The GPIN function imports calculated values from external control programs, such as CoLink or Matlab, into the RecurDyn model. The values are inserted as RecurDyn plant inputs and the function returns the GPIN entity values. If using General Control, this command should be used.

Format

GPIN(General Plant input entity)

Arguments definition

General Plant input entity

The name or argument number of the GPIN entity

Example

GPIN(GPlantInput1)
GPIN(1) <Argument: (1) GPlantInput1>
../_images/image2483.png

Figure 4.71 Expression dialog using the GPIN function

4.7.1.10.2. GPOUT

The GPOUT function returns GPOUT entity values to allow calculated values from the RecurDyn model to be used in external programs, such as CoLink and Matlab. If using General Control, this command should be used.

Format

GPOUT(General Plant output entity)

Arguments definition

General Plant output entity

The name or argument number of the GPOUT entity
image250

Example

GPOUT(GPlantOutput1)
GPOUT(1) <Argument: (1) GPlantOutput1>
../_images/image2513.png

Figure 4.72 Expression dialog using the GPOUT function