相關資訊
以下是一個使用nidaqmx.task腳本的基本範例,用於將SC Express設備的電壓限制更改為最大和最小電壓限制+/- 16V:
import nidaqmx
from nidaqmx.constants import AcquisitionType, Edge
with nidaqmx.Task() as task:
task.ao_channels.add_ao_voltage_chan("<Your Device Name>/<Channel Name>")
task.ao_channels.all.ao_max = 16
task.ao_channels.all.ao_min = -16