LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

display panel in debug mode problem

Hi,
 
Is there any known issue about displaying a panel while in debug mode?
 
When CVI reaches the line...
    errChk(Status = DisplayPanel (panel)); 
it get locked.  I can't even break the execution.  The only thing I can do is Terminate it (from the tscvirun.
 
Any suggestions?
 
CVI 8.0.1
 
Rafi
0 Kudos
Message 1 of 4
(3,597 Views)
Hi Rafi,

DisplayPanel should work fine in debug and release mode. Can you reproduce the problem in a new, blank project where main looks something like:

int main (int argc, char *argv[])
{
    int error = 0;
   
    /* initialize and load resources */
    nullChk (InitCVIRTE (0, argv, 0));
    errChk (panelHandle = LoadPanel (0, "your.uir", PANEL));
 
    /* display the panel and run the user interface */
    errChk (DisplayPanel (panelHandle));
    errChk (RunUserInterface ());

Error:
    /* clean up */
    DiscardPanel (panelHandle);
    return 0;
}


Regards,
0 Kudos
Message 2 of 4
(3,575 Views)

Hi James,

I forgot to mention that I use it from TestStand (3.5).  So, first I set the CVI debug mode in TestStand, then, CVI opens another instance of CVI and run the code.  This is where the program get stuck upon displayPanel command.

 

Thanks

Rafi

0 Kudos
Message 3 of 4
(3,547 Views)
Hi Rafi,

Are you running your code from a DLL? If so, you have to call LoadPanelEx with __CVIUserHInst for the last parameter. I've attached an example program that builds a DLL and DisplayPanel does not hang. Open test.seq and see if it hangs on your computer. If not, could you strip down your program and attach it here so I can reproduce the behavior?

Regards,
0 Kudos
Message 4 of 4
(3,513 Views)