From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
你可以通过两种方式来获取该继电器计数值,一是选择继电器选项卡,一是在File»Relay Maintenance中选择你感兴趣的继电器。
在LabVIEW环境中,你可以使用 niSwitch Get Relay Count来获得继电器从闭合到开启的次数。
通常在 niSwitch Get Relay Count 之前使用niSwitch Wait for Debounce 来确保获得更精确的计数值。
如果你在C语言下面编程,可以使用函数niSwitch_GetRelayCount。这个C函数的原型如下:
ViStatus niSwitch_GetRelayCount (Vi Session vi, ViConstString relayName, ViInt32* relayCount);
For additional information, refer to the NI Switches Help file located on the system under 关于其他附加信息,可以参考NI Switch的帮助文档,其位于系统路径Start»All Programs»National Instruments»NI-SWITCH»Documentation»NI Switches Help. 如果你安装驱动,可以使用下面的链接找到相关帮助文件。
注意:并不是所有的开关模块都支持这个功能,可以在help文件中参考 "Relay Count" 章节。
|