Page 1 of 1

Virtual Outlets

Posted: Mon Jun 27, 2016 12:41 pm
by ecam
I'm trying to create some Virtual outlets....

For example... Acclimation: when toggled it will shut off all the light ports..

but the code i have now show this

//Box 1 (Box_1 portxxx)

when i do
//VO (VO_portxxx)

it doesn't compile

Re: Virtual Outlets

Posted: Mon Jun 27, 2016 6:00 pm
by lnevo
Both of those are commented out and neither show the full code the define the name.

It should look something like this

#define VO_Acclimation Box1_Port1

Re: Virtual Outlets

Posted: Wed Jun 29, 2016 6:17 pm
by ecam
could use a littl more help...

i setup up box4_port1 as Water change....

so when this is off the Saltwater port (Port4) cannot be toggled on or off... when on the port can then be toggled. How would i code this,

Thanks

Re: Virtual Outlets

Posted: Wed Jun 29, 2016 8:59 pm
by lnevo
Seeing your code would help. Look at my OverridePorts function. When I have an outlet it sets this to prevent any outlet from getting turned on inadvertently.