Menu

More than 2 Inverters - N_INV

Neil
2012-06-11
2015-05-21
  • Neil

    Neil - 2012-06-11

    The compiled downloadable Auroramon-1.06c code is configured for a maximum of two inverters.
    I have 3 Aurora inverters.

    In the source the auroramon.h Header file has N_INV=2.
    Is there any reason why 3 would not work?

    My C is not overly proficient but I did spot one case in auroramonApp.cpp where an If(inv==0) / else type statement was used with respect to selecting "inv" where there seems to be only two alternatives. inv is the value of the for loop which has as it's end value N_INV.

    Here is the code segment I refer to:

    for(inv=0; inv<N_INV; inv++)
    
    {
            memset(&inverters[inv], 0, sizeof(inverters[inv]));
    
            pConfig->SetPath(wxString::Format(_T("/inverter%d"), inv));
    
            if(inv==0)
                inverter_address[inv] = pConfig->Read(_T("address"), (long)2);
    
            else
                inverter_address[inv] = pConfig->Read(_T("address"), (long)0);
    
            inverters[inv].auto_retrieve = pConfig->Read(_T("auto_retrieve"), (long)0);
    
            pConfig->Read(_T("today"), &string, _T(""));
    
            strncpy0(inverters[inv].today_done, string.mb_str(wxConvLocal), sizeof(inverters[inv].today_done));
    
            pConfig->Read(_T("previous_total"), &(inverters[inv].previous_total), 0);
    
            pConfig->Read(_T("energy"), &string, wxEmptyString);
    
            strncpy0(buf, string.mb_str(wxConvLocal), sizeof(buf));
    
            e = inverters[inv].energy_total;
    
            sscanf(buf, "%lf %lf %lf %lf %lf %lf %d", &e[0], &e[1], &e[2], &e[3], &e[4], &e[5], &inverters[inv].peak);
    
        }
    
     
    • Brian Tewlewinski

      Any follow up on this, were you successful? I'm looking to test Aurora Monitor on one of our sites and I need to collect data from 8 inverters.

      Is it as simple as implementing a configuration file read for N_INV ?

       

Log in to post a comment.

MongoDB Logo MongoDB