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)