Skip to content

Commit b35face

Browse files
Electro707gsigh
authored andcommitted
scpi-dmm: add support for Siglent SDM3055
1 parent 821266e commit b35face

File tree

1 file changed

+22
-0
lines changed
  • src/hardware/scpi-dmm

1 file changed

+22
-0
lines changed

src/hardware/scpi-dmm/api.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,20 @@ static const struct mqopt_item mqopts_owon_xdm2041[] = {
199199
{ SR_MQ_CAPACITANCE, 0, "CAP", "CAP", NO_DFLT_PREC, FLAGS_NONE, },
200200
};
201201

202+
static const struct mqopt_item mqopts_siglent_sdm3055[] = {
203+
{ SR_MQ_VOLTAGE, SR_MQFLAG_DC, "VOLT:DC", "VOLT ", NO_DFLT_PREC, FLAGS_NONE, },
204+
{ SR_MQ_VOLTAGE, SR_MQFLAG_AC, "VOLT:AC", "VOLT:AC ", NO_DFLT_PREC, FLAGS_NONE, },
205+
{ SR_MQ_CURRENT, SR_MQFLAG_DC, "CURR:DC", "CURR ", NO_DFLT_PREC, FLAGS_NONE, },
206+
{ SR_MQ_CURRENT, SR_MQFLAG_AC, "CURR:AC", "CURR:AC ", NO_DFLT_PREC, FLAGS_NONE, },
207+
{ SR_MQ_RESISTANCE, 0, "RES", "RES ", NO_DFLT_PREC, FLAGS_NONE, },
208+
{ SR_MQ_RESISTANCE, SR_MQFLAG_FOUR_WIRE, "FRES", "FRES ", NO_DFLT_PREC, FLAGS_NONE, },
209+
{ SR_MQ_CONTINUITY, 0, "CONT", "CONT", -1, FLAGS_NONE, },
210+
{ SR_MQ_VOLTAGE, SR_MQFLAG_DC | SR_MQFLAG_DIODE, "DIOD", "DIOD", -4, FLAGS_NONE, },
211+
{ SR_MQ_FREQUENCY, 0, "FREQ", "FREQ ", NO_DFLT_PREC, FLAGS_NONE, },
212+
{ SR_MQ_TIME, 0, "PER", "PER ", NO_DFLT_PREC, FLAGS_NONE, },
213+
{ SR_MQ_CAPACITANCE, 0, "CAP", "CAP", NO_DFLT_PREC, FLAGS_NONE, },
214+
};
215+
202216
SR_PRIV const struct scpi_dmm_model models[] = {
203217
{
204218
"Agilent", "34405A",
@@ -281,6 +295,14 @@ SR_PRIV const struct scpi_dmm_model models[] = {
281295
0, 0, 0, 1e9, TRUE,
282296
NULL, NULL, NULL,
283297
},
298+
{
299+
"Siglent", "SDM3055",
300+
1, 5, cmdset_hp, ARRAY_AND_SIZE(mqopts_siglent_sdm3055),
301+
scpi_dmm_get_meas_agilent,
302+
ARRAY_AND_SIZE(devopts_generic),
303+
0, 0, 0, 0, FALSE,
304+
NULL, NULL, NULL,
305+
},
284306
};
285307

286308
static const struct scpi_dmm_model *is_compatible(const char *vendor, const char *model)

0 commit comments

Comments
 (0)