LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Question on Watch window

Hello,

I am running CVI 2017 and have set up a watch expression of a structure member, see below.

 

w1.png

 

 

Now, at the first line of my code I have set a breakpoint that allows me to enable this watch expression, i.e., check the checkmark 'break on change". Surprisingly, now when stopped at the breakpoint this watch expression has doubled, see below.

 

w2.png

 

After checking BOTH checkmarks and continuing the debug process the program stops once this variable value changes.

 

w3.png

 

However, if I check only ONE checkmark of the two (identical) watch expressions the debug process is NOT halted once the variable value changes...

 

Any explanations are welcome Smiley Happy

Thanks!

0 Kudos
Message 1 of 5
(2,996 Views)

Hello Wofgang,

 

This seems to be another instance of this bug. If you remove the 2 watchpoints and add it again can you reproduce the same behavior?

 

Regards,

Constantin

Message 2 of 5
(2,992 Views)

Hi Constantin,

Thanks for the (quick) reply!

I don't know if it's the same... The original description states that it occurs after several runs of the code and then re-opening the watch window.

In my case, the Watch window was open from the very beginning, and the duplication occurred already at the first run... so I did not close or re-open the window.

In addition, I did not see a report that one or two checkmarks of the same variable produce different results..

 

My scenario also is different from the one described by Daniel, I first opened the watch window, added the variable, then added a breakpoint. Also I never closed the watch window.

 

 

To address your suggestion I restarted the CVI project, opened the watch window (watch variable still there) and ran the program - now at the breakpoint only one variable showed up, and checking it did break execution as expected. Same for second and third run.

 

Then I removed the watch varibable and wanted to add it again.

Different things can happen, all strange:

if I click on the structure member (in the example, .conform_to_system), only the member is added to the watch window,

 

w4.png

 

and at the breakpoint the debugger complains about the unknow identifier.

 

w5.png

 

I would suggest that this is an independent bug, only valid identifiers should be accepted...

 

Now I remove this watch expression and click on the first part of the variable

 

w.png

 

to add it to the watch window:

 

w6.png

 

at the breakpoint this yields

 

w7.png

 

i.e., the complete structure is monitored (but in my case I do not want a break if one of the many structure members changes)

So as an intermediate question: how did I manage to select the one member of the structure?

0 Kudos
Message 3 of 5
(2,979 Views)

@Wolfgang
So as an intermediate question: how did I manage to select the one member of the structure?

I was able to show in the watch window the 'structure.member' label by explicitly selecting the entire text (i.e. 'panelappearance.conform_to_system') and adding it to the watch window.

And I made some fast test on my system but was not able to duplicate your situation on (but my system is different from yours: CVI2015SP1f1)



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 4 of 5
(2,975 Views)

Smiley Happy

Ah thanks, this saves me some experiments Smiley Wink. Now I can try to investigate it further.

0 Kudos
Message 5 of 5
(2,972 Views)