Software Description
ComTec GmbH
5-34
5.4. Controlling the MPA4 Windows Server via DLL
The MPA4 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 MPANT software that
provides all necessary graphic displays.
In the following some parts of the header and definition files of the DMPA4.DLL are listed, that
may help an experienced programmer to use the DLL for own applications.
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
.
#define ST_RUNTIME
0
#define ST_OFLS
1
#define ST_TOTALSUM
2
#define ST_ROISUM
3
#define ST_ROIRATE
4
#define ST_SWEEPS
5
#define ST_STARTS
6
typedef struct{
unsigned long started; // aquisition status
unsigned long maxval;
// maxval
double cnt[7];
// status: runtime in msec, ofls,
// total sum, roi sum, roi rate,
sweeps, starts
} ACQSTATUS;
typedef struct {
long savedata;
// bit 0: auto save after stop
// bit 1: write listfile
// bit 2: listfile only, no evaluation
long autoinc;
// 1 if auto increment filename
long fmt;
// format type (seperate spectra):
// 0 == ASCII, 1 == binary,
// 2 == CSV
long mpafmt;
// format used in mpa datafiles
long sephead;
// seperate Header
long smpts;
long caluse;
char filename[256];
char specfile[256];
char command[256];
} DATSETTING;
typedef struct {
long use;
// 1 if Replay Mode ON
long modified;
// Bit 0: 1 if different settings are used
long limit;
// 0: all,
// 1: limited sweep range
long speed;
// replay speed in units of 100 kB / sec
double startsfrom;
// first start#
double startsto;
// last start#
double startspreset;
// last start - first start
char filename[256];
} REPLAYSETTING;
typedef struct{
long range;
// spectrum length