NumGate changes 0 to 1, report exact date&time

Discussion about reports creation (CSV,RTF,DOC,PDF etc.).
Post Reply
User avatar
admin
Site Admin
Posts: 373
Joined: Tue Nov 17, 2009 1:18 pm

Re: NumGate changes 0 to 1, report exact date&time

Post by admin »

Dear Sir,
Yes, you can do this by code, for example:

Code: Select all

Function void mainLoopSave()
#startup

    int prevValue = GetDigGateValue("Test", 0);

    While(WindowIsOpen())

        if (GetDigGateValue("Test", 0) != prevValue) then
            ReportAppendRecord("myDatReport");
            prevValue = GetDigGateValue("Test", 0);
        end

        Sleep(300);
    end
end
Best regards
User avatar
admin
Site Admin
Posts: 373
Joined: Tue Nov 17, 2009 1:18 pm

Re: NumGate changes 0 to 1, report exact date&time

Post by admin »

Dear Sir,
can you post your application please?

Thanks
Post Reply