I ran the RA Gen according to the user manual and changed a few ports to specific names, for example port 7 was heater changed it to chiller/fan.
Any went thru the steps according to the manual and got the following error code:
'class ReefAngelClass' has no member named 'Relay'
I was successfully able to load other templates and memory as noted in the user manual. This is what i ran in RA Gen:
// Autogenerated file by RAGen (v1.2.2.171), (08/04/2012 20:10)
// RA_080412_2010.pde
//
// This version designed for v0.8.5 Beta 17 or later
/* The following features are enabled for this File:
#define WavemakerSetup
#define OverheatSetup
#define DateTimeSetup
#define VersionMenu
#define ATOSetup
#define MetalHalideSetup
#define DisplayLEDPWM
#define StandardLightSetup
#define WDT
#define FONT_8x8
*/
#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>
////// Place global variable code below here
////// Place global variable code above here
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
// Ports that are always on
ReefAngel.Relay.On(Port8);
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
// Specific functions that use Internal Memory values
ReefAngel.StandardATO(Port1);
ReefAngel.StandardLights(Port2);
ReefAngel.MHLights(Port3);
ReefAngel.StandardFan(Port4);
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);
ReefAngel.StandardFan(Port7);
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
Thanks in advance for help.
RA Gen - No Member named 'relay' error code
Re: RA Gen - No Member named 'relay' error code
You are running an old version of RAGen, I suppose.
Can you try using the Reef Angel Wizard instead?
Open Arduino and go to menu Tools->Reef Angel Wizard
Can you try using the Reef Angel Wizard instead?
Open Arduino and go to menu Tools->Reef Angel Wizard
Roberto.
Re: RA Gen - No Member named 'relay' error code
Yeah, that is an old version. It's only designed to run the 0.8.5.X libraries. If RAGen was installed with your Reef Angel Installer, then you should definitely update your installer to make sure you get the latest version of RAGen and Arduino, which has the very handy Reef Angel Wizard.
Re: RA Gen - No Member named 'relay' error code
wow, you are right big difference in ease of useage - I did upload templates onto the controller from the previous program - is that okay? or should i delete all previous uploaded information onto the controller and start from scratch? if so, how do i delete the uploaded programs?
Also, should i delete the program from my computer as well?
Thanks for your help
Also, should i delete the program from my computer as well?
Thanks for your help
Re: RA Gen - No Member named 'relay' error code
You are fine.
Everytime you upload new code, you erase the previous ones from the controller.
Everytime you upload new code, you erase the previous ones from the controller.
Roberto.
Re: RA Gen - No Member named 'relay' error code
Thanks Roberto, sorry to bother you on a sunday - but i cant get my leds to work. The work manually when i plug the directly into an outlet but right now the blues only turn on (@ the 20% default) and the whites do not turn on at all. I tried doing a search with not much luck.
Please help (again) thanks
Please help (again) thanks
Re: RA Gen - No Member named 'relay' error code
Did you set the time on the controller?
Can I see the code you are using?
Can I see the code you are using?
Roberto.
Re: RA Gen - No Member named 'relay' error code
Yes, the time is set in the controller - this is the code
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <ReefAngel.h>
////// Place global variable code below here
////// Place global variable code above here
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.AddStandardMenu(); // Add Standard Menu
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port7Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port3Bit | Port4Bit | Port7Bit | Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 850 );
// Ports that are always on
ReefAngel.Relay.On( Port4 );
ReefAngel.Relay.On( Port8 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardLights( Port2,21,0,9,0 );
ReefAngel.StandardLights( Port3,9,0,21,30 );
ReefAngel.Wavemaker( Port5,960 );
ReefAngel.Relay.Set( Port6, !ReefAngel.Relay.Status( Port5 ) );
ReefAngel.Relay.DelayedOn( Port7,30 );
ReefAngel.PWM.SetDaylight( PWMSlope(9,0,20,0,15,40,60,15) );
ReefAngel.PWM.SetActinic( PWMParabola(9,0,20,0,15,50,15) );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <ReefAngel.h>
////// Place global variable code below here
////// Place global variable code above here
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.AddStandardMenu(); // Add Standard Menu
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port7Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port3Bit | Port4Bit | Port7Bit | Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 850 );
// Ports that are always on
ReefAngel.Relay.On( Port4 );
ReefAngel.Relay.On( Port8 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardLights( Port2,21,0,9,0 );
ReefAngel.StandardLights( Port3,9,0,21,30 );
ReefAngel.Wavemaker( Port5,960 );
ReefAngel.Relay.Set( Port6, !ReefAngel.Relay.Status( Port5 ) );
ReefAngel.Relay.DelayedOn( Port7,30 );
ReefAngel.PWM.SetDaylight( PWMSlope(9,0,20,0,15,40,60,15) );
ReefAngel.PWM.SetActinic( PWMParabola(9,0,20,0,15,50,15) );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
Re: RA Gen - No Member named 'relay' error code
never mind, powered down, rebooted and all is good -