本文介绍了如何使用C167CS-LM设置连续数字输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,

只要选中复选框(m_ctrlCheckPower),我就会尝试将嵌入式系统数字输出设置为连续打开。然而,它只是按命令暂时设置。如何在关闭电源之前持续打开它?



提前致谢。

mraaf



我尝试过:



Hello Experts,
I'm trying to set an embedded system digital output to turn ON continuously as long as a check box (m_ctrlCheckPower) stays checked. However it just set ON momentarily per command. How can I hold it ON continuously until turn OFF is called?

Thanks in advance.
mraaf

What I have tried:

if(m_ctrlCheckPower.GetCheck() == 1)
{
    pTab->SendCommand("SetXDO 0 1\r\n"); // Set DO #1 to 1 (Turn ON)
}
else
{
    pTab->SendCommand("SetXDO 0 0\r\n"); // Set DO #1 to 0 (Turn OFF)
}

推荐答案


这篇关于如何使用C167CS-LM设置连续数字输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 09:08