LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to Load a Panel during run time from a CVI dll

Hi,

 

I want to execute/load a panel during runtime, from a CVI dll function.

my CVI dll "test.dll" has "READ_PAN" function. while executing this function from a Test Stand Action step i want Configure Panel (from FR_GUI.uir) to pop up.

 

can you please suggest me how can i do this from my "test" project of CVI.

 

int __stdcall __export RunFRConfig (CAObjHandle step,CAObjHandle thisContext)
{
    ERRORINFO errorInfo;
    char errMsg[1024];

    int pan;

  

    pan = LoadPanelEx (0, "FR_GUI.uir", READ_PAN, __CVIUserHInst);

   

    DisplayPanel (pan);
    RunUserInterface();
    DiscardPanel (pan);

    return 0;
        Error:
   // sprintf(FinalErrMsg,"Configure Error: %s",errMsg);  
    return -1;
}

 

 

0 Kudos
Message 1 of 1
(3,060 Views)