Virtual Outlets

Do you have a question on how to do something.
Ask in here.
Post Reply
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Virtual Outlets

Post 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
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Virtual Outlets

Post 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
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Virtual Outlets

Post 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
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Virtual Outlets

Post 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.
Post Reply