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)
2.1m questions
2.1m answers
60 comments
57.0k users