Nagaraju Posted July 24, 2015 Report Share Posted July 24, 2015 Dear sir, There is a some difficulty to validate the value with units in the attached VI. Kindly look in to that and resolve the issue. Thanks & Regards, S Nagaraju +91 9989554142 Freq validation.vi Quote Link to comment
hooovahh Posted July 24, 2015 Report Share Posted July 24, 2015 First, did you really just put your phone number in a post on the internet? Beyond that here is a method that doesn't need any validation. It sets the max and min of the control to the range based on the drop down selected. It then normalizes in Hz and GHz. No need to write code checking if the range is valid, you make the control only accept the valid range. Freq validation Hooovahh Edit.vi Quote Link to comment
Nagaraju Posted July 25, 2015 Author Report Share Posted July 25, 2015 Hello Dear, You given the Max. & Min. limits for the control and your changing the value according to units and there is no error popup in this case. But in my application the value in the control should not change with respect to units. That units conversion should be happened internally and it will validate value and units accordingly. If the value beyond the limits it should popup. Here the value and the units are dependents. we have to create the dependent events. Kindly let me know any procedure to create the dependent events, Thanks & Regards, S Nagaraju Quote Link to comment
Popular Post ShaunR Posted July 25, 2015 Popular Post Report Share Posted July 25, 2015 Hello Dear, Hi Honey 3 Quote Link to comment
Nagaraju Posted July 25, 2015 Author Report Share Posted July 25, 2015 Hi ShaunR, Please solve my issue. Quote Link to comment
ThomasGutzler Posted July 26, 2015 Report Share Posted July 26, 2015 (edited) You mean like this? Pop-ups for out of range inputs are quite annoying, but if that's what you want, make sure to also remove the property nodes that set the min and max on the control. Otherwise you'll never get that pop-up Edited July 26, 2015 by ThomasGutzler Quote Link to comment
hooovahh Posted July 27, 2015 Report Share Posted July 27, 2015 Otherwise you'll never get that pop-up Which was by design. If you have a pop-up for every control being out of range your users are going to get quite annoyed. What's wrong with the built in feature of setting the control range? It meets the requirements in a cleaner, more scale-able, more modular, more reusable, and more user friendly way. I can think of very few benefits of prompting the user every time. Still if that is what you really want my code can be modified quite easily as ThomasGutzler showed. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.