lightlab.equipment.lab_instruments.NI_PCI_6723 module

Summary

Classes:

NI_PCI_6723 Primarily employs abstract classes.

Reference

class NI_PCI_6723(name='The current source', address=None, useChans=None, **kwargs)[source]

Bases: lightlab.equipment.visa_bases.visa_driver.VISAInstrumentDriver, lightlab.equipment.abstract_drivers.electrical_sources.MultiModalSource, lightlab.equipment.abstract_drivers.electrical_sources.MultiChannelSource

Primarily employs abstract classes. Follow the bases for more information

VISAInstrumentDriver provides communication to the board

MultiModalSource provides unit support and range checking

MultiChannelSource provides notion of state (stateDict) and channel support

Usage: Instrument: CurrentSource

instrument_category

alias of lightlab.laboratory.instruments.interfaces.CurrentSource

supportedModes = {'wattperohm', 'milliamp', 'volt', 'amp', 'mwperohm'}
baseUnitBounds = [0, 10]
baseToVoltCoef = 1
v2maCoef = 4
exceptOnRangeError = True
maxChannel = 32
targetPort = 16022
waitMsOnWrite = 500
MAGIC_TIMEOUT = 30
reinstantiate_session(address, tempSess)[source]
startup()[source]
open()[source]
close()[source]
query(queryStr, expected_talker=None)[source]
write(writeStr, expected_talker=None)[source]

The APEX does not deal with write; you have to query to clear the buffer

instrID()[source]

There is no “*IDN?” command. Instead, test if it is alive, and then return a reasonable string

tcpTest(num=2)[source]
setChannelTuning(chanValDict, mode, waitTime=None)[source]

Sets a number of channel values and updates hardware

Parameters:
  • chanValDict (dict) – A dictionary specifying {channel: value}
  • waitTime (float) – time in ms to wait after writing, default (None) is defined in the class
Returns:

was there a change in value

Return type:

(bool)

getChannelTuning(mode)[source]

The inverse of setChannelTuning

Parameters:mode (str) – units of the value in (‘mwperohm’, ‘milliamp’, ‘volt’)
Returns:the full state of blocked out channels in units determined by mode argument
Return type:(dict)
off()[source]

Turn all voltages to zero, but maintain the session

wake()[source]

Don’t change the value but make sure it doesn’t go to sleep after inactivity.

Good for long sweeps

sendToHardware(waitTime=None)[source]

Updates current drivers with the present value of tuneState Converts it to a raw voltage, depending on the mode of the driver

Args: