08-21-2011 05:22 AM
Hi,
I am facing one problem in numeric controller,i,e i have set the Max and minimum value in coerce mode..
for instance, maximum value is 10 and minimum is 0.In run mode it wont allow the value beyond this limit,suppose currently i have the value "5",if i change the value which is maximum of limit consider i put the value now 15
it automatically change 10(maximum limit) not to retrive the previous value "5"...
if anything possible to retrive the previous value when user enter value beyond the maximum limit in numeric control?
pls give the solution?
08-21-2011 07:51 AM
You can do that using event structures. Have a look at the image below.
08-21-2011 10:58 PM
thanks for your replay...
is this only possible in coding? not any default labview settings?
08-21-2011 11:24 PM
That is the only way to do it.
08-23-2011 08:06 AM
More generally, like this:
08-23-2011 11:17 PM
hi pcardinale thanks for ur replay,
you have done effectivly but in your case two things we need to do,
1.if we need maximum value 5 ,we should set maximum value 6,other wise we cant realize the value which is beyond the limit.
2.if weneed miminmum value 2,we should set 1,
i just gives my sugesstion ....thanks
08-23-2011 11:20 PM - edited 08-23-2011 11:21 PM
Try right clicking the in range and coerce function and select Include Upper Limit. That will make the upper diamond black and the upper limit will be considered in range.
Compare Adnan's picture to pcardinale's.