DAQ_Static Digital State Measurement Library
- Updated2025-04-25
- 2 minute(s) read
DAQ_Static Digital State Measurement Library
DAQ_Static Digital State Measurement Library VIs measure the static digital data on all configured digital channel lines in the DAQmx task. This library is applicable for digital input channels and modules.
Note This library does not support digital ports and returns an error. Specify the ports in
line-based format (for example, DIO/port0/line0:31) with this library
or use the DAQ Dynamic Digital Pattern Measurement Library for port-based inputs.
- Use the DAQ_Static Dig Meas Initialize VI to initialize hardware and create a DAQmx Task for static digital state measurement.
- Pass the static digital state measurement DAQmx Task to the DAQ_Static Dig Meas Configure and Measure VI.
- Obtain the following outputs:
-
- Channel Line Identifiers—Returns the digital channels lines in the task.
- Line States—Outputs the acquired states of digital lines configured in the DAQmx Task. Each element in this array maps linearly to a line in the task which is returned in the channel line identifier array.
-
- Wire the updated static digital state measurement task from DAQmx Task Out and perform any additional operations.
- Close the static digital state measurement task using DAQ_Static Dig Meas Close VI.
Best Practices
To ensure complete cycles are generated for each tone, select a generation time (in seconds) that is an integral multiple of the time period (1/Frequency (Hz)). For multi-tone generation, the generation time must be an integral multiple of the time period for all tones.
