Module Expr Str Import alias Import alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias alias Assign NameStore ListLoad Str Assign NameStore Dict Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Dict Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Call AttributeLoad Call NameLoad attr keyword Num keyword Num keyword NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Num decorator_list Assign NameStore Call NameLoad keyword Str keyword TupleLoad Num Num FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Num Assert CompareEq SubscriptLoad NameLoad Slice Num Num Call NameLoad ListLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Dict SubscriptLoad NameLoad Index NameLoad Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str keyword Str attr Str Return NameLoad decorator_list Call NameLoad keyword Call NameLoad Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Num Assert CompareEq SubscriptLoad NameLoad Slice Num Num Call NameLoad ListLoad Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num Return BinOpMult NameLoad Num decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Assert CompareEq SubscriptLoad NameLoad Slice Num Num Call NameLoad ListLoad Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Dict Str Str Str Str Num Num Num Num FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad Num keyword Str TryFinally body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Num Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Num Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Num Assert CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num Num Assign TupleStore SubscriptStore NameLoad Slice Num SubscriptStore NameLoad Slice Num TupleLoad Call AttributeLoad NameLoad attr NameLoad keyword Str Call AttributeLoad NameLoad attr NameLoad keyword Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Num Index Num Return NameLoad decorator_list decorator_list
N/A N/A 
    lantz.drivers.oceanoptics.usb4000
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Driver for spectrograph.

    :copyright: 2015 by Lantz Authors, see AUTHORS for more details.
    :license: BSD, see LICENSE for more details.
 N/A struct N/A numpy np pyvisa.errors VisaIOError lantz Feat DictFeat lantz.drivers.legacy.usb USBDriver usb_find_desc N/A __all__ N/A USB4000 N/A commands N/A 1 2 3 5 6 9 10 11 12 13 96 97 98 104 105 106 107 108 109 110 254 N/A init initialize USB4000 N/A set_i set integration time in uS N/A set_strobe set strobe enable status N/A ask query information N/A write write information N/A get_spectra request spectra N/A set_trigger set trigger mode N/A num_plugins query number of plug-in accessories present N/A plugin_ids query plug-in identifiers N/A detect_plugins detect plug-ins N/A read_i2c general I2C read N/A write_i2c general I2C write N/A spi_io general spi I/O N/A read_psoc PSOC read N/A write_psoc PSOC write N/A write_reg write register information N/A read_reg read register information N/A read_temp read PCB temperature N/A read_calib read irradiance calibration factors N/A write_calib write irradiance calibration factors N/A ask_2 query information N/A config_regs N/A 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 serial_number 0_order_wavelength_coeff 1_order_wavelength_coeff 2_order_wavelength_coeff 3_order_wavelength_coeff stray_light_constant 0_order_nonlinear_coeff 1_order_nonlinear_coeff 2_order_nonlinear_coeff 3_order_nonlinear_coeff 4_order_nonlinear_coeff 5_order_nonlinear_coeff 6_order_nonlinear_coeff 7_order_nonlinear_coeff polynomial_order bench_configuration USB4000_config autonull baud_rate USB4000 N/A USBDriver N/A N/A Ocean Optics spectrometer
     __init__ N/A N/A self serial_number N/A None kwargs N/A N/A N/A N/A N/A super __init__ vendor 9303 product 4130 serial_number serial_number kwargs N/A N/A self _spec_hi N/A usb_find_desc N/A self usb_inf bEndpointAddress 130 N/A N/A self _spec_lo N/A usb_find_desc N/A self usb_inf bEndpointAddress 134 N/A N/A N/A self initialize N/A initialize N/A N/A self N/A N/A N/A Ends the initialization command to the USB4000 spectrometer
            
        This command initializes certain parameters on the USB4000 and sets internal variables
        based on the USB communication speed. This command is called at object instantiation.
         N/A N/A N/A N/A self usb_send_ep write N/A N/A struct pack <B 1 N/A N/A integration_time N/A Feat units microsecond limits N/A 10 65535000 integration_time N/A N/A self dt N/A N/A N/A Sets the integration time to use by the spectrometer in microseconds

        This command sets the integration time that the USB4000 uses when acquiring spectra. The
        value is passed as a 32 bit integer and has a valid range between 10 and 65,535,000 us. 
         N/A cmd N/A N/A struct pack <BI 2 dt N/A N/A N/A N/A self usb_send_ep write cmd N/A N/A integration_time setter query_config N/A N/A self position N/A N/A N/A returns the value stored in register `reg` of the spectrometer
         N/A cmd N/A N/A struct pack <2B 5 position N/A N/A N/A N/A self usb_send_ep write cmd N/A resp N/A bytearray N/A N/A N/A self usb_recv_ep read 64 timeout 1000 N/A N/A N/A resp N/A 0 2 N/A bytearray N/A 5 position N/A N/A N/A config update N/A N/A config_regs N/A x N/A N/A N/A N/A N/A resp N/A 2 decode ascii errors ignore strip N/A config N/A N/A DictFeat keys N/A tuple N/A range 32 reset N/A N/A self N/A N/A N/A N/A N/A N/A self usb reset N/A pcb_temperature N/A N/A self N/A N/A N/A cmd N/A N/A struct pack <B 108 N/A N/A N/A N/A self usb_send_ep write cmd N/A resp N/A bytearray N/A N/A N/A self usb_recv_ep read 3 timeout 1000 N/A N/A N/A resp N/A 0 1 N/A bytearray N/A 8 N/A t N/A N/A N/A struct unpack <h N/A resp N/A 1 3 N/A 0 N/A N/A t 0.003906 N/A N/A Feat units degree_celsius firmware_version N/A N/A self N/A N/A N/A cmd N/A N/A struct pack <2B 107 4 N/A N/A N/A N/A self usb_send_ep write cmd N/A resp N/A bytearray N/A N/A N/A self usb_recv_ep read 3 timeout 200 N/A N/A N/A log debug N/A N/A got {:s} format N/A repr resp N/A N/A N/A resp N/A 0 1 N/A bytearray N/A 4 N/A vers N/A N/A N/A struct unpack >H N/A resp N/A 1 3 N/A 0 N/A N/A N/A log info N/A N/A firmware is {:d} format vers N/A vers N/A N/A Feat read_once True N/A trigger N/A Feat values N/A Freerun Software ExternalSync ExternalHard 0 1 2 3 trigger N/A N/A self mode N/A N/A N/A cmd N/A N/A struct pack <BH 10 mode N/A N/A N/A N/A self usb_send_ep write cmd N/A N/A trigger setter request_spectra N/A N/A self N/A N/A N/A cmd N/A N/A struct pack <B 9 N/A N/A N/A self log_debug Requesting spectra N/A N/A N/A N/A self usb_send_ep write cmd N/A data N/A N/A np zeros shape N/A 3840 dtype <u2 N/A N/A N/A N/A N/A data_lo N/A N/A N/A self _spec_lo read N/A 512 4 timeout 100 N/A data_hi N/A N/A N/A self _spec_hi read N/A 512 11 timeout 100 N/A data_sync N/A N/A N/A self _spec_hi read 1 timeout 100 N/A N/A N/A N/A N/A struct unpack <B data_sync N/A 0 105 N/A N/A N/A data N/A 1024 N/A data N/A 1024 N/A N/A N/A np frombuffer data_lo dtype <u2 N/A N/A np frombuffer data_hi dtype <u2 N/A N/A N/A AssertionError N/A N/A N/A N/A self log_error Not synchronized N/A N/A VisaIOError N/A N/A N/A N/A self log_error Timeout on usb N/A N/A N/A N/A self log_debug Obtained spectra N/A data N/A get_status N/A N/A self N/A N/A N/A cmd N/A N/A struct pack <B 254 N/A N/A N/A N/A self usb_send_ep write cmd N/A resp N/A bytearray N/A N/A N/A self usb_recv_ep read 16 timeout 1000 N/A stat N/A num_pixels integration_time lamp_enable trigger_mode acq_status packets_in_spectra power_down packet_count usb_speed N/A N/A N/A struct unpack <H N/A resp N/A 0 2 N/A 0 N/A N/A N/A struct unpack <I N/A resp N/A 2 6 N/A 0 N/A bool N/A N/A N/A struct unpack <B N/A resp N/A 6 7 N/A 0 N/A N/A N/A struct unpack <B N/A resp N/A 7 8 N/A 0 N/A N/A N/A struct unpack <B N/A resp N/A 8 9 N/A 0 N/A N/A N/A struct unpack <B N/A resp N/A 9 10 N/A 0 N/A bool N/A N/A N/A struct unpack <B N/A resp N/A 10 11 N/A 0 N/A N/A N/A struct unpack <B N/A resp N/A 11 12 N/A 0 N/A N/A N/A struct unpack <B N/A resp N/A 14 15 N/A 0 N/A stat N/A N/A