Class ad24usbdevice.Device is derived from ftdidevice.Device (sourceforge.net). Covers all necessary function that are needed for setting, managing and measuring with device. Device can works in two modes. Periodical and standard (Non-periodical) mode.
Standard mode returns measured value immediately on request. Well, not immediately but just after the measuring is done what may be from 5 ms to a few minutes depends on resolution and chopper setings. This is the most universal mode because various changes to device can be done measures.
During periodical mode device returns measured values continualy in precise periods based on devices internal timer. Unfortunately during this mode no other communication with device (except stop_periodical_mode) is possible. So is not possible to recalibrate it, change output current, resolution, etc... This mode is for sorter measuring where precise period is required.
The rest of the ad24usbdevice are just a constants and exception that are raised by object functions.
~~~~~
CHOPPER_DISABLED = 0
CHOPPER_INPUT = 1
CHOPPER_OUTPUT = 2
RESOLUTION_5 = 0
RESOLUTION_20 = 1
RESOLUTION_80 = 2
RESOLUTION_320 = 3
RESOLUTIONS = (RESOLUTION_5, RESOLUTION_20, RESOLUTION_80, RESOLUTION_320)
RESOLUTION_TIME = (5, 20, 80, 320)
GAIN_1 = 0
GAIN_2 = 1
GAIN_4 = 2
GAIN_8 = 3
GAIN_17 = 4
GAIN_39 = 5
GAIN_102 = 6
GAIN_512 = 7
GAINS = (GAIN_1, GAIN_2, GAIN_4, GAIN_8, GAIN_17, GAIN_39, GAIN_102, GAIN_512)
CHANNEL_0 = 0
CHANNEL_1 = 1
CHANNEL_2 = 2
CHANNEL_3 = 3
CHANNEL_4 = 4
CHANNEL_5 = 5
CHANNEL_6 = 6
CHANNEL_7 = 7
CHANNELS = (CHANNEL_0, CHANNEL_1, CHANNEL_2, CHANNEL_3, CHANNEL_4, CHANNEL_5, CHANNEL_6, CHANNEL_7)
MAX_PERIODICAL_TIMER = 65000