setting initial value gate from gate builder ?

Discussion about Code Builder Builder and Winlog language support.
pangya
Posts: 30
Joined: Thu Oct 29, 2015 8:10 am

setting initial value gate from gate builder ?

Postby pangya » Tue Feb 16, 2016 3:27 am

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.

User avatar
admin
Site Admin
Posts: 322
Joined: Tue Nov 17, 2009 1:18 pm

Re: setting initial value gate from gate builder ?

Postby admin » Tue Feb 16, 2016 9:19 am

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


Return to “Code - Code Builder”

Who is online

Users browsing this forum: No registered users and 1 guest