Driver

class dataq_di_2008.usb_bulk_driver.Driver[source]
config_analog_channels(setting, channel)[source]

takes a string input that specifies range

discover(idProduct=8200, serial_number=None)[source]

the function allows to discover DI-2008 device.

returns: flag if a device(devices) are found.

assigns: self.available_ports list entry

[0] - COM port namer [1] - serial number

get_hardware_information()[source]

auxiliary function to retrieve information about connected instrument.

get_information()[source]

auxiliary function to retrieve information about the connected USB device (on USB level).

init(idProduct=8200, serial_number='')[source]

initialized the driver by discoving approproate device and connecting to it.

set_analog(channel_list, echo=False)[source]

example: channel_list = [‘T-thrmc’,’5’,’T-thrmc’,’5’,’T-thrmc’,’5’,’T-thrmc’,’5’,’digital’]

set_filter(filter='Average')[source]

self.filters[‘Last Point’] = 0 self.filters[‘Average’] = 1 self.filters[‘Maximum’] = 2 self.filters[‘Minimum’] = 3

set_sampling_rate(rate=200, baserate=200, dec=0, echo=True)[source]

Integer ranges for both variable are: 4 ≤ srate ≤ 2232 1 ≤ dec ≤ 32767 The formula to calculate sample throughput rate differs by the number of enabled channels. For a single enabled analog channel: Sample rate throughput (Hz) = 8,000 ÷ (srate × dec) resulting in a sample throughput range of 2000 Hz at its fastest, and 0.000109 Hz, or 1 sample every 9141.99 seconds. The formula changes when two or more analog channels are enabled: Sample rate throughput (Hz) = 800 ÷ (srate × dec) resulting in a sample throughput range of 200 Hz at its fastest, and 0.000011 Hz, or 1 sample every 91419.93 seconds.

use_port()[source]

configure endpoints for the USB backend.