05-08-2006 10:41 AM
05-08-2006 11:05 AM
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.
05-10-2006 04:32 AM
05-10-2006 11:34 AM
05-10-2006 12:05 PM
@labview1958 wrote:
I have put in the time out as 5. So I hope the measure period vi would time out in 5 seconds.

Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.11-21-2007 07:52 AM
11-21-2007 09:07 AM
07-04-2009 08:34 AM - edited 07-04-2009 08:37 AM
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.

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?
07-04-2009 08:43 AM
07-04-2009 09:20 AM
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.