nidaqmx.constants

class nidaqmx.constants.ACExcitWireMode(value)[source]

Bases: Enum

An enumeration.

FIVE_WIRE = 5

5-wire.

FOUR_WIRE = 4

4-wire.

SIX_WIRE = 6

6-wire.

class nidaqmx.constants.ADCTimingMode(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

CURRENT = 10134

Current output.

HIGH_IMPEDANCE = 12527

High-impedance state.

VOLTAGE = 10322

Voltage output.

class nidaqmx.constants.AccelChargeSensitivityUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

MILLIVOLTS_PER_G = 12509

mVolts/g.

VOLTS_PER_G = 12510

Volts/g.

class nidaqmx.constants.AccelUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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.ActiveLevel(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

ACTIVE = 14617

Active edges.

INACTIVE = 14618

Inactive edges.

class nidaqmx.constants.AngleUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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.BridgeConfiguration(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

MILLIVOLTS_PER_VOLT = 15897

Millivolts per volt.

VOLTS_PER_VOLT = 15896

Volts per volt.

class nidaqmx.constants.BridgePhysicalUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

BUILT_IN = 10200

Use the internal shunt.

USER_PROVIDED = 10167

Use an external shunt.

class nidaqmx.constants.BridgeUnits(value)[source]

Bases: Enum

An enumeration.

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.

MILLIVOLTS_PER_VOLT = 15897

Millivolts per volt.

VOLTS_PER_VOLT = 15896

Volts per volt.

class nidaqmx.constants.BusType(value)[source]

Bases: Enum

An enumeration.

COMPACT_DAQ = 14637

CompactDAQ.

COMPACT_RIO = 16143

CompactRIO.

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(value)[source]

Bases: Enum

An enumeration.

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.ChannelType(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

DYNAMIC_AVERAGING = 16065

Uses one counter with configuration options to control the amount of averaging or filtering applied to the counter measurements. Set filtering options to balance measurement accuracy and noise versus 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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

LEFT = 10209

Samples occupy the higher bits of the integer.

RIGHT = 10279

Samples occupy the lower bits of the integer.

class nidaqmx.constants.DataTransferActiveTransferMode(value)[source]

Bases: Enum

An enumeration.

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 an NI-DAQmx Read function or an NI-DAQmx Write function.

USB_BULK = 12590

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

class nidaqmx.constants.DeassertCondition(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

SAMPLE_CLOCK_PERIODS = 10286

Complete periods of the Sample Clock.

SECONDS = 10364

Seconds.

TICKS = 10304

Timebase ticks.

class nidaqmx.constants.EddyCurrentProxProbeSensitivityUnits(value)[source]

Bases: Enum

An enumeration.

MILLIVOLTS_PER_MICRON = 14840

mVolts/micron.

MILLIVOLTS_PER_MIL = 14836

mVolts/mil.

MILLIVOLTS_PER_MILLIMETER = 14838

mVolts/mMeter.

VOLTS_PER_MIL = 14837

Volts/mil.

VOLTS_PER_MILLIMETER = 14839

Volts/mMeter.

class nidaqmx.constants.Edge(value)[source]

Bases: Enum

An enumeration.

FALLING = 10171

Falling edge(s).

RISING = 10280

Rising edge(s).

class nidaqmx.constants.EncoderType(value)[source]

Bases: Enum

An enumeration.

TWO_PULSE_COUNTING = 10313

Increment the count on rising edges of signal A. Decrement the count on rising edges of signal B.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

ACQUIRED_INTO_BUFFER = 1

Acquired Into Buffer

TRANSFERRED_FROM_BUFFER = 2

Transferred From Buffer

class nidaqmx.constants.ExcitationDCorAC(value)[source]

Bases: Enum

An enumeration.

USE_AC = 10045

AC excitation.

USE_DC = 10050

DC excitation.

class nidaqmx.constants.ExcitationIdleOutputBehavior(value)[source]

Bases: Enum

An enumeration.

MAINTAIN_EXISTING_VALUE = 12528

Continue generating the current value.

ZERO_VOLTS_OR_AMPERES = 12526

Drive excitation output to zero.

class nidaqmx.constants.ExcitationSource(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

USE_CURRENT = 10134

Current excitation.

USE_VOLTAGE = 10322

Voltage excitation.

class nidaqmx.constants.ExportAction(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

GROUP_BY_CHANNEL = 0

Group by Channel

GROUP_BY_SCAN_NUMBER = 1

Group by Scan Number

class nidaqmx.constants.FilterResponse(value)[source]

Bases: Enum

An enumeration.

BESSEL = 16153

Bessel filter response.

BRICKWALL = 16155

Brickwall filter response.

BUTTERWORTH = 16076

Butterworth filter response.

COMB = 16152

Comb 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(value)[source]

Bases: Enum

An enumeration.

BANDPASS = 16073

Bandpass filter.

CUSTOM = 10137

Custom filter.

HIGHPASS = 16072

Highpass filter.

LOWPASS = 16071

Lowpass filter.

NOTCH = 16074

Notch filter.

class nidaqmx.constants.ForceIEPESensorSensitivityUnits(value)[source]

Bases: Enum

An enumeration.

MILLIVOLTS_PER_NEWTON = 15891

Millivolts per newton.

MILLIVOLTS_PER_POUND = 15892

Millivolts per pound.

class nidaqmx.constants.ForceUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

SAWTOOTH = 14754

Sawtooth wave.

SINE = 14751

Sine wave.

SQUARE = 14753

Square wave.

TRIANGLE = 14752

Triangle wave.

class nidaqmx.constants.GpsSignalType(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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.InputDataTransferCondition(value)[source]

Bases: Enum

An enumeration.

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.InvertPolarity(value)[source]

Bases: Enum

An enumeration.

NO = 0
YES = 1
class nidaqmx.constants.LVDTSensitivityUnits(value)[source]

Bases: Enum

An enumeration.

MILLIVOLTS_PER_VOLT_PER_MILLIMETER = 12506

mVolts/Volt/mMeter.

MILLIVOLTS_PER_VOLT_PER_MILLI_INCH = 12505

mVolts/Volt/0.001 Inch.

class nidaqmx.constants.LengthUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

CHAN_FOR_ALL_LINES = 1

One Channel For All Lines

CHAN_PER_LINE = 0

One Channel For Each Line

class nidaqmx.constants.LoggingMode(value)[source]

Bases: Enum

An enumeration.

LOG = 15844

Enable logging for the task. You cannot read data using an NI-DAQmx Read function 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 an NI-DAQmx Read function to read samples for NI-DAQmx to stream them to disk.

OFF = 10231

Disable logging for the task.

class nidaqmx.constants.LoggingOperation(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

NONE = 10230

Supply no excitation to the channel.

PULL_UP = 16064

High logic.

class nidaqmx.constants.MIOAIConvertTimebaseSource(value)[source]

Bases: Enum

An enumeration.

EIGHTY_MHZ_TIMEBASE = 14636

Use the onboard 80 MHz timebase.

EIGHT_MHZ_TIMEBASE = 16023

Use the onboard 8 MHz timebase.

ONE_HUNDRED_MHZ_TIMEBASE = 15857

Use the onboard 100 MHz timebase.

SAME_AS_MASTER_TIMEBASE = 10282

Use the same source as the Master Timebase.

SAME_AS_SAMP_TIMEBASE = 10284

Use the same source as Sample Clock timebase.

TWENTY_MHZ_TIMEBASE = 12537

Use the onboard 20 MHz timebase.

class nidaqmx.constants.ModulationType(value)[source]

Bases: Enum

An enumeration.

AM = 14756

Amplitude modulation.

FM = 14757

Frequency modulation.

NONE = 10230

No modulation.

class nidaqmx.constants.OutputDataTransferCondition(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

IGNORE_OVERRUNS = 15863

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

STOP_TASK_AND_ERROR = 15862

Stop task and return an error.

class nidaqmx.constants.OverwriteMode(value)[source]

Bases: Enum

An enumeration.

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.Polarity(value)[source]

Bases: Enum

An enumeration.

ACTIVE_HIGH = 10095

High state is the active state.

ACTIVE_LOW = 10096

Low state is the active state.

class nidaqmx.constants.PowerIdleOutputBehavior(value)[source]

Bases: Enum

An enumeration.

MAINTAIN_EXISTING_VALUE = 12528

Continue generating the current power.

OUTPUT_DISABLED = 15503

Disable power output.

class nidaqmx.constants.PowerOutputState(value)[source]

Bases: Enum

An enumeration.

CONSTANT_CURRENT = 15501

Power output is maintaining a constant current by adjusting the voltage.

CONSTANT_VOLTAGE = 15500

Power output is maintaining a constant voltage by adjusting the current.

OUTPUT_DISABLED = 15503

Power output is disabled.

OVERVOLTAGE = 15502

Voltage output has exceeded its limit.

class nidaqmx.constants.PowerUpChannelType(value)[source]

Bases: Enum

An enumeration.

CHANNEL_CURRENT = 1

Current Channel

CHANNEL_HIGH_IMPEDANCE = 2

High-Impedance Channel

CHANNEL_VOLTAGE = 0

Voltage Channel

class nidaqmx.constants.PowerUpStates(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

AO_SERIES = 14647

AO Series.

B_SERIES_DAQ = 14662

B Series DAQ.

COMPACT_DAQ_CHASSIS = 14658

CompactDAQ chassis.

COMPACT_RIO_CHASSIS = 16144

CompactRIO 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.

FIELD_DAQ = 16151

FieldDAQ.

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.

TEST_SCALE_CHASSIS = 16180

TestScale chassis.

TEST_SCALE_MODULE = 16181

TestScale I/O module.

TIO_SERIES = 14661

TIO Series.

UNKNOWN = 12588

Unknown category.

USBDAQ = 14646

USB DAQ.

X_SERIES_DAQ = 15858

X Series DAQ.

class nidaqmx.constants.RTDType(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

MILLIVOLTS_PER_VOLT_PER_DEGREE = 12507

mVolts/Volt/Degree.

MILLIVOLTS_PER_VOLT_PER_RADIAN = 12508

mVolts/Volt/Radian.

class nidaqmx.constants.RawDataCompressionType(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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.ResistanceConfiguration(value)[source]

Bases: Enum

An enumeration.

FOUR_WIRE = 4

4-wire mode.

THREE_WIRE = 3

3-wire mode.

TWO_WIRE = 2

2-wire mode.

class nidaqmx.constants.ResistanceUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

PULL_DOWN = 15951

Pull down.

PULL_UP = 15950

Pull up.

class nidaqmx.constants.ResolutionType(value)[source]

Bases: Enum

An enumeration.

BITS = 10109

Bits.

class nidaqmx.constants.SampClkOverrunBehavior(value)[source]

Bases: Enum

An enumeration.

REPEAT_LAST_SAMPLE = 16062

Repeat the last sample.

RETURN_SENTINEL_VALUE = 16063

Return the sentinel value.

class nidaqmx.constants.SampleInputDataWhen(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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.Sense(value)[source]

Bases: Enum

An enumeration.

LOCAL = 16095

Local.

REMOTE = 16096

Remote.

class nidaqmx.constants.SensorPowerCfg(value)[source]

Bases: Enum

An enumeration.

DISABLED = 16146

Sensor power supply is turned off.

ENABLED = 16145

Sensor power supply is turned on.

NO_CHANGE = 10160

Sensor power supply configuration is not changed.

class nidaqmx.constants.SensorPowerType(value)[source]

Bases: Enum

An enumeration.

AC = 10045

Sensor power supply generates an AC voltage.

BIPOLAR_DC = 16147

Sensor power supply generates a pair of DC voltage levels.

DC = 10050

Sensor power supply generates a single DC voltage level.

class nidaqmx.constants.ShuntCalSelect(value)[source]

Bases: Enum

An enumeration.

A = 12513

Switch A.

A_AND_B = 12515

Switches A and B.

B = 12514

Switch B.

class nidaqmx.constants.ShuntCalSource(value)[source]

Bases: Enum

An enumeration.

BUILT_IN = 10200

Built-In

DEFAULT = -1

Default

USER_PROVIDED = 10167

User Provided

class nidaqmx.constants.ShuntElementLocation(value)[source]

Bases: Enum

An enumeration.

NONE = 10230
R1 = 12465
R2 = 12466
R3 = 12467
R4 = 14813
class nidaqmx.constants.Signal(value)[source]

Bases: Enum

An enumeration.

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_MHZ_REF_CLOCK = 12536
TWENTY_MHZ_TIMEBASE_CLOCK = 12486
WATCHDOG_TIMER_EXPIRED_EVENT = 12512
class nidaqmx.constants.SignalModifiers(value)[source]

Bases: Enum

An enumeration.

DO_NOT_INVERT_POLARITY = 0

Do not invert polarity

INVERT_POLARITY = 1

Invert polarity

class nidaqmx.constants.Slope(value)[source]

Bases: Enum

An enumeration.

FALLING = 10171

Trigger on the falling slope of the signal.

RISING = 10280

Trigger on the rising slope of the signal.

class nidaqmx.constants.SoundPressureUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

EXTERNAL = 10167

External to the device.

INTERNAL = 10200

Internal to the device.

class nidaqmx.constants.StrainGageBridgeType(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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.SyncPulseType(value)[source]

Bases: Enum

An enumeration.

DIGITAL_EDGE = 10150

Digital Edge synchronization.

ONBOARD = 16128

Use the synchronization pulse type specified by the device.

TIME = 15996

Time synchronization.

class nidaqmx.constants.SyncType(value)[source]

Bases: Enum

An enumeration.

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.SyncUnlockBehavior(value)[source]

Bases: Enum

An enumeration.

IGNORE_LOST_SYNC_LOCK = 16129

Ignore the loss of synchronization and do nothing.

STOP_TASK_AND_ERROR = 15862

Stop task and return an error.

class nidaqmx.constants.TEDSUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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.TemperatureUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

DEFAULT = -1

Default.

DIFF = 10106

Differential.

NRSE = 10078

Non-Referenced Single-Ended.

PSEUDO_DIFF = 12529

Pseudodifferential.

RSE = 10083

Referenced Single-Ended.

class nidaqmx.constants.ThermocoupleType(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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.Timescale(value)[source]

Bases: Enum

An enumeration.

USE_HOST = 16126

Use the host device.

USE_IO_DEVICE = 16127

Use the I/O device.

class nidaqmx.constants.TimestampEvent(value)[source]

Bases: Enum

An enumeration.

ARM_START_TRIGGER = 14641

Arm Start Trigger timestamp.

FIRST_SAMPLE = 16130

First Sample timestamp.

REFERENCE_TRIGGER = 12490

Reference Trigger timestamp.

START_TRIGGER = 12491

Start Trigger timestamp.

class nidaqmx.constants.TorqueUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

ANALOG_EDGE = 10099

Trigger when an analog signal signal crosses a threshold.

ANALOG_LEVEL = 10101

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

ANALOG_MULTI_EDGE = 16108

Trigger when any of the configured analog signals cross their respective thresholds.

ANALOG_WINDOW = 10103

Trigger when an analog signal enters or leaves a range of values. The range is in the units of the measurement.

DIGITAL_EDGE = 10150

Trigger on the rising or falling edge of a digital signal.

DIGITAL_LEVEL = 10152

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

DIGITAL_PATTERN = 10398

Trigger when digital physical channels match a digital pattern.

INTERLOCKED = 12549

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

NONE = 10230

Disable triggering for the task.

SOFTWARE = 10292

Advance to the next entry in a scan list when you call DAQmxSendSoftwareTrigger().

TIME = 15996

Trigger when a specified time is reached.

class nidaqmx.constants.TriggerUsage(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

HALT_OUTPUT_AND_ERROR = 14615

Stop generating samples and return an error.

PAUSE_UNTIL_DATA_AVAILABLE = 14616

Pause the task until samples are available in the FIFO.

class nidaqmx.constants.UnitsPreScaled(value)[source]

Bases: Enum

An enumeration.

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.

MILLIVOLTS_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(value)[source]

Bases: Enum

An enumeration.

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.

POWER = 16201

Power source and measurement.

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(value)[source]

Bases: Enum

An enumeration.

CURRENT = 10134

Current generation.

FUNCTION_GENERATION = 14750

Function generation.

VOLTAGE = 10322

Voltage generation.

class nidaqmx.constants.UsageTypeCI(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

MILLIVOLTS_PER_INCH_PER_SECOND = 15964

Millivolts per inch per second.

MILLIVOLTS_PER_MILLIMETER_PER_SECOND = 15963

Millivolts per millimeter per second.

class nidaqmx.constants.VelocityUnits(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

CLEAR_EXPIRATION = 1

Clear Expiration

RESET_TIMER = 0

Reset Timer

class nidaqmx.constants.WaitMode(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

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.WindowTriggerCondition1(value)[source]

Bases: Enum

An enumeration.

ENTERING_WINDOW = 10163

Trigger when the signal enters the window.

LEAVING_WINDOW = 10208

Trigger when the signal leaves the window.

class nidaqmx.constants.WindowTriggerCondition2(value)[source]

Bases: Enum

An enumeration.

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(value)[source]

Bases: Enum

An enumeration.

DO_NOT_WRITE = 12540

Ignore basic TEDS data.

WRITE_TO_EEPROM = 12538

Write basic TEDS data to the EEPROM, even if the sensor includes a PROM. You cannot write basic TEDS data if the PROM contains data.

WRITE_TO_PROM = 12539

Write basic TEDS data to the PROM. Any subsequent attempts to write basic TEDS data result in an error.

class nidaqmx.constants.WriteRelativeTo(value)[source]

Bases: Enum

An enumeration.

CURRENT_WRITE_POSITION = 10430

Write samples relative to the current position in the buffer.

FIRST_SAMPLE = 10424

Write samples relative to the first sample.