MotionSolve calls MESSAGE_SUB at every instance when it accesses the log file and you access the same ID tagged message as passed to the MotionSolve log file via MESSAGE_SUB as shown below:
Example of a standard MotionSolve log file
1. | Edit the <Messaging/> element in the MotionSolve XML input file as shown below: |
Editing the XML file to declare custom messaging.
1. | Specify the usersub DLL and function name. |
2. | Pass an optional param_string to MESSAGE_SUB. |
3. | Write a MESSAGE_SUB user-subroutine (C or FORTRAN): |
Example of MESSAGE_SUB in C and FORTRAN
For example, the MESSAGE_SUB can be used to write a log file in XML format:
Log file in XML format