From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
使用Traditional NI-DAQ API启用AC耦合
在LabVIEW中使用Traditional NI-DAQ API来设置AC耦合时,需使用AI Config VI上的Coupling and Input Config接线端。
用Traditional NI-DAQ文本程序的API来设置AC耦合时,需调用下面的函数:
status = AI_Change_Parameter (deviceNum, chanNum, ND_AI_COUPLING, ND_AC);
如果chanNum的值设为"-1",将会在所有的输入通道启用AC耦合。
使用NI-DAQmx API启用AC耦合
使用NI-DAQmx API来设置AC耦合时,可以使用一个NI-DAQmx Channel Node并选择AI.Coupling属性,该属性位于Analog Input » General Properties » Input Configuration » Coupling。将属性节点由写入转为读取,然后为其输入端创建一个常量,并选择AC作为输入值,如下所示。
|