Page 1 of 1

setting initial value gate from gate builder ?

Posted: Tue Feb 16, 2016 3:27 am
by pangya
as the subject that i wrote,

is there any code to setting initial value for gates ?

or is there any method to retain data in winlog after the program shutdown ?

best regard.

Re: setting initial value gate from gate builder ?

Posted: Tue Feb 16, 2016 9:19 am
by admin
Hi,
for write value in a gate at startup you can use this code:

Code: Select all

Function void myfunction()
#startup
   // set gate "mygate", 0 at 25 for example
   SetNumGateValue("mygate", 0, 25);
end


Best regards