LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

validating input value

 
0 Kudos
Message 1 of 6
(3,365 Views)
Hi All ,
I have an input parameter that i want to check its value when i press some button.
if the value is not as i expect than i want to prompt the user for invalid input values.
This all happen in event-case loop (if it has any affect on your answer ..)
 
how do i do it ?
 
Thanks
0 Kudos
Message 2 of 6
(3,364 Views)

Hi

Use the producer/consumer-pattern. Using the event-structure you can feed a queue with elements, which are dequeued in a second loop, which contains a case-structure. So if you detect invalid data, you just can enqueue new appropriate elements.

Hope this helps.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 6
(3,361 Views)

Hi ,

The only thing that interest me is how to prompt the user with that warning .

can you focus on that ?

 

0 Kudos
Message 4 of 6
(3,358 Views)
Attached you find an very simple example, how I would do it. Of course the vi itself could be coded better, but just to give you an idea.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 5 of 6
(3,355 Views)

Hi ,

Got what i needed ,

Thanks

0 Kudos
Message 6 of 6
(3,351 Views)