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 | integer value |
| 0 | leaves spectrum and times unchanged | |
|
|
|
|
|
|
| the start time is ignored |
|
|
|
|
|
| 1 | spectrum and time are cleared |
|
|
| Repeat mode flag |
|
| 2 | Repeat Mode 110 (MCA/MCS) |
|
|
|
|
|
| 3 | Repeat Mode 211 (MCA) |
|
|
|
|
|
| 4 | Repeat Mode 312 (MCA) |
|
|
|
|
|
| 5 | Repeat Mode 413 (MCS) |
|
|
| Trigger flags |
|
| 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 |
|
|
| ||
|
|
|
|
|
|
|
|
10Measurement will be stopped if buffer overrun. In MCS mode a differential amplitude spectrum per sweep is collected.
11Measurement will be resumed, after the buffer is read out.
12Buffers will be overwritten, even if not read out.
13MCS Repeat Mode with one integral amplitude spectrum for all MCS sweeps.
38