LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI2009 window not coming to front on breakpoint

Solved!
Go to solution

When I run my program, with a breakpoint set the program stops at the breakpoint, but the CVI screen does not come to the front.  If I can get to the Go Stop or Step icons and click on one, the program will act as it should.  The other important piece in this puzzle is that there are two program icons in the toolbar.

0 Kudos
Message 1 of 4
(3,432 Views)

Hello,

 

Has CVI always behaved this way, or did it just start doing this? If you place a breakpoint in an example program does the environment come to the front when it is reached? Also what do you mean there are 2 program icons in the toolbar?

 

Best Regards,

 

Adam G 

National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,406 Views)

No, CVI has not always acted this way.  When I added in a menu and title bar is when it first occured.  The program shows up in the windows taskbar with two ICONS.  I suspect that the main panel is getting loaded twice and when I set a breakpoint, one of the loaded panels remains in front so that I can't access the CVI debug environment.  I have enclosed the code extract that I think is causing the problem.

0 Kudos
Message 3 of 4
(3,397 Views)
Solution
Accepted by topic author pnesky

Update: The problem had nothing to do with the code I sent you.  I fixed the duplicate ICONs issue by unchecking the main panel's Has Taskbar Button under Edit Panel>>Other Attributes in the uir file.  In the same location, I fixed the CVI not coming to the front by setting the Floating Style to "Never".  This appears to solve the problem.

0 Kudos
Message 4 of 4
(3,392 Views)