pulseblaster_0.direct_outputs,
       'flag 3',
       BIAS_port=42520,
       serial_number="0000",
       SDK="IMAQdx",
       effective_pixel_size=4.6e-6,
       exposure_time=.1,
       orientation='top')

# A second pseudoclock to just clock a NI_PCI_6733 Card
PineBlaster(name='pineblaster_0',
            trigger_device=ni_card_0,
            trigger_connection='port0/line15',
            usbport='COM7')
NI_PCI_6733(name='ni_card_1',
            parent_device=pineblaster_0.clockline,
            clock_terminal='ni_pcie_6733_0/PFI0',
            MAX_name='ni_pci_6733_0')

# Create the output/input channels on the above devices
AnalogOut(
    'analog0', ni_card_1, 'ao0', unit_conversion_class=example1
)  # use the example1 conversion class located in pythonlib/unitconversions/example.py with default paremeters

# same as above, but we are changing some parameters used in the conversion and specifying a prefix to be used with units. You can now program in mA, uA, mGauss, uGauss
AnalogOut('analog1',
          ni_card_1,
          'ao1',
          unit_conversion_class=example1,
          unit_conversion_parameters={
              'a': 5,
              'b': 1,
Esempio n. 2
0
          pseudoclock=pulseblaster_0.pseudoclock,
          connection='flag 20')
ClockLine(name='pulseblaster_0_ni_usb_2_clock',
          pseudoclock=pulseblaster_0.pseudoclock,
          connection='flag 18')
#ClockLine(name='pulseblaster_0_ni_usb_3_clock',   pseudoclock=pulseblaster_0.pseudoclock, connection='flag 19')
ClockLine(name='pulseblaster_0_novatech_0_clock',
          pseudoclock=pulseblaster_0.pseudoclock,
          connection='flag 22')
ClockLine(name='pulseblaster_0_novatech_1_clock',
          pseudoclock=pulseblaster_0.pseudoclock,
          connection='flag 2')

NI_PCI_6733(
    name='ni_pci_6733_0',
    parent_device=pulseblaster_0_ni_pci_clock,
    MAX_name='Dev1',
    clock_terminal='/Dev1/RTSI0',
)

AnalogOut(name='MOT_repump',
          parent_device=ni_pci_6733_0,
          connection='ao0',
          limits=(0.0, 0.9))
AnalogOut(name='Bragg_repump',
          parent_device=ni_pci_6733_0,
          connection='ao1',
          limits=(0.0, 0.9))
AnalogOut(name='MOT_cooling',
          parent_device=ni_pci_6733_0,
          connection='ao2',
          limits=(0.0, 0.9))