LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement Wait time ERROR Message.

Solved!
Go to solution

Hi all,

 

I need to implement a wait time(for example 400ms)

 

to read Sensor for ON .

 

if its Not Achive i need to show Error message .

 

I have implement this in folowing way ..

 

But i am not happy with this method ..

 

is this correct method.

 

I have attached my VI file

 

g'.PNG

0 Kudos
Message 1 of 7
(2,974 Views)

Hi is anybody got solution for my question .?

0 Kudos
Message 2 of 7
(2,930 Views)
It's good that you are not happy with this. You should checkout the online tutorials. But in the mean time can you describe step-by-step what you want the VI to do?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 7
(2,929 Views)

Hi Mike,

 

i need to check the input pin (Sensor) of my arudino  .

 

and i am waiting for the pin to high  for a specfic time .

 

if its not achived at the specfic time ,i need to show pop message.

 

 

0 Kudos
Message 4 of 7
(2,919 Views)

I am asking kind of "TIMEOUT" function ..

0 Kudos
Message 5 of 7
(2,915 Views)
Solution
Accepted by topic author SaranVenkateshS

You can replace the Count_XL functionality you made by just using the iteration terminal in the bottom left of your while loop.

 

As for making a timeout, you could use the Elapsed Time express VI to check if a certain amount of time has elapsed and end the loop if your sensor is true or time has elapsed.  There are a lot of ways to do this but the best way will be determined by how you want your application to work.

Matt J | National Instruments | CLA
Message 6 of 7
(2,893 Views)

Hi Jacobson,

 

Thanks a lot for your reply ..

 

0 Kudos
Message 7 of 7
(2,883 Views)