Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CapServer multiAdviseData
Qt 6.11 is out! See what's new in the release blog

CapServer multiAdviseData

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    antonio8
    wrote on last edited by
    #1

    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]");@

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to DevNet,

      Where does this error come from ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        antonio8
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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...

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved