07-14-2015 04:48 AM
Dear sir,
I have two controls Freq-1 and Freq-2. These two controls are fall in different bands and consider the bands are 0.5 - 2, 2 - 6, 6 - 18, 2 - 18 and 0.5 - 18. Based on band selection the two controls should be validated. If the values are out of range it should display the message box and wait until correct the value. Some times I will not change the band but i will change the controls, the controls should validate with existing band. For this I implemented state machine concept but strucked some position. Kindly solve the issue and let me know the any other method to implement. kindly find the enclosed VI which is developed by me and the band ranges are different with above mentioned bands.
Thanks & Regards,
S Nagaraju
Solved! Go to Solution.
07-14-2015 05:12 AM - edited 07-14-2015 05:17 AM
Hi 11532,
your VI looks overly complicated!
Create an array constant holding your band limits. Compare current readings with band limits using InRangeAndCoerce function:
No need to use 10 cases for 10 bands…
HInt: Read the help for the event structure, especially all those "caveats". Never create multiple event structures in one VI looking at the very same event…
07-15-2015 12:38 AM
Thank you for the replay, I will try with this and ley u know.
Kindly comment if any other methods to implement.