如何使用C167CS-LM设置连续数字输出? [英] How do I set a continous digital output on with C167CS-LM?

查看:73
本文介绍了如何使用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 是一个微控制器。因此,您正在处理该芯片上编程的固件。因此,要么您知道如何修改固件源代码,要么必须学习这些(预编程?)固件支持的命令,以满足您的要求。
It looks[^] the C167CS is a microcontroller. Hence you are dealing with the firmware programmed on that chip. So either you do know how to modify the firmware source code in or have to learn the 'commands' such (pre-programmed?) firmware supports, order to fulfill your requirements.


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆