Couple of questions about Picoc

203 views
Skip to first unread message

Mykel

unread,
Aug 6, 2019, 12:54:12 AM8/6/19
to Loxone English
Hello,

I have some questions about picoc programming in loxone for those who have experience in it. Is it possible from a script to turn on/off digital virtual input from loxone and if so, how? Another question would be about simulation, as it seems that you can not test your programs in it, why is that? And maybe there actually is a way to test how program works without uploading it to the miniserver? Thank You!

Colin

unread,
Aug 10, 2019, 8:57:56 AM8/10/19
to Loxone English
The picoC program block would turn on and off one of its own outputs using "setoutput(int output,float value);".  That in turn can switch on and off anything else by connecting it in the visual designer as you would connect any Loxone logic.

Testing and debugging is very limited.  You can't run it except on the miniserver.  The documentation recommends you have a backup memory card prior to adding new picoC.  I think that very good advice.    Once on the mini server you can trace inputs and outputs as you do any other Loxone logic.  When debugging/tracing you can add extra statements placing intermediate values on unused outputs to help you trace what is going on.   But not easy by any means.

Mykel

unread,
Aug 13, 2019, 4:02:13 AM8/13/19
to Loxone English
Thank You.
Reply all
Reply to author
Forward
0 new messages