PWM Slope Code

Do you have a question on how to do something.
Ask in here.
Post Reply
Tranquil201
Posts: 19
Joined: Thu Mar 06, 2014 5:02 pm
Location: Hewitt NJ

Re: PWM Slope Code

Post by Tranquil201 »

OK so to answer my question.. So this should all take effect today and my lights will turn off at 11:00PM tonight?


cosmith71 wrote:I think this:

Code: Select all

ReefAngel.PWM.SetDaylight( PWMSlope(14,0,22,30,15,60,60,0) );
ReefAngel.PWM.SetActinic( PWMSlope(13,30,23,0,15,80,60,0) );
will override memory settings.

--Colin
Image
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: PWM Slope Code

Post by cosmith71 »

I should think so.

--Colin
Tranquil201
Posts: 19
Joined: Thu Mar 06, 2014 5:02 pm
Location: Hewitt NJ

Re: PWM Slope Code

Post by Tranquil201 »

Ok hopefully this does it. If they don't turn off ill just manually override them to off and see if they take effect in 24 hours.
cosmith71 wrote:I should think so.

--Colin
Image
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: PWM Slope Code

Post by cosmith71 »

I've never heard of that before.

--Colin
Tranquil201
Posts: 19
Joined: Thu Mar 06, 2014 5:02 pm
Location: Hewitt NJ

Re: PWM Slope Code

Post by Tranquil201 »

Ok I uploaded

ReefAngel.PWM.SetDaylight( PWMSlope(14,0,22,30,15,60,60,0) );
ReefAngel.PWM.SetActinic( PWMSlope(13,30,23,0,15,80,60,0) );

Should the percentage values reflect under internal memory within portal? In portal it's showing

Daylights Start 15% End 60% (14,0,22,30,15,60,60,0) );
Actinics Start 15% End 75% (13,30,23,0,15,80,60,0) ); end should be 80%

Do I need to manually change the percent in portal or will it change once it goes through the loop?
Image
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: PWM Slope Code

Post by cosmith71 »

They are separate. The portal values are irrelevant when you've specified times, etc in the code. They won't update, nor will it make any difference what you change them to since you've hard coded the values.

--Colin
Tranquil201
Posts: 19
Joined: Thu Mar 06, 2014 5:02 pm
Location: Hewitt NJ

Re: PWM Slope Code

Post by Tranquil201 »

Ah ok thanks

cosmith71 wrote:They are separate. The portal values are irrelevant when you've specified times, etc in the code. They won't update, nor will it make any difference what you change them to since you've hard coded the values.

--Colin
Image
Post Reply