Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5370

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

$
0
0

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;
}

 

 


Viewing all articles
Browse latest Browse all 5370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>