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@sg.panasonic.com Tel: (65)6550 5324 |