|
| 1 | +##################################################################### |
| 2 | +# # |
| 3 | +# /NI_DAQmx/models/_subclass_template.py # |
| 4 | +# # |
| 5 | +# Copyright 2018, Christopher Billington # |
| 6 | +# # |
| 7 | +# This file is part of the module labscript_devices, in the # |
| 8 | +# labscript suite (see http://labscriptsuite.org), and is # |
| 9 | +# licensed under the Simplified BSD License. See the license.txt # |
| 10 | +# file in the root of the project for the full license. # |
| 11 | +# # |
| 12 | +##################################################################### |
| 13 | + |
| 14 | +##################################################################### |
| 15 | +# WARNING # |
| 16 | +# # |
| 17 | +# This file is auto-generated, any modifications may be # |
| 18 | +# overwritten. See README.txt in this folder for details # |
| 19 | +# # |
| 20 | +##################################################################### |
| 21 | + |
| 22 | + |
| 23 | +from labscript_devices.NI_DAQmx.labscript_devices import NI_DAQmx |
| 24 | + |
| 25 | +#: |
| 26 | +CAPABILITIES = { |
| 27 | + 'AI_range': [-10.0, 10.0], |
| 28 | + 'AI_range_Diff': [-10.0, 10.0], |
| 29 | + 'AI_start_delay': 7e-08, |
| 30 | + 'AI_term': 'RSE', |
| 31 | + 'AI_term_cfg': { |
| 32 | + 'ai0': ['RSE', 'NRSE', 'Diff'], |
| 33 | + 'ai1': ['RSE', 'NRSE', 'Diff'], |
| 34 | + 'ai10': ['RSE', 'NRSE'], |
| 35 | + 'ai11': ['RSE', 'NRSE'], |
| 36 | + 'ai12': ['RSE', 'NRSE'], |
| 37 | + 'ai13': ['RSE', 'NRSE'], |
| 38 | + 'ai14': ['RSE', 'NRSE'], |
| 39 | + 'ai15': ['RSE', 'NRSE'], |
| 40 | + 'ai16': ['RSE', 'NRSE', 'Diff'], |
| 41 | + 'ai17': ['RSE', 'NRSE', 'Diff'], |
| 42 | + 'ai18': ['RSE', 'NRSE', 'Diff'], |
| 43 | + 'ai19': ['RSE', 'NRSE', 'Diff'], |
| 44 | + 'ai2': ['RSE', 'NRSE', 'Diff'], |
| 45 | + 'ai20': ['RSE', 'NRSE', 'Diff'], |
| 46 | + 'ai21': ['RSE', 'NRSE', 'Diff'], |
| 47 | + 'ai22': ['RSE', 'NRSE', 'Diff'], |
| 48 | + 'ai23': ['RSE', 'NRSE', 'Diff'], |
| 49 | + 'ai24': ['RSE', 'NRSE'], |
| 50 | + 'ai25': ['RSE', 'NRSE'], |
| 51 | + 'ai26': ['RSE', 'NRSE'], |
| 52 | + 'ai27': ['RSE', 'NRSE'], |
| 53 | + 'ai28': ['RSE', 'NRSE'], |
| 54 | + 'ai29': ['RSE', 'NRSE'], |
| 55 | + 'ai3': ['RSE', 'NRSE', 'Diff'], |
| 56 | + 'ai30': ['RSE', 'NRSE'], |
| 57 | + 'ai31': ['RSE', 'NRSE'], |
| 58 | + 'ai4': ['RSE', 'NRSE', 'Diff'], |
| 59 | + 'ai5': ['RSE', 'NRSE', 'Diff'], |
| 60 | + 'ai6': ['RSE', 'NRSE', 'Diff'], |
| 61 | + 'ai7': ['RSE', 'NRSE', 'Diff'], |
| 62 | + 'ai8': ['RSE', 'NRSE'], |
| 63 | + 'ai9': ['RSE', 'NRSE'], |
| 64 | + }, |
| 65 | + 'AO_range': [-10.0, 10.0], |
| 66 | + 'max_AI_multi_chan_rate': 500000.0, |
| 67 | + 'max_AI_single_chan_rate': 500000.0, |
| 68 | + 'max_AO_sample_rate': 917431.1926605505, |
| 69 | + 'max_DO_sample_rate': 1000000.0, |
| 70 | + 'min_semiperiod_measurement': 1e-07, |
| 71 | + 'num_AI': 32, |
| 72 | + 'num_AO': 4, |
| 73 | + 'num_CI': 4, |
| 74 | + 'ports': { |
| 75 | + 'port0': {'num_lines': 32, 'supports_buffered': True}, |
| 76 | + 'port1': {'num_lines': 8, 'supports_buffered': False}, |
| 77 | + 'port2': {'num_lines': 8, 'supports_buffered': False}, |
| 78 | + }, |
| 79 | + 'supports_buffered_AO': True, |
| 80 | + 'supports_buffered_DO': True, |
| 81 | + 'supports_semiperiod_measurement': True, |
| 82 | + 'supports_simultaneous_AI_sampling': False, |
| 83 | +} |
| 84 | + |
| 85 | + |
| 86 | +class NI_PCIe_6343(NI_DAQmx): |
| 87 | + description = 'NI-PCIe-6343' |
| 88 | + |
| 89 | + def __init__(self, *args, **kwargs): |
| 90 | + """Class for NI-PCIe-6343""" |
| 91 | + # Any provided kwargs take precedent over capabilities |
| 92 | + combined_kwargs = CAPABILITIES.copy() |
| 93 | + combined_kwargs.update(kwargs) |
| 94 | + NI_DAQmx.__init__(self, *args, **combined_kwargs) |
0 commit comments