CapServer multiAdviseData



  • Hi everyone I am pretty new in this and in my first application I am facing some problems I do not know how to fix.
    The application is an interface for a laser tracker. In particular the problem is with some CAP server I have to read or write.

    In this fuction:
    @void slLeicaform::multiAdviseDataREALFROMLT(SlCapErrorEnum eError1, const QVector<SlCapAdviseResultType>& adviseResult)
    {
    if( SL_CAP_OK != eError1 )
    {
    // write error to the status bar
    handleRetVal(eError1);
    IDC_STATIC_RESULT6->setValue("Multi Advise Data Function error");
    IDC_STATIC_FROMLTX->setValue(adviseResult[2].m_vValue);
    IDC_STATIC_FROMLTY->setValue(adviseResult[3].m_vValue);
    IDC_STATIC_FROMLTZ->setValue(adviseResult[4].m_vValue);
    IDC_STATIC_DISP->setValue(adviseResult[5].m_vValue);
    QString szHexErrorNr = QString("%1").arg(eError1,0,16).right(8);
    IDC_STATIC_RESULT6->setText(szHexErrorNr);
    IDC_STATIC_RESULT6->setValue(adviseResult.size());
    }
    else
    {
    IDC_STATIC_RESULT6->setValue("Multi Advise Data Function no error");
    IDC_STATIC_FROMLTX->setValue(adviseResult[1].m_vValue);
    IDC_STATIC_FROMLTY->setValue(adviseResult[2].m_vValue);
    IDC_STATIC_FROMLTZ->setValue(adviseResult[3].m_vValue);
    IDC_STATIC_DISP->setValue(adviseResult[4].m_vValue);

    }
    }@

    I am getting an error 80300051: The namespace is currently reacquiring the namespace file.

    What I do if I get it is to access the next element that the one is supposed to be. But this is not the right way to do it. Any tip about this?

    @QVector<SlCapAdviseSpecType> vecAdviseREALFROMLT;

    vecAdviseREALFROMLT.append("/NC/_N_NC_GD2_ACX/LT_REALTOLT[0]");
    vecAdviseREALFROMLT.append("/NC/_N_NC_GD2_ACX/LT_REALTOLT[1]");
    vecAdviseREALFROMLT.append("/NC/_N_NC_GD2_ACX/LT_REALTOLT[2]");
    vecAdviseREALFROMLT.append("/NC/_N_NC_GD2_ACX/LT_REALTOLT[3]");
    vecAdviseREALFROMLT.append("/NC/_N_NC_GD2_ACX/LT_REALTOLT[4]");
    vecAdviseREALFROMLT.append("/NC/_N_NC_GD2_ACX/LT_REALTOLT[5]");
    vecAdviseREALFROMLT.append("/NC/_N_NC_GD2_ACX/LT_REALTOLT[6]");
    vecAdviseREALFROMLT.append("/NC/_N_NC_GD2_ACX/LT_REALTOLT[7]");
    vecAdviseREALFROMLT.append("/NC/_N_NC_GD2_ACX/LT_REALTOLT[8]");
    vecAdviseREALFROMLT.append("/NC/_N_NC_GD2_ACX/LT_REALTOLT[9]");@


  • Lifetime Qt Champion

    Hi and welcome to DevNet,

    Where does this error come from ?



  • When I run the program read the code of the error, then I use a tool of sinumerik to get the meaning of that error. As this is a program for a siemens product that has Qt integrated.


  • Lifetime Qt Champion

    This looks like an error generated by the siemens part so not directly Qt related, you might have better chance of getting an useful answer by asking on a siemens forum.

    I'm sorry I can't help you more...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.