LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
AndyL-3

Improve EVENT_VAL_COERCED

Status: New

 

It would be nice if eventData1 and eventData2 were used when EVENT_VAL_COERCED is triggered.

 

I have an application in which I want to know if too high or low of a number entered.

 

GetCtrlVal always returns the coerced to number that is in range.

 

if eventData1 is 1 the max value was hit, if -1 the min value was hit.

 

eventData2 is always 0.

 

You can check the value returned by GetCtrlVal against the min and max of the control using GetCtrlAttribute.

 

I am running into an issue where my ranges change based on other control ranges and sometimes the min and max of a control are set to the same

number.  I want to know if the number entered was too high or low.