LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time out

My vi never times out. If it hangs, it hangs. I cannot even wire the boolean constant T/F to the vi, I get a broken line. If I change it to a indicator then there is no broken line. I do not want the vi to hang.
0 Kudos
Message 11 of 23
(2,810 Views)

I don't have your hardware but when I specify a reasonable time limit (i.e. 5) the function Measure Pulse Width or Period does time out in 5 seconds and does not hang. Just open the function all by itself, set a timeout, and run the VI.

And of course you can't wire a constant to the timeout? It's an indicator. It should be used by your program to determine whether a timeout occured. You asked how you could tell whether a timeout did occur.

Message 12 of 23
(2,802 Views)
I have put in the time out as 5. So I hope the measure period vi would time out in 5 seconds.
0 Kudos
Message 13 of 23
(2,786 Views)
Anyone?
0 Kudos
Message 14 of 23
(2,773 Views)


@labview1958 wrote:
I have put in the time out as 5. So I hope the measure period vi would time out in 5 seconds.


That is what should be happening.

Is that not what you're seeing?

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 15 of 23
(2,766 Views)
Hi,

I'm getting the same problem: I'd like to use the time out status to carry on my program without getting the pop-up error message. As the loop is not iterating, I can't use the Tick Count functions. Any ideas?
0 Kudos
Message 16 of 23
(2,505 Views)
I don't think your question is really related to this old thread. If you have the error dialog popping pop and don't want that, then either wire up the error in/out cluster or disable automatic error dialogs in Tools>Options>Block Diagram.
0 Kudos
Message 17 of 23
(2,500 Views)

hi,

i'm communicating with a device via RS232. after i send it a command, it transmits me "OK".

so, after sending the command, i wait "OK" in a while loop, then i continue to the steps. 

but what if it does not reply ? i have to use a time out but i couldn't do it.

 

timeout.jpg

 

 

i tried to use tick counts but it didn't work. although the timeout logic produces "1", the OR command before the stop if true, waits the read command.

so the while loop continues to run.

 

what should i do?

 

Message Edited by tonay on 07-04-2009 08:37 AM
0 Kudos
Message 18 of 23
(2,252 Views)

Hi tonay,

 

you may use the "Set timeout" in the VISA->Advanced functions palette to set a waiting limit for that VISA-Read...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 19 of 23
(2,248 Views)

thanks, i tried it before but it didn't work. i think there's something wrong with the whole program.

i still couldn't find it.

 

0 Kudos
Message 20 of 23
(2,245 Views)