Download Manual - FAST ComTec

Transcript
Windows Server Program
Figure 4.17: Control Panel of the demo VI for LabVIEW
4.3.5.
DDE Conversation with GRAMS/386
The following file GRAMSMCA3.CIF can be used to get the MCA3 data into GRAMS/386 via
DDE using the „Collect“ menu:
MCA3 DDE Test
Query
MCA3
MCA3DATA
save
end
spc
1 second
4.4.
Controlling the MCA3 Windows Server via DLL
The MCA-3 server program provides access to all functions, parameters and data via a DLL
(„dynamic link library“). So the server can be completely controlled by the MCDWIN software that
provides all necessary graphic displays.
In the following some parts of the header and definition files of the DMCA3.DLL are listed, that
may help an experienced programmer to use the DLL for own applications. The arguments „item,
nDevice, nDisplay, nSystem“ are only for compatibility with other devices controlled by the
MCDWIN software and must be zero.
NOTE:
The complete documented sourcecode of the DLL including fundamental VI’s and an example
VI for LabVIEW and an example Visual Basic and C program is available as an option.
typedef struct{
int started;
ComTec GmbH
// aquisition status: 1 if running, 0 else
4-19