Gerd v. Egidy
16a8e58068
agilent-dmm: add basic support for Agilent/Keysight U127x
...
Their commands are very similar to the U123x series, they just
add some more modes and the second channel. So use the re-functions
and just extend them where necessary.
Log reading not supported yet.
Basic testing done with a U1272A.
2019-05-01 15:43:00 +02:00
Gerd v. Egidy
878e0e9d21
agilent-dmm: fix support for Agilent/Keysight U1252A
...
- fix the resolution of the CONF?-response:
the resolution is given with 6 decimal places
(instead of 8) like this:
VOLT +5.000000E+00,+1.000000E-04
- add more measurement modes that are possible with the meter:
CONT,COND,TEMP,PULS
2019-05-01 15:43:00 +02:00
Gerhard Sittig
271392d969
serial: rename variable to reflect it's related to libserialport
...
Rename the rather generic 'data' struct member to 'sp_data', to better
reflect that it contains details which are specific to libserialport.
2019-04-28 17:41:12 +02:00
Gerhard Sittig
6213c38ef8
serial: update doxygen comments (flush vs drain, in vs out params)
...
It's important to remain aware that the serial layer's flush and drain
semantics differs from e.g. filesystem calls. The libserialport API is
said to follow the termios example.
Extend comments in the libsigrok API, to not depend on the libserialport
layer and the availability of its documentation. This raises awareness
during maintenance of sigrok device drivers, as well as the pending
addition of alternative transports for serial communication.
Adjust the doxygen comment for the read line routine while we are here.
Add "in" and "out" attributes for routine parameters.
2019-04-28 17:41:12 +02:00
Gerhard Sittig
fcfa36fd6f
libsigrok-internal.h: fix source file references in comments
...
The src/hardware/ subdirectory exclusively contains device drivers these
days, while common support code has moved to the src/dmm/, src/lcr/,
src/scale/, etc directories or src/ itself. Adjust comments in the
libsigrok-internal.h declaration blocks which reference source files.
2019-04-28 17:41:12 +02:00
Gerhard Sittig
fdcdfe53d8
libsigrok-internal.h: nit, alpha-sort include directives
2019-04-28 17:41:12 +02:00
Gerhard Sittig
e47a9562e9
device: rephrase sizeof() calls for reduced redundancy, use malloc0
...
Just allocate the memory needed to hold the very variable's size. No
need to duplicate the variable's type. Reduces redundancy and increases
robustness during maintenance.
Use g_malloc0() in sr_serial_new() to make sure all of the structure is
initialized.
2019-04-28 17:41:12 +02:00
Uwe Hermann
7d0f52f7e5
Consistently use the "Sysclk" spelling everywhere.
...
We use this spelling (not "SysClk") in most of the rest of the code-base,
as well as in the wiki.
2019-04-24 18:23:41 +02:00
Uwe Hermann
4ddd34b107
udev: Add Sysclk SLA50232 entry.
2019-04-24 18:23:41 +02:00
Uwe Hermann
f3178f123d
sysclk-sla5032: Minor asterisk placement consistency fixes.
2019-04-24 18:23:41 +02:00
Uwe Hermann
98ed645e40
sysclk-sla5032: Make a few functions static.
2019-04-24 18:18:57 +02:00
Uwe Hermann
9e0693f92d
sysclk-sla5032: Merge sla5032.[ch] into protocol.[ch].
2019-04-24 18:18:57 +02:00
Uwe Hermann
052cc011bf
sysclk-sla5032: Shorten sla5032_start_sample() a bit.
2019-04-24 17:33:24 +02:00
Uwe Hermann
d57a114347
sysclk-sla5032: Shorten a few code snippets a bit.
2019-04-22 13:39:48 +02:00
Uwe Hermann
262cb9968d
sysclk-sla5032: Fix compiler warnings (max vs. MAX).
...
src/hardware/sysclk-sla5032/protocol.c: In function ‘la_start_acquisition’:
src/hardware/sysclk-sla5032/protocol.c:244:8: warning: implicit declaration of function ‘max’ [-Wimplicit-function-declaration]
pre = max(pre, 2);
^~~
2019-04-22 13:39:48 +02:00
Vitaliy Vorobyov
8da8c8265f
Add initial Sysclk SLA5032 driver.
2019-04-22 13:39:48 +02:00
Dewelde Anthony
ddbe6880a0
korad-kaxxxxp: Added support for TENMA 72-2535 V2.1
2019-04-17 17:59:22 +02:00
Uwe Hermann
b89e6db910
scpi-pps: Fix typos and minor cosmetics.
2019-04-17 17:59:16 +02:00
Uwe Hermann
fd2433153a
scpi-pps: Fix "aquisition" typo everywhere.
2019-04-17 17:59:16 +02:00
Uwe Hermann
9652610080
sr_session_send_meta(): Drop unneeded check.
...
As of right now, sr_config_new() "cannot fail" and will never return NULL.
2019-04-17 17:45:04 +02:00
Frank Stettner
26e96658ab
scpi-pps: Don't use SCPI_CMD_REMOTE and SCPI_CMD_LOCAL for HP 66xxB devices when in GPIB mode.
2019-04-17 17:45:04 +02:00
Frank Stettner
5ce427c71b
scpi-pps: Add various HP power supplies:
...
HP 6632A, HP 6634A, HP 6611C, HP 6612C, HP 6613C and HP 6614C
2019-04-17 17:45:04 +02:00
Frank Stettner
fdf0365257
scpi-pps: Implement init_acquisition() and update_status() for HP 66xxA power supplies.
2019-04-17 17:44:59 +02:00
Frank Stettner
f083ae63c7
scpi-pps: Add config keys SR_CONF_OVER_VOLTAGE_PROTECTION_ACTIVE,
...
SR_CONF_OVER_CURRENT_PROTECTION_ACTIVE and
SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE to HP 66xxA power supplies.
2019-04-17 17:44:59 +02:00
Frank Stettner
0ad7074c9e
scpi-pps: Add SR_CONF_REGULATION for HP 66xxA power supplies.
2019-04-17 17:44:59 +02:00
Frank Stettner
dbc519f720
scpi-pps: Seperate existing HP 66xxA and 66xxB profiles.
2019-04-17 17:44:59 +02:00
Frank Stettner
969671a542
scpi-pps: Add missing frequency channel settings for acquisition.
2019-04-17 17:44:56 +02:00
Frank Stettner
3d1aa50f38
scpi-pps: Set device and channel group feature for HP 66xxB.
2019-04-17 17:44:56 +02:00
Frank Stettner
f2bbcc330a
scpi-pps: Add configurable sr_mqflags.
2019-04-17 17:44:56 +02:00
Frank Stettner
fe4bb77492
scpi-pps: Implement init_acquisition() and update_status() for HP 66xxB power supplies.
2019-04-17 17:44:51 +02:00
Frank Stettner
6188675b72
scpi_libgpib: Add mutex to SPoll.
2019-04-17 17:44:51 +02:00
Frank Stettner
87aa1e63e3
scpi: Add enum scpi_transport_layer.
2019-04-17 17:44:51 +02:00
Frank Stettner
7e66bf0586
scpi-pps: Add init_acquisition() and update_status() for device specific
...
acquisition functions.
2019-04-17 17:43:07 +02:00
Frank Stettner
8b5eadf427
scpi-pps: Add config keys SR_CONF_OVER_VOLTAGE_PROTECTION_ACTIVE,
...
SR_CONF_OVER_CURRENT_PROTECTION_ACTIVE and
SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE to HP 66xxB power supplies.
2019-04-17 17:11:21 +02:00
Frank Stettner
43ff1110fb
scpi-pps: Add SR_CONF_REGULATION for HP 66xxB power supplies.
2019-04-17 17:11:21 +02:00
Frank Stettner
5e7377f4c7
scpi-pps: Add enum pps_scpi_dialect and add to struct scpi_pps,
...
preset with reasonable values.
2019-04-17 17:11:21 +02:00
Frank Stettner
7d1a4a5239
session: Add helper sr_session_send_meta() to send SR_DF_META packages.
...
Replace individual functions in drivers for arachnid-labs-re-load-pro
and lcr/es51919 with sr_session_send_meta() helper function.
2019-04-17 17:11:19 +02:00
Uwe Hermann
6449b2e035
demo: Minor cosmetics.
2019-03-29 16:23:21 +01:00
Frank Stettner
1c0e1baaaa
korad-kaxxxxp: Add another KA3005P with 0xBC as extra byte in the model ID.
2019-03-29 16:15:37 +01:00
Frank Stettner
d1a3f3be45
korad-kaxxxxp: Add SR_MQFLAG_DC flag to the current channel package.
2019-03-29 16:15:37 +01:00
Frank Stettner
8107a9a650
scpi: Add connenction_id() function to all scpi drivers.
2019-03-29 16:15:37 +01:00
Frank Stettner
9618fde422
demo: Get/Set new config key offset.
2019-03-29 16:15:37 +01:00
Frank Stettner
78ec6cf99d
Add new config key OFFSET.
2019-03-29 16:15:37 +01:00
Frank Stettner
a6e5d2f676
demo: Get/Set amplitude while data acquisition is running.
2019-03-29 16:15:37 +01:00
Frank Stettner
94f364ec11
demo: Get/Set measurement quantity for the analog channels.
2019-03-29 16:15:37 +01:00
Frank Stettner
8430c9b62e
demo: Set an initial mq, mq flag and digits to the analog package.
...
Without a measured quantity in packet.meaning->mq the C++ binding function
sigrok::Analog::mq() throws an exception and there is no way to check if
there is any measured quantity set in the analog package.
2019-03-29 16:15:37 +01:00
Frank Stettner
a0bc8afd7d
Free sr_config and sr_config lists in meta datafeeds correctly.
2019-03-29 16:15:37 +01:00
Soeren Apel
7ed4ae6307
input/trace32_ad: Add support for new file format (BINHDR2)
2019-03-24 21:33:54 +01:00
Soeren Apel
628dc330bc
input/trace32_ad: Use only hex offsets
2019-03-24 13:48:44 +01:00
Uwe Hermann
d025fce937
chronovu-la: Fix broken triggering.
...
This fixes bug #1369 .
2019-03-22 00:59:39 +01:00