nidaqmx.constants

class nidaqmx.constants.ACExcitWireMode[source]

Bases: enum.Enum

FIVE_WIRE = 5

5-wire.

FOUR_WIRE = 4

4-wire.

SIX_WIRE = 6

6-wire.

class nidaqmx.constants.ADCTimingMode[source]

Bases: enum.Enum

AUTOMATIC = 16097

Uses the most appropriate supported timing mode based on the Sample Clock Rate.

BEST_50_HZ_REJECTION = 14713

Improves 50 Hz noise rejection while decreasing noise rejection at other frequencies.

BEST_60_HZ_REJECTION = 14714

Improves 60 Hz noise rejection while decreasing noise rejection at other frequencies.

CUSTOM = 10137

Use ai_adc_custom_timing_mode to specify a custom value controlling the tradeoff between speed and resolution.

HIGH_RESOLUTION = 10195

Increases resolution and noise rejection while decreasing conversion rate.

HIGH_SPEED = 14712

Increases conversion rate while decreasing resolution.

class nidaqmx.constants.AOIdleOutputBehavior[source]

Bases: enum.Enum

HIGH_IMPEDANCE = 12527

Set the channel to high-impedance, effectively disconnecting the analog output circuitry from the I/O connector.

MAINTAIN_EXISTING_VALUE = 12528

Continue generating the current value.

ZERO_VOLTS = 12526

Generate 0 V.

class nidaqmx.constants.AOPowerUpOutputBehavior[source]

Bases: enum.Enum

CURRENT = 10134

Current output.

HIGH_IMPEDANCE = 12527

High-impedance state.

VOLTAGE = 10322

Voltage output.

class nidaqmx.constants.AccelChargeSensitivityUnits[source]

Bases: enum.Enum

PICO_COULOMBS_PER_G = 16099

PicoCoulombs per g.

PICO_COULOMBS_PER_INCHES_PER_SECOND_SQUARED = 16101

PicoCoulombs per in/s^2.

PICO_COULOMBS_PER_METERS_PER_SECOND_SQUARED = 16100

PicoCoulombs per m/s^2.

class nidaqmx.constants.AccelSensitivityUnits[source]

Bases: enum.Enum

M_VOLTS_PER_G = 12509

mVolts/g.

VOLTS_PER_G = 12510

Volts/g.

class nidaqmx.constants.AccelUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

G = 10186

1 g is approximately equal to 9.81 m/s/s.

INCHES_PER_SECOND_SQUARED = 12471

Inches per second per second.

METERS_PER_SECOND_SQUARED = 12470

Meters per second per second.

class nidaqmx.constants.AcquisitionType[source]

Bases: enum.Enum

CONTINUOUS = 10123

Acquire or generate samples until you stop the task.

FINITE = 10178

Acquire or generate a finite number of samples.

HW_TIMED_SINGLE_POINT = 12522

Acquire or generate samples continuously using hardware timing without a buffer. Hardware timed single point sample mode is supported only for the sample clock and change detection timing types.

class nidaqmx.constants.Action[source]

Bases: enum.Enum

CANCEL = 1

Cancel

COMMIT = 0

Commit

class nidaqmx.constants.ActiveLevel[source]

Bases: enum.Enum

ABOVE = 10093

Pause the measurement or generation while the signal is above the threshold.

BELOW = 10107

Pause the measurement or generation while the signal is below the threshold.

class nidaqmx.constants.ActiveOrInactiveEdgeSelection[source]

Bases: enum.Enum

ACTIVE = 14617

Active edges.

INACTIVE = 14618

Inactive edges.

class nidaqmx.constants.AngleUnits[source]

Bases: enum.Enum

DEGREES = 10146

Degrees.

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

RADIANS = 10273

Radians.

TICKS = 10304

Ticks.

class nidaqmx.constants.AngularVelocityUnits[source]

Bases: enum.Enum

DEGREES_PER_SECOND = 16082

Degrees per second.

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

RADIANS_PER_SECOND = 16081

Radians per second.

RPM = 16080

Revolutions per minute.

class nidaqmx.constants.AutoZeroType[source]

Bases: enum.Enum

EVERY_SAMPLE = 10164

Perform an auto zero at every sample of the acquisition.

NONE = 10230

Do not perform an autozero.

ONCE = 10244

Perform an auto zero at the beginning of the acquisition. This auto zero task might not run if you have used DAQmx Control Task previously in your task.

class nidaqmx.constants.BreakMode[source]

Bases: enum.Enum

BREAK_BEFORE_MAKE = 10110

When advancing to the next entry in the scan list, disconnect all previous connections before making any new connections.

NO_ACTION = 10227

When advancing to the next entry in the scan list, leave all previous connections intact.

class nidaqmx.constants.BridgeConfiguration[source]

Bases: enum.Enum

FULL_BRIDGE = 10182

Sensor is a full bridge. If you set ai_excit_use_for_scaling to True, NI-DAQmx divides the measurement by the excitation value. Many sensors scale data to native units using scaling of volts per excitation.

HALF_BRIDGE = 10187

Sensor is a half bridge. If you set ai_excit_use_for_scaling to True, NI-DAQmx divides the measurement by the excitation value. Many sensors scale data to native units using scaling of volts per excitation.

NO_BRIDGE = 10228

Sensor is not a Wheatstone bridge.

QUARTER_BRIDGE = 10270

Sensor is a quarter bridge. If you set ai_excit_use_for_scaling to True, NI-DAQmx divides the measurement by the excitation value. Many sensors scale data to native units using scaling of volts per excitation.

class nidaqmx.constants.BridgeElectricalUnits[source]

Bases: enum.Enum

M_VOLTS_PER_VOLT = 15897

Millivolts per volt.

VOLTS_PER_VOLT = 15896

Volts per volt.

class nidaqmx.constants.BridgePhysicalUnits[source]

Bases: enum.Enum

BAR = 15880

Bar.

FOOT_POUNDS = 15884

Pound-feet.

INCH_OUNCES = 15882

Ounce-inches.

INCH_POUNDS = 15883

Pound-inches.

KILOGRAM_FORCE = 15877

kilograms-force.

NEWTONS = 15875

Newtons.

NEWTON_METERS = 15881

Newton metres.

PASCALS = 10081

Pascals.

POUNDS = 15876

Pounds.

POUNDS_PER_SQ_INCH = 15879

Pounds per square inch.

class nidaqmx.constants.BridgeShuntCalSource[source]

Bases: enum.Enum

BUILT_IN = 10200

Use the internal shunt.

USER_PROVIDED = 10167

Use an external shunt.

class nidaqmx.constants.BridgeUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

FROM_TEDS = 12516

Units defined by TEDS information associated with the channel.

M_VOLTS_PER_VOLT = 15897

Millivolts per volt.

VOLTS_PER_VOLTS = 15896

Volts per volt.

class nidaqmx.constants.BusType[source]

Bases: enum.Enum

COMPACT_DAQ = 14637

CompactDAQ.

PCI = 12582

PCI.

PCIE = 13612

PCI Express.

PC_CARD = 12585

PC Card/PCMCIA.

PXI = 12583

PXI.

PXIE = 14706

PXI Express.

SCC = 14707

SCC.

SCXI = 12584

SCXI.

SWITCH_BLOCK = 15870

SwitchBlock.

TCPIP = 14828

TCP/IP.

UNKNOWN = 12588

Unknown bus type.

USB = 12586

USB.

class nidaqmx.constants.CJCSource[source]

Bases: enum.Enum

BUILT_IN = 10200

Use a cold-junction compensation channel built into the terminal block.

CONSTANT_USER_VALUE = 10116

You must specify the cold-junction temperature.

SCANNABLE_CHANNEL = 10113

Use a channel for cold-junction compensation.

class nidaqmx.constants.CalibrationMode2[source]

Bases: enum.Enum

CHARGE = 16105

Charge

VOLTAGE = 10322

Voltage

class nidaqmx.constants.CalibrationTerminalConfig[source]

Bases: enum.Enum

DIFF = 10106

Differential

PSEUDO_DIFF = 12529

Pseudodifferential

class nidaqmx.constants.ChannelType[source]

Bases: enum.Enum

ANALOG_INPUT = 10100

Analog input channel.

ANALOG_OUTPUT = 10102

Analog output channel.

COUNTER_INPUT = 10131

Counter input channel.

COUNTER_OUTPUT = 10132

Counter output channel.

DIGITAL_INPUT = 10151

Digital input channel.

DIGITAL_OUTPUT = 10153

Digital output channel.

class nidaqmx.constants.ChargeUnits[source]

Bases: enum.Enum

COULOMBS = 16102

Coulombs.

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

PICO_COULOMBS = 16103

PicoCoulombs.

class nidaqmx.constants.ConstrainedGenMode[source]

Bases: enum.Enum

FIXED_50_PERCENT_DUTY_CYCLE = 14711

Pulse duty cycle must be 50 percent. The frequency can change while the task runs.

FIXED_HIGH_FREQ = 14709

Pulse frequency must be above 7.63 Hz and cannot change while the task runs. In this mode, the duty cycle has 8 bits of resolution.

FIXED_LOW_FREQ = 14710

Pulse frequency must be below 366.21 Hz and cannot change while the task runs. In this mode, the duty cycle has 16 bits of resolution.

UNCONSTRAINED = 14708

Counter has no restrictions on pulse generation.

class nidaqmx.constants.CountDirection[source]

Bases: enum.Enum

COUNT_DOWN = 10124

Decrement counter.

COUNT_UP = 10128

Increment counter.

EXTERNAL_SOURCE = 10326

The state of a digital line controls the count direction. Each counter has a default count direction terminal.

class nidaqmx.constants.CounterFrequencyMethod[source]

Bases: enum.Enum

DYNAMIC_AVERAGING = 16065

Uses one counter and automatically configures the counter settings based on the range of frequencies to be measured. During the acquisition, the counter dynamically adjusts the number of periods that are averaged to balance measurement accuracy and latency.

HIGH_FREQUENCY_2_COUNTERS = 10157

Use two counters, one of which counts pulses of the signal to measure during the specified measurement time.

LARGE_RANGE_2_COUNTERS = 10205

Use one counter to divide the frequency of the input signal to create a lower-frequency signal that the second counter can more easily measure.

LOW_FREQUENCY_1_COUNTER = 10105

Use one counter that uses a constant timebase to measure the input signal.

class nidaqmx.constants.Coupling[source]

Bases: enum.Enum

AC = 10045

Remove the DC offset from the signal.

DC = 10050

Allow NI-DAQmx to measure all of the signal.

GND = 10066

Remove the signal from the measurement and measure only ground.

class nidaqmx.constants.CurrentShuntResistorLocation[source]

Bases: enum.Enum

EXTERNAL = 10167

Use a shunt resistor external to the device. You must specify the value of the shunt resistor by using ai_current_shunt_resistance.

INTERNAL = 10200

Use the built-in shunt resistor of the device.

LET_DRIVER_CHOOSE = -1
class nidaqmx.constants.CurrentUnits[source]

Bases: enum.Enum

AMPS = 10342

Amperes.

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

FROM_TEDS = 12516

Units defined by TEDS information associated with the channel.

class nidaqmx.constants.DataJustification[source]

Bases: enum.Enum

LEFT = 10209

Samples occupy the higher bits of the integer.

RIGHT = 10279

Samples occupy the lower bits of the integer.

class nidaqmx.constants.DataTransferActiveTransferMode[source]

Bases: enum.Enum

DMA = 10054

Direct Memory Access. Data transfers take place independently from the application.

INTERRUPT = 10204

Data transfers take place independently from the application. Using interrupts increases CPU usage because the CPU must service interrupt requests. Typically, you should use interrupts if the device is out of DMA channels.

POLLED = 10264

Data transfers take place when you call DAQmx Read or DAQmx Write.

USB_BULK = 12590

Data transfers take place independently from the application using a USB bulk pipe.

class nidaqmx.constants.DeassertCondition[source]

Bases: enum.Enum

ONBOARD_MEMORY_CUSTOM_THRESHOLD = 12577

Deassert the signal when the amount of space available in the onboard memory is below the value specified with rdy_for_xfer_event_deassert_cond_custom_threshold.

ON_BOARD_MEMORY_FULL = 10236

Deassert the signal when the onboard memory fills.

ON_BOARD_MEMORY_MORE_THAN_HALF_FULL = 10237

Deassert the signal when more than half of the onboard memory of the device fills.

class nidaqmx.constants.DigitalDriveType[source]

Bases: enum.Enum

ACTIVE_DRIVE = 12573

Drive the output pin to approximately 0 V for logic low and +3.3 V or +5 V, depending on the device, for logic high.

OPEN_COLLECTOR = 12574

Drive the output pin to 0 V for logic low. For logic high, the output driver assumes a high-impedance state and does not drive a voltage.

class nidaqmx.constants.DigitalPatternCondition[source]

Bases: enum.Enum

PATTERN_DOES_NOT_MATCH = 10253

Trigger when the physical channels do not match the specified pattern.

PATTERN_MATCHES = 10254

Trigger when the physical channels match the specified pattern.

class nidaqmx.constants.DigitalWidthUnits[source]

Bases: enum.Enum

SAMPLE_CLOCK_PERIODS = 10286

Complete periods of the Sample Clock.

SECONDS = 10364

Seconds.

TICKS = 10304

Timebase ticks.

class nidaqmx.constants.EddyCurrentProxProbeSensitivityUnits[source]

Bases: enum.Enum

IL = 14837

Volts/mil.

ILLIMETER = 14839

Volts/mMeter.

MICRON = 14840

mVolts/micron.

MIL = 14836

mVolts/mil.

MILLIMETER = 14838

mVolts/mMeter.

class nidaqmx.constants.Edge[source]

Bases: enum.Enum

FALLING = 10171

Falling edge(s).

RISING = 10280

Rising edge(s).

class nidaqmx.constants.EncoderType[source]

Bases: enum.Enum

TWO_PULSE_COUNTING = 10313

Two pulse counting.

X_1 = 10090

If signal A leads signal B, count the rising edges of signal A. If signal B leads signal A, count the falling edges of signal A.

X_2 = 10091

Count the rising and falling edges of signal A.

X_4 = 10092

Count the rising and falling edges of signal A and signal B.

class nidaqmx.constants.EncoderZIndexPhase[source]

Bases: enum.Enum

AHIGH_BHIGH = 10040

Reset the measurement when signal A and signal B are high.

AHIGH_BLOW = 10041

Reset the measurement when signal A is high and signal B is low.

ALOW_BHIGH = 10042

Reset the measurement when signal A is low and signal B high.

ALOW_BLOW = 10043

Reset the measurement when signal A and signal B are low.

class nidaqmx.constants.EveryNSamplesEventType[source]

Bases: enum.Enum

ACQUIRED_INTO_BUFFER = 1

Acquired Into Buffer

TRANSFERRED_FROM_BUFFER = 2

Transferred From Buffer

class nidaqmx.constants.ExcitationDCorAC[source]

Bases: enum.Enum

USE_AC = 10045

AC excitation.

USE_DC = 10050

DC excitation.

class nidaqmx.constants.ExcitationIdleOutputBehavior[source]

Bases: enum.Enum

MAINTAIN_EXISTING_VALUE = 12528

Continue generating the current value.

ZERO_VOLTS_OR_AMPERES = 12526

Drive excitation output to zero.

class nidaqmx.constants.ExcitationSource[source]

Bases: enum.Enum

EXTERNAL = 10167

Use an excitation source other than the built-in excitation source of the device. If you select this value, you must specify the amount of excitation.

INTERNAL = 10200

Use the built-in excitation source of the device. If you select this value, you must specify the amount of excitation.

NONE = 10230

Supply no excitation to the channel.

class nidaqmx.constants.ExcitationVoltageOrCurrent[source]

Bases: enum.Enum

USE_CURRENT = 10134

Current excitation.

USE_VOLTAGE = 10322

Voltage excitation.

class nidaqmx.constants.ExportAction[source]

Bases: enum.Enum

INTERLOCKED = 12549

Handshake Event deasserts after the Handshake Trigger asserts, plus the amount of time specified with hshk_event_interlocked_deassert_delay.

LEVEL = 10210

The exported Sample Clock goes high at the beginning of the sample and goes low when the last AI Convert begins.

PULSE = 10265

Send a pulse to the terminal.

TOGGLE = 10307

Toggle the state of the terminal from low to high or from high to low.

class nidaqmx.constants.FillMode[source]

Bases: enum.Enum

GROUP_BY_CHANNEL = 0

Group by Channel

GROUP_BY_SCAN_NUMBER = 1

Group by Scan Number

class nidaqmx.constants.FilterResponse[source]

Bases: enum.Enum

BUTTERWORTH = 16076

Butterworth filter response.

CONSTANT_GROUP_DELAY = 16075

Constant group delay filter response.

ELLIPTICAL = 16077

Elliptical filter response.

HARDWARE_DEFINED = 10191

Use the hardware-defined filter response.

class nidaqmx.constants.FilterType[source]

Bases: enum.Enum

BANDPASS = 16073

Bandpass filter.

CUSTOM = 10137

Custom filter.

HIGHPASS = 16072

Highpass filter.

LOWPASS = 16071

Lowpass filter.

NOTCH = 16074

Notch filter.

class nidaqmx.constants.ForceIEPESensorSensitivityUnits[source]

Bases: enum.Enum

M_VOLTS_PER_NEWTON = 15891

Millivolts per newton.

M_VOLTS_PER_POUND = 15892

Millivolts per pound.

class nidaqmx.constants.ForceUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

KILOGRAM_FORCE = 15877

Kilograms-force.

NEWTONS = 15875

Newtons.

POUNDS = 15876

Pounds.

class nidaqmx.constants.FrequencyUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

HZ = 10373

Hertz.

TICKS = 10304

Timebase ticks.

class nidaqmx.constants.FuncGenType[source]

Bases: enum.Enum

SAWTOOTH = 14754

Sawtooth wave.

SINE = 14751

Sine wave.

SQUARE = 14753

Square wave.

TRIANGLE = 14752

Triangle wave.

class nidaqmx.constants.GpsSignalType[source]

Bases: enum.Enum

IRIGB = 10070

Use the IRIG-B synchronization method. The GPS receiver sends one synchronization pulse per second, as well as information about the number of days, hours, minutes, and seconds that elapsed since the beginning of the current year.

NONE = 10230

Do not synchronize the counter to a GPS receiver. The timestamp measurement returns the number of seconds that elapsed since the device powered up unless you set ci_timestamp_initial_seconds.

PPS = 10080

Use the PPS synchronization method. The GPS receiver sends one synchronization pulse per second, but does not send any timing information. The timestamp measurement returns the number of seconds that elapsed since the device powered up unless you set ci_timestamp_initial_seconds.

class nidaqmx.constants.HandshakeStartCondition[source]

Bases: enum.Enum

IMMEDIATE = 10198

Device is waiting for space in the FIFO (for acquisition) or waiting for samples (for generation).

WAIT_FOR_HANDSHAKE_TRIGGER_ASSERT = 12550

Device is waiting for the Handshake Trigger to assert.

WAIT_FOR_HANDSHAKE_TRIGGER_DEASSERT = 12551

Device is waiting for the Handshake Trigger to deassert.

class nidaqmx.constants.Impedance1[source]

Bases: enum.Enum

FIFTY_OHMS = 50

50 Ohms.

ONE_M_OHM = 1000000

1 M Ohm.

SEVENTY_FIVE_OHMS = 75

75 Ohms.

TEN_G_OHMS = 10000000000

10 G Ohm.

class nidaqmx.constants.InputCalSource[source]

Bases: enum.Enum

GROUND = 2

Ground

LOOPBACK_0 = 0

Loopback 0 degree shift

LOOPBACK_180 = 1

Loopback 180 degree shift

class nidaqmx.constants.InputDataTransferCondition[source]

Bases: enum.Enum

ONBOARD_MEMORY_CUSTOM_THRESHOLD = 12577

Transfer data from the device when the number of samples specified with ai_data_xfer_custom_threshold are in the device FIFO.

ON_BOARD_MEMORY_MORE_THAN_HALF_FULL = 10237

Transfer data from the device when more than half of the onboard memory of the device fills.

ON_BOARD_MEMORY_NOT_EMPTY = 10241

Transfer data from the device when there is data in the onboard memory.

WHEN_ACQUISITION_COMPLETE = 12546

Transfer data when the acquisition is complete.

class nidaqmx.constants.LVDTSensitivityUnits[source]

Bases: enum.Enum

M_VOLTS_PER_VOLT_PER_MILLIMETER = 12506

mVolts/Volt/mMeter.

M_VOLTS_PER_VOLT_PER_MILLI_INCH = 12505

mVolts/Volt/0.001 Inch.

class nidaqmx.constants.Language[source]

Bases: enum.Enum

CHS = 5
DEU = 2
ENG = 0
FRA = 1
JPN = 3
KOR = 4
RAW = -1
class nidaqmx.constants.LengthUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

INCHES = 10379

Inches.

METERS = 10219

Meters.

TICKS = 10304

Ticks.

class nidaqmx.constants.Level[source]

Bases: enum.Enum

HIGH = 10192

Logic high.

LOW = 10214

Logic low.

NO_CHANGE = 10160

Do not change the state of the lines. On some devices, you can select this value only for entire ports.

TRISTATE = 10310

High-impedance state. You can select this state only on devices with bidirectional lines. You cannot select this state for dedicated digital output lines. On some devices, you can select this value only for entire ports.

class nidaqmx.constants.LineGrouping[source]

Bases: enum.Enum

CHAN_FOR_ALL_LINES = 1

One Channel For All Lines

CHAN_PER_LINE = 0

One Channel For Each Line

class nidaqmx.constants.LoggingMode[source]

Bases: enum.Enum

LOG = 15844

Enable logging for the task. You cannot read data using DAQmx Read when using this mode. If you require access to the data, read from the TDMS file.

LOG_AND_READ = 15842

Enable both logging and reading data for the task. You must use DAQmx Read to read samples for NI-DAQmx to stream them to disk.

OFF = 10231

Disable logging for the task.

class nidaqmx.constants.LoggingOperation[source]

Bases: enum.Enum

CREATE = 15848

Create a new TDMS file. If the file already exists, NI-DAQmx returns an error.

CREATE_OR_REPLACE = 15847

Create a new TDMS file, or replace an existing TDMS file.

OPEN = 10437

Open an existing TDMS file, and append data to that file. If the file does not exist, NI-DAQmx returns an error.

OPEN_OR_CREATE = 15846

Open an existing TDMS file, and append data to that file. If the file does not exist, NI-DAQmx creates a new TDMS file.

class nidaqmx.constants.LogicFamily[source]

Bases: enum.Enum

FIVE_V = 14619

Compatible with TTL and 5 V CMOS signals.

THREE_POINT_THREE_V = 14621

Compatible with LVTTL signals.

TWO_POINT_FIVE_V = 14620

Compatible with 2.5 V CMOS signals.

class nidaqmx.constants.LogicLvlBehavior[source]

Bases: enum.Enum

NONE = 10230

Supply no excitation to the channel.

PULL_UP = 16064

High logic.

class nidaqmx.constants.MIOAIConvertTimebaseSource[source]

Bases: enum.Enum

EIGHTY_M_HZ_TIMEBASE = 14636

Use the onboard 80 MHz timebase.

EIGHT_M_HZ_TIMEBASE = 16023

Use the onboard 8 MHz timebase.

MASTER_TIMEBASE = 10282

Use the same source as the Master Timebase.

ONE_HUNDRED_M_HZ_TIMEBASE = 15857

Use the onboard 100 MHz timebase.

SAMPLE_TIMEBASE = 10284

Use the same source as Sample Clock timebase.

TWENTY_M_HZ_TIMEBASE = 12537

Use the onboard 20 MHz timebase.

class nidaqmx.constants.ModulationType[source]

Bases: enum.Enum

AM = 14756

Amplitude modulation.

FM = 14757

Frequency modulation.

NONE = 10230

No modulation.

class nidaqmx.constants.OutputDataTransferCondition[source]

Bases: enum.Enum

ON_BOARD_MEMORY_EMPTY = 10235

Transfer data to the device only when there is no data in the onboard memory of the device.

ON_BOARD_MEMORY_HALF_FULL_OR_LESS = 10239

Transfer data to the device any time the onboard memory is less than half full.

ON_BOARD_MEMORY_LESS_THAN_FULL = 10242

Transfer data to the device any time the onboard memory of the device is not full.

class nidaqmx.constants.OverflowBehavior[source]

Bases: enum.Enum

GNORE_OVERRUNS = 15863

NI-DAQmx ignores Sample Clock overruns, and the task continues to run.

TOP_TASK_AND_ERROR = 15862

Stop task and return an error.

class nidaqmx.constants.OverwriteMode[source]

Bases: enum.Enum

DO_NOT_OVERWRITE_UNREAD_SAMPLES = 10159

The acquisition stops when it encounters a sample in the buffer that you have not read.

OVERWRITE_UNREAD_SAMPLES = 10252

When an acquisition encounters unread data in the buffer, the acquisition continues and overwrites the unread samples with new ones. You can read the new samples by setting relative_to to ReadRelativeTo.MOST_RECENT_SAMPLE and setting offset to the appropriate number of samples.

class nidaqmx.constants.PathCapability[source]

Bases: enum.Enum

CHANNEL_IN_USE = 10434
CHANNEL_RESERVED_FOR_ROUTING = 10436
CHANNEL_SOURCE_CONFLICT = 10435
PATH_ALREADY_EXISTS = 10432
PATH_AVAILABLE = 10431
PATH_UNSUPPORTED = 10433
class nidaqmx.constants.Polarity[source]

Bases: enum.Enum

ACTIVE_HIGH = 10095

High state is the active state.

ACTIVE_LOW = 10096

Low state is the active state.

class nidaqmx.constants.PowerUpChannelType[source]

Bases: enum.Enum

CHANNEL_CURRENT = 1

Current Channel

CHANNEL_HIGH_IMPEDANCE = 2

High-Impedance Channel

CHANNEL_VOLTAGE = 0

Voltage Channel

class nidaqmx.constants.PowerUpStates[source]

Bases: enum.Enum

HIGH = 10192

Logic high.

LOW = 10214

Logic low.

TRISTATE = 10310

High-impedance state. You can select this state only on devices with bidirectional lines. You cannot select this state for dedicated digital output lines. On some devices, you can select this value only for entire ports.

class nidaqmx.constants.PressureUnits[source]

Bases: enum.Enum

BAR = 15880

Bar.

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

PASCALS = 10081

Pascals.

POUNDS_PER_SQ_INCH = 15879

Pounds per square inch.

class nidaqmx.constants.ProductCategory[source]

Bases: enum.Enum

AO_SERIES = 14647

AO Series.

B_SERIES_DAQ = 14662

B Series DAQ.

COMPACT_DAQ_CHASSIS = 14658

CompactDAQ chassis.

C_SERIES_MODULE = 14659

C Series I/O module.

DIGITAL_IO = 14648

Digital I/O.

DSA = 14649

Dynamic Signal Acquisition.

E_SERIES_DAQ = 14642

E Series DAQ.

M_SERIES_DAQ = 14643

M Series DAQ.

NETWORK_DAQ = 14829

Network DAQ.

NIELVIS = 14755

NI ELVIS.

SCC_CONNECTOR_BLOCK = 14704

SCC Connector Block.

SCC_MODULE = 14705

SCC Module.

SCXI_MODULE = 14660

SCXI module.

SC_EXPRESS = 15886

SC Express.

SC_SERIES_DAQ = 14645

SC Series DAQ.

SWITCHES = 14650

Switches.

S_SERIES_DAQ = 14644

S Series DAQ.

TIO_SERIES = 14661

TIO Series.

UNKNOWN = 12588

Unknown category.

USBDAQ = 14646

USB DAQ.

X_SERIES_DAQ = 15858

X Series DAQ.

class nidaqmx.constants.RTDType[source]

Bases: enum.Enum

CUSTOM = 10137

You must use ai_rtd_a, ai_rtd_b, and ai_rtd_c to supply the coefficients for the Callendar-Van Dusen equation.

PT_3750 = 12481

Pt3750.

PT_3851 = 10071

Pt3851.

PT_3911 = 12482

Pt3911.

PT_3916 = 10069

Pt3916.

PT_3920 = 10053

Pt3920.

PT_3928 = 12483

Pt3928.

class nidaqmx.constants.RVDTSensitivityUnits[source]

Bases: enum.Enum

M_VPER_VPER_DEGREE = 12507

mVolts/Volt/Degree.

M_VPER_VPER_RADIAN = 12508

mVolts/Volt/Radian.

class nidaqmx.constants.RawDataCompressionType[source]

Bases: enum.Enum

LOSSLESS_PACKING = 12555

Remove unused bits from samples. No resolution is lost.

LOSSY_LSB_REMOVAL = 12556

Remove unused bits from samples. Then, if necessary, remove bits from samples until the samples are the size specified with ai_lossy_lsb_removal_compressed_samp_size. This compression type limits resolution to the specified sample size.

NONE = 10230

Do not compress samples.

class nidaqmx.constants.ReadRelativeTo[source]

Bases: enum.Enum

CURRENT_READ_POSITION = 10425

Start reading samples relative to the last sample returned by the previous read. For the first read operation, this position is the first sample acquired or the first pretrigger sample if you configured a reference trigger for the task.

FIRST_PRETRIGGER_SAMPLE = 10427

Start reading samples relative to the first pretrigger sample. You specify the number of pretrigger samples to acquire when you configure a reference trigger.

FIRST_SAMPLE = 10424

Start reading samples relative to the first sample acquired.

MOST_RECENT_SAMPLE = 10428

Start reading samples relative to the next sample acquired. For example, use this value and set offset to -1 to read the last sample acquired.

REFERENCE_TRIGGER = 10426

Start reading samples relative to the first sample after the reference trigger occurred.

class nidaqmx.constants.RegenerationMode[source]

Bases: enum.Enum

ALLOW_REGENERATION = 10097

Allow NI-DAQmx to regenerate samples that the device previously generated. When you choose this value, the write marker returns to the beginning of the buffer after the device generates all samples currently in the buffer.

DONT_ALLOW_REGENERATION = 10158

Do not allow NI-DAQmx to regenerate samples the device previously generated. When you choose this value, NI-DAQmx waits for you to write more samples to the buffer or until the timeout expires.

class nidaqmx.constants.RelayPosition[source]

Bases: enum.Enum

CLOSED = 10438
OPEN = 10437
class nidaqmx.constants.ResistanceConfiguration[source]

Bases: enum.Enum

FOUR_WIRE = 4

4-wire mode.

THREE_WIRE = 3

3-wire mode.

TWO_WIRE = 2

2-wire mode.

class nidaqmx.constants.ResistanceUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

FROM_TEDS = 12516

Units defined by TEDS information associated with the channel.

OHMS = 10384

Ohms.

class nidaqmx.constants.ResistorState[source]

Bases: enum.Enum

PULL_DOWN = 15951

pull down state for pull up pull down resistors

PULL_UP = 15950

pull up state for pull up/pull down resistors

class nidaqmx.constants.ResolutionType[source]

Bases: enum.Enum

BITS = 10109

Bits.

class nidaqmx.constants.SCXI1124Range[source]

Bases: enum.Enum

NEG_10_TO_10_V = 14634
NEG_1_TO_1_V = 14632
NEG_5_TO_5_V = 14633
ZERO_TO_FIVE_V = 14630
ZERO_TO_ONE_V = 14629
ZERO_TO_TEN_V = 14631
ZERO_TO_TWENTY_M_A = 14635
class nidaqmx.constants.SampClkOverrunBehavior[source]

Bases: enum.Enum

REPEAT_LAST_SAMPLE = 16062

Repeat the last sample.

RETURN_SENTINEL_VALUE = 16063

Return the sentinel value.

class nidaqmx.constants.SampleInputDataWhen[source]

Bases: enum.Enum

HANDSHAKE_TRIGGER_ASSERTS = 12552

Latch data when the Handshake Trigger asserts.

HANDSHAKE_TRIGGER_DEASSERTS = 12553

Latch data when the Handshake Trigger deasserts.

class nidaqmx.constants.SampleTimingType[source]

Bases: enum.Enum

BURST_HANDSHAKE = 12548

Determine sample timing using burst handshaking between the device and a peripheral device.

CHANGE_DETECTION = 12504

Acquire samples when a change occurs in the state of one or more digital input lines. The lines must be contained within a digital input channel.

HANDSHAKE = 10389

Determine sample timing by using digital handshaking between the device and a peripheral device.

IMPLICIT = 10451

Configure only the duration of the task.

ON_DEMAND = 10390

Acquire or generate a sample on each read or write operation. This timing type is also referred to as static or software-timed.

PIPELINED_SAMPLE_CLOCK = 14668

Device acquires or generates samples on each sample clock edge, but does not respond to certain triggers until a few sample clock edges later. Pipelining allows higher data transfer rates at the cost of increased trigger response latency. Refer to the device documentation for information about which triggers pipelining affects. This timing type allows handshaking with some devices using the Pause trigger, the Ready for Transfer event, or the Data Active event. Refer to the device documentation for more information.

SAMPLE_CLOCK = 10388

Acquire or generate samples on the specified edge of the sample clock.

class nidaqmx.constants.ScaleType[source]

Bases: enum.Enum

LINEAR = 10447

Scale values by using the equation y=mx+b, where x is a prescaled value and y is a scaled value.

MAP_RANGES = 10448

Scale values proportionally from a range of pre-scaled values to a range of scaled values.

NONE = 10230

Do not scale electrical values to physical units.

POLYNOMIAL = 10449

Scale values by using an Nth order polynomial equation.

TABLE = 10450

Map a list of pre-scaled values to a list of corresponding scaled values, with all other values scaled proportionally.

TWO_POINT_LINEAR = 15898

You provide two pairs of electrical values and their corresponding physical values. NI-DAQmx uses those values to calculate the slope and y-intercept of a linear equation and uses that equation to scale electrical values to physical values.

class nidaqmx.constants.ScanRepeatMode[source]

Bases: enum.Enum

CONTINUOUS = 10117

The task returns to the beginning of the scan list when it reaches the end of the scan list.

FINITE = 10172

The task advances through the scan list one time only. NI-DAQmx ignores any Advance Triggers after completing the scan list.

class nidaqmx.constants.Sense[source]

Bases: enum.Enum

LOCAL = 16095

Local.

REMOTE = 16096

Remote.

class nidaqmx.constants.ShuntCalSelect[source]

Bases: enum.Enum

A = 12513

Switch A.

AAND_B = 12515

Switches A and B.

B = 12514

Switch B.

class nidaqmx.constants.ShuntElementLocation[source]

Bases: enum.Enum

NONE = 10230
R_1 = 12465
R_2 = 12466
R_3 = 12467
R_4 = 14813
class nidaqmx.constants.ShuntResistorSelect[source]

Bases: enum.Enum

A = 12513

A

B = 12514

B

class nidaqmx.constants.Signal[source]

Bases: enum.Enum

ADVANCE_TRIGGER = 12488
ADV_CMPLT_EVENT = 12492
AI_CONVERT_CLOCK = 12484
AI_HOLD_CMPLT_EVENT = 12493
CHANGE_DETECTION_EVENT = 12511

Timed Loop executes each time the Change Detection Event occurs.

COUNTER_OUTPUT_EVENT = 12494

Timed Loop executes each time the Counter Output Event occurs.

REFERENCE_TRIGGER = 12490
SAMPLE_CLOCK = 12487

Timed Loop executes on each active edge of the Sample Clock.

SAMPLE_COMPLETE = 12530

Timed Loop executes each time the Sample Complete Event occurs.

START_TRIGGER = 12491
TEN_M_HZ_REF_CLOCK = 12536
TWENTY_M_HZ_TIMEBASE_CLOCK = 12486
WATCHDOG_TIMER_EXPIRED_EVENT = 12512
class nidaqmx.constants.SignalModifiers[source]

Bases: enum.Enum

DO_NOT_INVERT_POLARITY = 0

Do not invert polarity

INVERT_POLARITY = 1

Invert polarity

class nidaqmx.constants.Slope[source]

Bases: enum.Enum

FALLING = 10171

Trigger on the falling slope of the signal.

RISING = 10280

Trigger on the rising slope of the signal.

class nidaqmx.constants.SoftwareTrigger[source]

Bases: enum.Enum

ADVANCE_TRIGGER = 12488

Place holder enum to make editting internal enum easier.

class nidaqmx.constants.SoundPressureUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

PA = 10081

Pascals.

class nidaqmx.constants.SourceSelection[source]

Bases: enum.Enum

EXTERNAL = 10167

External to the device.

INTERNAL = 10200

Internal to the device.

class nidaqmx.constants.StrainGageBridgeType[source]

Bases: enum.Enum

FULL_BRIDGE_I = 10183

Four active gages with two pairs subjected to equal and opposite strains.

FULL_BRIDGE_II = 10184

Four active gages with two aligned with maximum principal strain and two Poisson gages in adjacent arms.

FULL_BRIDGE_III = 10185

Four active gages with two aligned with maximum principal strain and two Poisson gages in opposite arms.

HALF_BRIDGE_I = 10188

Two active gages with one aligned with maximum principal strain and one Poisson gage.

HALF_BRIDGE_II = 10189

Two active gages with equal and opposite strains.

QUARTER_BRIDGE_I = 10271

Single active gage.

QUARTER_BRIDGE_II = 10272

Single active gage and one dummy gage.

class nidaqmx.constants.StrainGageRosetteMeasurementType[source]

Bases: enum.Enum

CARTESIAN_SHEAR_STRAIN_XY = 15976

The tensile strain coplanar to the surface of the material under stress in the XY coordinate direction.

CARTESIAN_STRAIN_X = 15974

The tensile strain coplanar to the surface of the material under stress in the X coordinate direction.

CARTESIAN_STRAIN_Y = 15975

The tensile strain coplanar to the surface of the material under stress in the Y coordinate direction.

MAX_SHEAR_STRAIN = 15977

The maximum strain coplanar to the cross section of the material under stress.

MAX_SHEAR_STRAIN_ANGLE = 15978

The angle at which the maximum shear strain of the rosette occurs.

PRINCIPAL_STRAIN_1 = 15971

The maximum tensile strain coplanar to the surface of the material under stress.

PRINCIPAL_STRAIN_2 = 15972

The minimum tensile strain coplanar to the surface of the material under stress.

PRINCIPAL_STRAIN_ANGLE = 15973

The angle at which the principal strains of the rosette occur.

class nidaqmx.constants.StrainGageRosetteType[source]

Bases: enum.Enum

DELTA = 15969

A delta rosette consists of three strain gages, each separated by a 60 degree angle.

RECTANGULAR = 15968

A rectangular rosette consists of three strain gages, each separated by a 45 degree angle.

TEE = 15970

A tee rosette consists of two gages oriented at 90 degrees with respect to each other.

class nidaqmx.constants.StrainUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

STRAIN = 10299

Strain.

class nidaqmx.constants.SwitchChannelUsage[source]

Bases: enum.Enum

LOAD_CHANNEL = 10440

You can use the channel only as the output for a signal passing through the switch.

RESERVED_FOR_ROUTING_CHANNEL = 10441

You can use the channel only to complete routes within a switch.

SOURCE_CHANNEL = 10439

You can use the channel only as an input for a signal.

class nidaqmx.constants.SyncType[source]

Bases: enum.Enum

MASTER = 15888

Device is the source for shared clocks and triggers.

NONE = 10230

Disables trigger skew correction.

SLAVE = 15889

Device uses clocks and triggers from the master device.

class nidaqmx.constants.TEDSUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

FROM_TEDS = 12516

Units defined by TEDS information associated with the channel.

class nidaqmx.constants.TaskMode[source]

Bases: enum.Enum

TASK_ABORT = 6

Abort

TASK_COMMIT = 3

Commit

TASK_RESERVE = 4

Reserve

TASK_START = 0

Start

TASK_STOP = 1

Stop

TASK_UNRESERVE = 5

Unreserve

TASK_VERIFY = 2

Verify

class nidaqmx.constants.TaskStringFormat[source]

Bases: enum.Enum

INI = 0
JSON = 2
TAB_DELIMITED = 1
class nidaqmx.constants.TemperatureUnits[source]

Bases: enum.Enum

DEG_C = 10143

Degrees Celsius.

DEG_F = 10144

Degrees Fahrenheit.

DEG_R = 10145

Degrees Rankine.

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

K = 10325

Kelvins.

class nidaqmx.constants.TerminalConfiguration[source]

Bases: enum.Enum

DEFAULT = -1

Default.

DIFFERENTIAL = 10106

Differential.

NRSE = 10078

Non-Referenced Single-Ended.

PSEUDODIFFERENTIAL = 12529

Pseudodifferential.

RSE = 10083

Referenced Single-Ended.

class nidaqmx.constants.ThermocoupleType[source]

Bases: enum.Enum

B = 10047

B-type thermocouple.

E = 10055

E-type thermocouple.

J = 10072

J-type thermocouple.

K = 10073

K-type thermocouple.

N = 10077

N-type thermocouple.

R = 10082

R-type thermocouple.

S = 10085

S-type thermocouple.

T = 10086

T-type thermocouple.

class nidaqmx.constants.TimeUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

SECONDS = 10364

Seconds.

TICKS = 10304

Timebase ticks.

class nidaqmx.constants.TorqueUnits[source]

Bases: enum.Enum

FOOT_POUNDS = 15884

Pound-feet.

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

INCH_OUNCES = 15882

Ounce-inches.

INCH_POUNDS = 15883

Pound-inches.

NEWTON_METERS = 15881

Newton meters.

class nidaqmx.constants.TriggerType[source]

Bases: enum.Enum

ANALOG_EDGE = 10099

Trigger when an analog signal crosses a threshold.

ANALOG_LEVEL = 10101

Pause the measurement or generation while an analog signal is above or below a level.

ANALOG_WINDOW = 10103

Trigger when an analog signal enters or leaves a range of values.

DIGITAL_EDGE = 10150

Trigger on a rising or falling edge of a digital pulse.

DIGITAL_LEVEL = 10152

Pause the measurement or generation while a digital signal is at either a high or low state.

DIGITAL_PATTERN = 10398

Pause the measurement or generation while digital physical channels either match or do not match a digital pattern.

INTERLOCKED = 12549

Use the Handshake Trigger as a control signal for asynchronous handshaking, such as 8255 handshaking.

NONE = 10230

Disable reference triggering for the task.

SOFTWARE = 10292

Advance to the next entry in a scan list when you call DAQmx Send Software Trigger.

class nidaqmx.constants.TriggerUsage[source]

Bases: enum.Enum

ADVANCE = 12488

Advance trigger.

ARM_START = 14641

Arm Start trigger.

HANDSHAKE = 10389

Handshake trigger.

PAUSE = 12489

Pause trigger.

REFERENCE = 12490

Reference trigger.

START = 12491

Start trigger.

class nidaqmx.constants.UnderflowBehavior[source]

Bases: enum.Enum

AUSE_UNTIL_DATA_AVAILABLE = 14616

Pause the task until samples are available in the FIFO.

HALT_OUTPUT_AND_ERROR = 14615

Stop generating samples and return an error.

class nidaqmx.constants.UnitsPreScaled[source]

Bases: enum.Enum

AMPS = 10342

Amperes.

BAR = 15880

Bar.

COULOMBS = 16102

Coulombs.

DEGREES = 10146

Degrees.

DEGREES_PER_SECOND = 16082

Degrees per second.

DEG_C = 10143

Degrees Celsius.

DEG_F = 10144

Degrees Fahrenheit.

DEG_R = 10145

Degrees Rankine.

FOOT_POUNDS = 15884

Pound-feet.

FROM_TEDS = 12516

Units defined by TEDS information associated with the channel.

G = 10186

1 g is approximately equal to 9.81 m/s/s.

HERTZ = 10373

Hertz.

INCHES = 10379

Inches.

INCHES_PER_SECOND = 15960

Inches per second.

INCHES_PER_SECOND_SQUARED = 12471

Inches per second per second.

INCH_OUNCES = 15882

Ounce-inches.

INCH_POUNDS = 15883

Pound-inches.

K = 10325

Kelvins.

KILOGRAM_FORCE = 15877

Kilograms-force.

METERS = 10219

Meters.

METERS_PER_SECOND = 15959

Meters per second.

METERS_PER_SECOND_SQUARED = 12470

Meters per second per second.

M_VOLTS_PER_VOLT = 15897

Millivolts per volt.

NEWTONS = 15875

Newtons.

NEWTON_METERS = 15881

Newton meters.

OHMS = 10384

Ohms.

PA = 10081

Pascals.

PICO_COULOMBS = 16103

PicoCoulombs.

POUNDS = 15876

Pounds.

POUNDS_PER_SQ_INCH = 15879

Pounds per square inch.

RADIANS = 10273

Radians.

RADIANS_PER_SECOND = 16081

Radians per second.

RPM = 16080

Revolutions per minute.

SECONDS = 10364

Seconds.

STRAIN = 10299

Strain.

TICKS = 10304

Ticks.

VOLTS = 10348

Volts.

VOLTS_PER_VOLT = 15896

Volts per volt.

class nidaqmx.constants.UsageTypeAI[source]

Bases: enum.Enum

ACCELERATION_4_WIRE_DC_VOLTAGE = 16106

Acceleration measurement using a 4 wire DC voltage based sensor.

ACCELERATION_ACCELEROMETER_CURRENT_INPUT = 10356

Acceleration measurement using an accelerometer.

ACCELERATION_CHARGE = 16104

Acceleration measurement using a charge-based sensor.

BRIDGE = 15908

Measure voltage ratios from a Wheatstone bridge.

CHARGE = 16105

Charge measurement.

CURRENT = 10134

Current measurement.

CURRENT_ACRMS = 10351

Current RMS measurement.

FORCE_BRIDGE = 15899

Force measurement using a bridge-based sensor.

FORCE_IEPE_SENSOR = 15895

Force measurement using an IEPE Sensor.

FREQUENCY_VOLTAGE = 10181

Frequency measurement using a frequency to voltage converter.

POSITION_ANGULAR_RVDT = 10353

Position measurement using an RVDT.

POSITION_EDDY_CURRENT_PROX_PROBE = 14835

Position measurement using an eddy current proximity probe.

POSITION_LINEAR_LVDT = 10352

Position measurement using an LVDT.

PRESSURE_BRIDGE = 15902

Pressure measurement using a bridge-based sensor.

RESISTANCE = 10278

Resistance measurement.

ROSETTE_STRAIN_GAGE = 15980

Strain measurement using a rosette strain gage.

SOUND_PRESSURE_MICROPHONE = 10354

Sound pressure measurement using a microphone.

STRAIN_STRAIN_GAGE = 10300

Strain measurement.

TEDS = 12531

Measurement type defined by TEDS.

TEMPERATURE_BUILT_IN_SENSOR = 10311

Temperature measurement using a built-in sensor on a terminal block or device. On SCXI modules, for example, this could be the CJC sensor.

TEMPERATURE_RTD = 10301

Temperature measurement using an RTD.

TEMPERATURE_THERMISTOR = 10302

Temperature measurement using a thermistor.

TEMPERATURE_THERMOCOUPLE = 10303

Temperature measurement using a thermocouple.

TORQUE_BRIDGE = 15905

Torque measurement using a bridge-based sensor.

VELOCITY_IEPE_SENSOR = 15966

Velocity measurement using an IEPE Sensor.

VOLTAGE = 10322

Voltage measurement.

VOLTAGE_ACRMS = 10350

Voltage RMS measurement.

VOLTAGE_CUSTOM_WITH_EXCITATION = 10323

Voltage measurement with an excitation source. You can use this measurement type for custom sensors that require excitation, but you must use a custom scale to scale the measured voltage.

class nidaqmx.constants.UsageTypeAO[source]

Bases: enum.Enum

CURRENT = 10134

Current generation.

FUNCTION_GENERATION = 14750

Function generation.

VOLTAGE = 10322

Voltage generation.

class nidaqmx.constants.UsageTypeCI[source]

Bases: enum.Enum

COUNT_EDGES = 10125

Count edges of a digital signal.

DUTY_CYCLE = 16070

Measure the duty cycle of a digital signal.

FREQUENCY = 10179

Measure the frequency of a digital signal.

PERIOD = 10256

Measure the period of a digital signal.

POSITION_ANGULAR_ENCODER = 10360

Angular position measurement using an angular encoder.

POSITION_LINEAR_ENCODER = 10361

Linear position measurement using a linear encoder.

PULSE_FREQ = 15864

Pulse measurement, returning the result as frequency and duty cycle.

PULSE_TICKS = 15866

Pulse measurement, returning the result as high ticks and low ticks.

PULSE_TIME = 15865

Pulse measurement, returning the result as high time and low time.

PULSE_WIDTH_DIGITAL = 10359

Measure the width of a pulse of a digital signal.

PULSE_WIDTH_DIGITAL_SEMI_PERIOD = 10289

Measure the time between state transitions of a digital signal.

PULSE_WIDTH_DIGITAL_TWO_EDGE_SEPARATION = 10267

Measure time between edges of two digital signals.

TIME_GPS = 10362

Timestamp measurement, synchronizing the counter to a GPS receiver.

VELOCITY_ANGULAR_ENCODER = 16078

Angular velocity measurement using an angular encoder.

VELOCITY_LINEAR_ENCODER = 16079

Linear velocity measurement using a linear encoder.

class nidaqmx.constants.UsageTypeCO[source]

Bases: enum.Enum

PULSE_FREQUENCY = 10119

Generate digital pulses defined by frequency and duty cycle.

PULSE_TICKS = 10268

Generate digital pulses defined by the number of timebase ticks that the pulse is at a low state and the number of timebase ticks that the pulse is at a high state.

PULSE_TIME = 10269

Generate pulses defined by the time the pulse is at a low state and the time the pulse is at a high state.

class nidaqmx.constants.VelocityIEPESensorSensitivityUnits[source]

Bases: enum.Enum

M_VOLTS_PER_INCH_PER_SECOND = 15964

Millivolts per inch per second.

M_VOLTS_PER_MILLIMETER_PER_SECOND = 15963

Millivolts per millimeter per second.

class nidaqmx.constants.VelocityUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

INCHES_PER_SECOND = 15960

Inches per second.

METERS_PER_SECOND = 15959

Meters per second.

class nidaqmx.constants.VoltageUnits[source]

Bases: enum.Enum

FROM_CUSTOM_SCALE = 10065

Units a custom scale specifies. If you select this value, you must specify a custom scale name.

FROM_TEDS = 12516

Units defined by TEDS information associated with the channel.

VOLTS = 10348

Volts.

class nidaqmx.constants.WDTTaskAction[source]

Bases: enum.Enum

CLEAR_EXPIRATION = 1

Clear Expiration

RESET_TIMER = 0

Reset Timer

class nidaqmx.constants.WaitMode[source]

Bases: enum.Enum

POLL = 12524

Repeatedly check for available samples as fast as possible. This mode allows for the highest sampling rates at the expense of CPU efficiency.

SLEEP = 12547

Check for available samples once per the amount of time specified in sleep_time.

WAIT_FOR_INTERRUPT = 12523

Check for available samples when the system receives an interrupt service request. This mode is the most CPU efficient, but results in lower possible sampling rates.

YIELD = 12525

Repeatedly check for available samples, but yield control to other threads after each check. This mode offers a balance between sampling rate and CPU efficiency.

class nidaqmx.constants.WatchdogAOExpirState[source]

Bases: enum.Enum

CURRENT = 10134

Current output.

NO_CHANGE = 10160

Expiration does not affect the port. Do not change the state of any lines in the port, and do not lock the port.

VOLTAGE = 10322

Voltage output.

class nidaqmx.constants.WatchdogCOExpirState[source]

Bases: enum.Enum

HIGH = 10192

High logic.

LOW = 10214

Low logic.

NO_CHANGE = 10160

Expiration does not affect the state of the counter output. The channels retain their states at the time of the watchdog timer expiration, and no further counter generation runs.

class nidaqmx.constants.WaveformAttributes[source]

Bases: enum.Enum

SAMPLES_AND_TIMING = 10140

Return the samples and timing information.

SAMPLES_ONLY = 10287

Return only samples.

SAMPLES_TIMING_AND_ATTRIBUTES = 10141

Return the samples, timing information, and other attributes, such as the name of the channel.

class nidaqmx.constants.WindowTriggerCondition1[source]

Bases: enum.Enum

ENTERING_WINDOW = 10163

Trigger when the signal enters the window.

LEAVING_WINDOW = 10208

Trigger when the signal leaves the window.

class nidaqmx.constants.WindowTriggerCondition2[source]

Bases: enum.Enum

INSIDE_WINDOW = 10199

Pause the measurement or generation while the trigger is inside the window.

OUTSIDE_WINDOW = 10251

Pause the measurement or generation while the signal is outside the window.

class nidaqmx.constants.WriteBasicTEDSOptions[source]

Bases: enum.Enum

DO_NOT_WRITE = 12540

blah

WRITE_TO_EEPROM = 12538

blah

WRITE_TO_PROM = 12539

blah

class nidaqmx.constants.WriteRelativeTo[source]

Bases: enum.Enum

CURRENT_WRITE_POSITION = 10430

Write samples relative to the current position in the buffer.

FIRST_SAMPLE = 10424

Write samples relative to the first sample.