niebais Posted July 2, 2012 Share Posted July 2, 2012 Ok,I've looked around the documentation and have finally decided I need to see if somebody else knows how to do this. I am in the process of programming a new driver which needs run continually and start when the control 4 system starts. How do I do that? I see a lot of drivers which require you to push a button or something similar, but this process doesn't need or require human interaction. Link to comment Share on other sites More sharing options...
RyanE Posted July 2, 2012 Share Posted July 2, 2012 All drivers that are loaded into a project 'start' when the Control4 system starts.That is, their code gets executed when the driver is loaded by Director.If you want your driver to do something after that code gets executed, you would typically set a timer in your Lua code, so your code would get executed at some point later, after the initialization.RyanE Link to comment Share on other sites More sharing options...
niebais Posted July 2, 2012 Author Share Posted July 2, 2012 Thanks for the quick reply! Ok, so I understand that I would add an event timer in my code somewhere like this: exitTimer = C4:AddTimer(1,"SECONDS",true).Where would I put the timer?I can only assume I would put it here:function ExecuteCommand(strCommand, tParams) Is there a specific command action I'm looking for on startup? For example, in this case I have a relay device. Link to comment Share on other sites More sharing options...
alanchow Posted July 2, 2012 Share Posted July 2, 2012 Anything in the body (outside of any functions) gets executed at startup. Link to comment Share on other sites More sharing options...
gundsambu Posted December 20, 2012 Share Posted December 20, 2012 hi,I'm using NVR and camera for ACTI in control4 system. But i can't find any NVR driver. How can I use it. Help me. Link to comment Share on other sites More sharing options...
bsalvador Posted December 21, 2012 Share Posted December 21, 2012 Only dont forget to write the executed code when the timer expires.function ontimerexpired(idtimer)if (idtimer == exitTimer) then --execute your code here!!!endend Link to comment Share on other sites More sharing options...
Vaska Ilarioni Posted August 21, 2014 Share Posted August 21, 2014 can anybody help me? how can i configure casio projector driver for control via RS232 connection? Link to comment Share on other sites More sharing options...
Kieran2712 Posted August 29, 2014 Share Posted August 29, 2014 WHAT MODEL NO IS THE CASIO Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.