MESSAGE_SUB
Utility/Data Access SubroutineA subroutine called by MotionSolve to generate messages.
Use
Generation of a customized message file containing solver messages.
<MESSAGING>
LOG_OPTION = { "Overwrite" | "ScreenOnly" | "Append" }
USRSUB_PARAM_STRING = "USER( [[par_1[,...][,par_n]])
"
USRSUB_DLL_NAME = valid_path_name
USRSUB_FNC_NAME = "MESSAGE_SUB"
</MESSAGING>
Format
- Fortran Calling Syntax
-
SUBROUTINE MESSAGE_SUB (MSG_ID, TIME, PAR, NPAR, MSGTYPE, IFLAG, ENDFLAG, ERRFLG, MESSAGE, OUTNAME)
- C/C++ Calling Syntax
-
void STDCALL MESSAGE_SUB (int *msgid, double *time, double *par, int *npar, int *msgtype,int *iflag, int *endflag, int *errflg, char *message, int len_message, char *outname, int len_outname)
- Python Calling Syntax
-
def MESSAGE_SUB (msgid, time, par, npar, msgtype, iflag, endflag, message, outname): return errflg
- MATLAB Calling Syntax
- Not supported.
Attributes
- MSG_ID
- [integer]
- TIME
- [double precision]
- PAR
- [double precision]
- NPAR
- [integer]
- MSGTYPE
- [integer]
- IFLAG
- [integer]
- ENDFLAG
- [integer]
- ERRFLAG
- [integer]
- MESSAGE
- [string]
- OUTNAME
- [string]
Example
A working example may be found in the folder [install_path]\hwsolvers\motionsolve\usersub\.