ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg811_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG812",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg812_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG821",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg821_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG822",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg822_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG831",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg831_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG832",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg832_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG952",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg952_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG972",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg972_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG992",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg992_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG1022Z",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg1022z_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG1032Z",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg1032z_channels),
cmdset_dg1000z,
+ TRUE,
},
{ "Rigol Technologies", "DG1062Z",
ARRAY_AND_SIZE(dg1000z_devopts),
ARRAY_AND_SIZE(dg1000z_devopts_cg),
ARRAY_AND_SIZE(dg1062z_channels),
cmdset_dg1000z,
+ TRUE,
},
/* MSO5000 devices*/
{ "Rigol Technologies", "MSO5354",
ARRAY_AND_SIZE(mso5000_devopts_cg),
ARRAY_AND_SIZE(mso5000_channels),
cmdset_mso5000,
+ FALSE,
},
{ "Rigol Technologies", "MSO5204",
ARRAY_AND_SIZE(mso5000_devopts),
ARRAY_AND_SIZE(mso5000_devopts_cg),
ARRAY_AND_SIZE(mso5000_channels),
cmdset_mso5000,
+ FALSE,
},
{ "Rigol Technologies", "MSO5104",
ARRAY_AND_SIZE(mso5000_devopts),
ARRAY_AND_SIZE(mso5000_devopts_cg),
ARRAY_AND_SIZE(mso5000_channels),
cmdset_mso5000,
+ FALSE,
},
{ "Rigol Technologies", "MSO5102",
ARRAY_AND_SIZE(mso5000_devopts),
ARRAY_AND_SIZE(mso5000_devopts_cg),
ARRAY_AND_SIZE(mso5000_channels),
cmdset_mso5000,
+ FALSE,
},
{ "Rigol Technologies", "MSO5074",
ARRAY_AND_SIZE(mso5000_devopts),
ARRAY_AND_SIZE(mso5000_devopts_cg),
ARRAY_AND_SIZE(mso5000_channels),
cmdset_mso5000,
+ FALSE,
},
{ "Rigol Technologies", "MSO5072",
ARRAY_AND_SIZE(mso5000_devopts),
ARRAY_AND_SIZE(mso5000_devopts_cg),
ARRAY_AND_SIZE(mso5000_channels),
cmdset_mso5000,
+ FALSE,
},
};
cg->channels = g_slist_append(cg->channels, ch);
}
- /* Create channels for the frequency counter output. */
- ch = sr_channel_new(sdi, ch_idx++, SR_CHANNEL_ANALOG, TRUE, "FREQ1");
- ch = sr_channel_new(sdi, ch_idx++, SR_CHANNEL_ANALOG, TRUE, "PERIOD1");
- ch = sr_channel_new(sdi, ch_idx++, SR_CHANNEL_ANALOG, TRUE, "DUTY1");
- ch = sr_channel_new(sdi, ch_idx++, SR_CHANNEL_ANALOG, TRUE, "WIDTH1");
+ if (device->has_counter) {
+ /* Create channels for the frequency counter output. */
+ ch = sr_channel_new(sdi, ch_idx++, SR_CHANNEL_ANALOG, TRUE, "FREQ1");
+ ch = sr_channel_new(sdi, ch_idx++, SR_CHANNEL_ANALOG, TRUE, "PERIOD1");
+ ch = sr_channel_new(sdi, ch_idx++, SR_CHANNEL_ANALOG, TRUE, "DUTY1");
+ ch = sr_channel_new(sdi, ch_idx++, SR_CHANNEL_ANALOG, TRUE, "WIDTH1");
+ }
/* Put device back to "local" mode, in case only a scan was done... */
command = sr_scpi_cmd_get(devc->cmdset, PSG_CMD_SETUP_LOCAL);