家庭自动化系统 [英] home automation system
本文介绍了家庭自动化系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在登录表单中创建计时器,以在上午7:00在家开启所有设备并在上午10:30关机将其关闭?
How to create a timer in the login form to switch on all devices at home at 7:00 am and switch it off at 10:30 bm?
if TextBox1.Text.Trim= Now.Hour and TextBox2.Text.Trim= Now.Minute Then
outport(GH643.16);
ELSE if TextBox0.Text.Trim= Now.Hour and TextBox0.Text.Trim= Now.Minute Then
outport(GH643.0);
End If
End If
推荐答案
给我们更多详细信息,我们将能够为您提供帮助,但是...最低起点是必需的:
计算机和交换机之间的物理接口是哪个?
鉴于您实际上想切断房屋中所有设备的电源,我可以想象一个功能强大的开关.
您知道如何将VB.NET程序与该物理接口连接吗?
是现场总线吗?
直接使用COM端口?
LPTx?
USB?
以太网?
我知道检查系统中的当前时间是否在两个给定的小时之间已经完成.
Give us more details and we will be able to help you, but... a minimum starting point is needed:
Which is the physical interface between the computer and the switch?
Given the fact you want to cut the power for all the devices in your house, I can imagine a powerful switch.
Do you know how to connect the VB.NET program with that physical interface?
Is it any field bus?
Directly using COM port?
LPTx?
USB?
Ethernet?
I understand that checking if the current time in the system is between two given hours is something you''ve already done.
与 ^ ].
这篇关于家庭自动化系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文