This content is not available in your preferred language.
The content is shown in another available language. Your browser may include features that can help translate the text.
Install Python and the NI-DAQmx Python API:
py -m pip install nidaqmx
The NI-DAQmx Python Documentation explains how to install the Python support. The documentation for the NI-DAQmx Python package is hosted on the NI GitHub repository. It includes all of the NI-DAQmx Python example programs. Running the NI-DAQmx Python API requires NI-DAQmx or NI-DAQmx Runtime.Test Python environment with NI-DAQmx:
The script below is the test script used in the Steps section of this article.
import nidaqmx with nidaqmx.Task() as task: task.ai_channels.add_ai_voltage_chan("Dev1/ai0") task.read()
Collaborate with other users in our discussion forums
A valid service agreement or active software subscription may be required, and support options vary by country.
Helpful
Not Helpful