Page 1 of 1

Re: Create cumulative time for output on

Posted: Wed Mar 23, 2016 11:42 am
by admin
Dear Sir,
The only way is to create a code function.
For example:

Code: Select all

Function void counter()
#startup

    int counter;

    While(WindowIsOpen())

        if (GetDigGateValue("Output", 0) == 1) then
            counter = GetNumGateValue("SecondsCounter", 0);
            counter = counter + 1;
            SetNumGateValue("SecondsCounter", 0, counter);
        end

        Sleep(1000);
    end
end
Best regards