User manual
Windows Server Program
ComTec GmbH 5-18
5.2. Control Language
A sequence of commands that are stored in a file with extension .CTL can be executed by the
MPA-3 server program or MPANT with the „Load “ command. Also the configuration files
MPA3.CNF or the header files with extension .MP contain such commands to set the parameters.
Each command starts at the beginning of a new line with a typical keyword, the case is ignored.
Any other characters in a line may contain a value or a comment.
Following methods are available to execute commands:
• Load the command file using the Load command in the file menu.
• Enable remote mode in the server and send commands via the serial connection. A special
DLL is necessary which is part of the optional available MPA-3 EXTERNAL CONTROL
software.
• Open a DDE connection and send the commands via DDE as described in section 5.4. The
application name for opening the DDE connection with the standard MPA-3 server program
MPA3.EXE is MPA3, the topic is MPA3-. Implemented are the DDE Execute to perform any
command, and the DDE Request with items RANGE and DATA.
• Send the commands over a TCP/IP net using a remote shell and the optional available MPA-3
EXTERNAL CONTROL software. It is necessary to have a TCP/IP Winsock installed like the
Trumpet winsockets and that the remote shell daemon program MPWNET is running. See the
readme file on the installation disk.
• Send the commands via the DLL interface from LabVIEW, a Visual Basic program or any
other application (software including the complete source code of the DLL and examples
optional available).
• From your own Windows application, register a Windows message and then send the
command as can be seen in the DLL source code.