Software Description
4.3 Control Language
A sequence of commands that are stored in a file with extension .CTL can be executed by the MCA4 server
program or MPANT with the “Load ” or “Run” command. Also the configuration files MCA4A.SET 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:
Define one of programmable toolbar icons F1..F12 in the MPANT program with the command and
click the icon, see Options..Function keys in the MPANT menu.
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 MPANT EXTERNAL CONTROL software.
Open a DDE connection and send the commands via DDE as described in section 4.4. The
application name for opening the DDE connection with the standard MCA4 server program
MCA4.EXE is MCA4, the topic is MCA4-. 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 MPANT
EXTERNAL CONTROL software. It is necessary to have a TCP/IP Winsock installed and that the
remote shell daemon program MPA4NET 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.
The file MCA4A.SET contains a complete list of commands for setting parameters. An example is:
[MCA4A] 104
; Device and serial number
samplemode=10f
; bit 0..3 chn1..4 0: scope-mode, 1: phamode
; bit 4..7 chn1..4 pile-up reject
; bit 8: Software-PHA
enable_dither=1
; enable dithering, improves the differential linearity of the ADC chip.
pr_ena=0
; Preset enable flags, MCS mode:
; bit 0: runtime preset enabled
; bit 1: realtime preset enabled
; bit 2: sweep preset enabled
; bit 3: ROI preset enabled
; bit 5: ROI2 preset enabled
enb_ch=1
; bit0..3: enable ADC chn1..chn4
thr1=ad20c62
; LOWORD: threshold 1 HIWORD: zero in 64 bit ADC LSB's.
thr2=b370cc7
; threshold 2 and zero
thr3=9dc0b6c
; threshold 3 and zero
thr4=9dc0b6c
; threshold 4 and zero
width1=531ffe
; LOWORD: maxwidth1 samples per pulse, HIWORD: minwidth1
width2=531ffe
width3=531ffe
width4=531ffe
digio=0
; LOWORD: Use of Dig I/O, GO Line:
; bit 0: status dig 0..3
; bit 1: Output digval and increment digval after stop
; bit 2: Invert polarity
; bit 3: Push-Pull output
; bit 4: Start System 1 with Dig 4
; bit 5: Start System 1 with GO
; bit 8: GOWATCH
; bit 9: GO High at Start
62
F
ComTec GmbH
Содержание MCA4A
Страница 2: ...2 F ComTec GmbH...
Страница 8: ...8 F ComTec GmbH...
Страница 71: ...Software Description F ComTec GmbH 71 Fig 4 35 Control Panel of the demo VI for LabVIEW...
Страница 96: ...MPANT Software 96 F ComTec GmbH Fig 5 29 MPANT with four systems enabled...
Страница 106: ...Appendix 106 F ComTec GmbH...
Страница 107: ...Appendix 7 8 Personal Notes F ComTec GmbH 107...