Mca166-usb – GBS Elektronik MCA166-USB User Manual

Page 38

Advertising
background image

MCA166-USB

A3.2 Command set

MCA Reset Command:

Name

MMCA_RESET

Description

All MCA Parameters will be reset to their initial state and the spectra are cleared.

The measurement is aborted, but the states of the preamplifier power and the
value of the high voltages are unchanged!

Parameter

-

Results

-

Return Code

ERROR_OK

= 0 (command accepted successfully)

ERROR_INTERFACE

= 1 (communication port not initialised)

ERROR_INVALID_COMMAND

= 2 (command not yet implemented)

ERROR_COMMUNICATION

= 3 (serial communication error, off

line)

ERROR_INVALID_PARAMETER

= 4 (parameter out of range)

MCA Acquire Commands:

Name

MMCA_START_ACQUIRE

Description

The acquisition is started or continued with the actual parameter (mode, resolution,
...)

1. Parameter

Clear flag

Repeat mode flag

Trigger flags

integer value

0

leaves spectrum and times

unchanged

the start time is ignored

1

spectrum and time are cleared

2

Repeat Mode 1

10

(MCA/MCS)

3

Repeat Mode 2

11

(MCA)

4

Repeat Mode 3

12

(MCA)

5

Repeat Mode 4

13

(MCS)

Bit 14 Trigger: 1=on / 0=off

Bit 13 Trigger signal edge: 1=pos /
0=neg

[2. Parameter]

Start time

long value

if the 1. Parameter

0, then the value is

stored in status field (start_time)

Results

-

Return Code

see MMCA_RESET command

Name

MMCA_STOP_ACQUIRE

Description

The acquisition is stopped

Parameter

-

Results

The mca_state is set to STATE_STOP

Return Code

see MMCA_RESET command

10 Measurement will be stopped if buffer overrun. In MCS mode a differential amplitude spectrum per

sweep is collected.

11 Measurement will be resumed, after the buffer is read out.
12 Buffers will be overwritten, even if not read out.

13 MCS Repeat Mode with one integral amplitude spectrum for all MCS sweeps.

38

Advertising
This manual is related to the following products: