- devc->analog_frame_size = analog_frame_size(sdi);
- devc->digital_frame_size = digital_frame_size(sdi);
-
- if (devc->model->series < RIGOL_DS1000Z) {
- /* Fetch the first frame. */
- if (rigol_ds_channel_start(sdi) != SR_OK)
- return SR_ERR;
- } else {
- if (devc->enabled_analog_probes) {
- if (devc->data_source == DATA_SOURCE_MEMORY) {
- /* Apparently for the DS2000 the memory
- * depth can only be set in Running state -
- * this matches the behaviour of the UI. */
- if (rigol_ds_config_set(sdi, ":RUN") != SR_OK)
- return SR_ERR;
- if (rigol_ds_config_set(sdi, "ACQ:MDEP %d", devc->analog_frame_size) != SR_OK)
- return SR_ERR;
- if (rigol_ds_config_set(sdi, ":STOP") != SR_OK)
- return SR_ERR;
- }
- if (rigol_ds_capture_start(sdi) != SR_OK)
- return SR_ERR;
- }
- }