fluidlab.instruments.multiplexer.agilent_34970a

agilent_34970a

class fluidlab.instruments.multiplexer.agilent_34970a.Agilent34970a(interface=None)[source]

Driver for the multiplexer Agilent 34970A.

set_tmo(tmo)[source]

Sets the timeout for scan operations. If reading takes longer, then an exception is raised.

Parameters:

tmo (float) – timeout in milliseconds

Note

this only takes effects when the scan() method is invoked.

set_range(channelNumber, manualRange=False, rangeValue=None)[source]

Select auto/manual range for the specified channel

Parameters:
  • channelNumber (int) – channel to set range for

  • manualRange (bool) – True if manual, False if autorange

  • rangeValue (float) – possible values for voltage: 100e-3, 1, 10, 100, 300. possible values for resistance: 100 (1 mA), 1e3 (1 mA), 10e3 (100 µA), 100e3 (10 µA), 1e6 (5 µA), 10e6 (500 nA), 100e6 (500 nA || 10 MΩ). See Agilent Chapter 9 documentation for other cases.

Note

this only takes effects when the scan() method is invoked.

set_nplc(channelNumber, nplcValue)[source]

Sets the averaging for the specified channel

Parameters:
  • channelNumber (int) – channel to set averaging for

  • nplcValue (float) – averaging time expressed in power line cycles (e.g. 20 ms in Europe). Possible values are: 0.02, 0.2, 1.0, 2.0, 10, 20, 100, 200.

Note

this only takes effects when the scan() method is invoked.

set_tk_type(channelNumber, tkType)[source]

Sets the Thermocouple type for the specified channel

Parameters:
  • channelNumber (int) – channel to set thermocouple type for

  • tkType (str) – thermocouple types. Possible values are “B”, “E”, “J”, “K”, “N”, “R”, “S”, “T”.

Note

this only takes effects when the scan() method is invoked.

scan(channelList, functionName, samplesPerChan, sampleRate, verbose=True)[source]

Initiates a scan.

Parameters:
  • channelList (int or list) – channel number or iterable of channel numbers

  • functionName (str) – measurement function to configure. Some possible values are VOLT:DC, VOLT:AC, FRES, RES, CURR:DC or TEMP. Refer to Agilent documentation for other functions.

  • samplesPerChan (int) – Number of samples to be acquired on each channel. They are stored in the device buffer during acquisition (maximum 50000).

  • sampleRate (float) – frequency of the internal clock used to trigger measurements. The instrument resolution is 1 ms.

  • verbose (bool, optional) – prints additionnal information for debugging purposes. Defaults to True.

Note

If len(channelList) == 1 and samplesPerChan = 1, a one-shot measurement is performed, instead of a scan.

write_vdc(channelList, value)[source]

Write DC-Voltage on specified AO channel.

idc DC Current = <Value object>
ohm 2-wire resistance = <Value object>
ohm_4w 4-wire resistance = <Value object>
temperature Temperature = <Value object>
vdc DC Voltage = <Value object>
vrms RMS Voltage = <Value object>

Classes

Agilent34970a([interface])

Driver for the multiplexer Agilent 34970A.

Agilent34970aValue(name[, doc, function_name])

Custom Value for Agilent 34970a