VDM Programming

GaryR1984

New member
So I assume either my code is wrong, which I don't think it is, OR I'm having problems with setting up my outlets and/or profiles.

I put this in my outlet programming.

BluLED

Fallback OFF
If Moon 000/000 Then MoonInt
If Time 14:00 to 15:00 Then RampUp
If Time 15:00 to 21:00 Then On
If Time 21:00 to 22:00 Then RampDn
If Outlet Storm = ON Then Weather

WhiteLED

Fallback Off
Set OFF
If Time 14:30 to 15:00 Then RampUp
If Time 15:00 to 21:00 Then On
If Time 21:00 to 21:30 Then RampDn
If Outlet Storm = ON Then Weather

I look at Ken's programing and I do not know where to put the code nor what I'm missing to setup it all.

Basically what I'm wanting to do is have a;

moonlight cycle
sunrise / sunset
storms / cloud cover with 29% chance of occurrence
and some good lighting, probably would like to run my whites at 85%. ( I use a SoL White )

I'll attach some screen shots shortly. If anyones able to help that'd be great. I also have GoToMeeting if someone wanted to see my programming.

I'd also like to find a way to get my apex to be abled to access from my phone when I'm OFF my network, I got an iPhone and I control my tank when I'm home.

Thanks all for the help!
 
Screenshot2011-01-19at100401PM.png


Screenshot2011-01-19at100142PM.png
 
Did you name your profiles? If looks like the error is saying that it cannot fund a profile of the specified name. If you didn't name your profiles that would explain the issue.
 
I just added my first three profiles and renamed them

BluLED
WhtLED
Weather

Now I know my code is wrong for advanced for Blue and my Moon is off, O have it at 000/000 not sure what i need it to be at for the season table.
 
Now I'm trying to setup my BluLED and it's outlet under Outlets and the last set that was defaulted after I added my VDM Called WhtLED and BluLED and using the code I added above. I get the following Errors.

\\ Error: Expected ON or OFF OR PFx //Error: line 2 - If Moon 000/000 Then MoonInt
\\ Error: Expected ON or OFF OR PFx //Error: line 3 - If Time 14:00 to 15:00 Then RampUp
\\ Error: Expected ON or OFF OR PFx //Error: line 5 - If Time 21:00 to 22:00 Then RampDn
\\ Error: No such outlet name //Error: line 6 - If Outlet Storm = ON Then Weather

I think I'm having a hard time wrapping my head around this outlet idea considering it's all using just one outlet and I'm trying to make virtual outlets so to speak.
 
Back
Top