Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
280 views
in Technique[技术] by (71.8m points)

Incorrect reading while reading with nidaqmx python

I am trying to read voltages from a DUT. I am getting the correct answer while using NI MAX, but when I used a basic programme in python I am getting junk values. Here is the code I am using

import nidaqmx
with nidaqmx.Task() as task:
    task.ai_channels.add_ai_voltage_chan("Dev1/ai1")
    data = task.read(number_of_samples_per_channel=3)
    print (data)
question from:https://stackoverflow.com/questions/65517027/incorrect-reading-while-reading-with-nidaqmx-python

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...