[TRNSYS-users] idea to building my own control module in TRNSYS
QiChao Zhu
QiChao.Zhu at sg.panasonic.com
Sun Apr 18 19:14:28 PDT 2010
Hi All,
I am building my own control module in TRNSYS. This module is to do two
things, the first to calculate out the control signal vector for next
few days according to forecast data and then the control module will
send each day control signals to devices in the system. The problem is
that the calculation is done once but sending signals is done every day
based. How to integrate the two things into one modules?
Can module define as following:
MyControl()
{
Static int calculate = 0;
If (calculate == 0)
{
//TODO: calculation according to forecast data and get control
signal vector for next few days
//......
Calculate = 1;
Return;
}
Else if (calculate == 1)
{
//TODO: send out control signals to devices
//......
Return;
}
}
Is this idea reasonable in TRNSYS? Thanks.
Regards,
qichao
Email : QiChao.Zhu at sg.panasonic.com
Tel: (65)6550 5324
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20100419/29f840fa/attachment-0005.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2257 bytes
Desc: image001.jpg
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20100419/29f840fa/attachment-0003.jpg>
More information about the TRNSYS-users
mailing list