Library files: <Install Dir>/Toolkits/Controls/General10/CoSimClient.lib, CoSimClient.dll
Interface Function
CommunicateRecurDyn:
• int count
• double sim_time
• int iNPin
• int iNPout
• double *dPIN
• double *dPOUT
• double *rd_time
• int *errorcode
This function must be called once at interface time step.
Parameter Name |
Unit |
Input/Output |
Type |
Description |
count |
[-] |
Input |
int |
|
sim_time |
[-] |
Input |
double |
Is the simulation time |
iNPin |
[-] |
Input |
int |
Is the the number of plant input |
iNPout |
[-] |
Input |
int |
Is the number of plant output |
dPIN |
[-] |
Input |
double |
Is the values of plant input |
dPOUT |
[-] |
Output |
double |
Is the values of plant output |
rd_time |
[-] |
Output |
double |
Is the RecurDyn simulation time |
errorcode |
[-] |
Output |
int |
0: no error 1: The model is abnormally stopped 2: The RecurDyn don't respond. 3: Interface time don’t match. |
FreeCosimMemory ();