From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
gdargaud

Set breakpoint on control attribute change

Somewhat similar to SetBreakOnLibraryError, I suggest the addition of a function that does a breakpoint when the specific attribute of a panel/control changes.
It could work like this:

SetBreakOnCtrlAttributeChange(panel, control, Attribute)

with also:

ClearBreakOnCtrlAttributeChange(panel, control, Attribute) // Use -1 to clear them all

SetBreakOnPanelAttributeChange(panel, Attribute),

ClearBreakOnPanelAttributeChange(panel, Attribute) // Use -1 to clear them all

 

Example of use:

SetBreakOnCtrlAttributeChange(panel, control, ATTR_CTRL_VAL)

SetBreakOnCtrlAttributeChange(panel, control, ATTR_VISIBLE)

3 Comments
LuisG
NI Employee (retired)
Status changed to: Under Consideration
 
LucianoAssirelli
Member

Definitely useful, when an attribute changes and you cant find where/when you did it

ElectroLund
Active Participant

This is a great idea.  Sadly, I searched the forums for this kind of feature and found that it doesn't exist. 

 

It might also be helpful to be able to set a specific value to break on for a control (like for the ring controls).  Something like this:

 

SetBreakOnCtrlValChange(panel, control, 7)