LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to deactivate timeout of instrument assistant

Solved!
Go to solution

I dont want the instrument assistant to time out if there is no serial input.  :smileyvery-happy:

 

The only way i know how to do this is open front panel of the instrument assistant and  delete the timeout number constant block from the property node's timeout setting. 

 

But i dont really like to blow up the instrument assistant, is there a simpler way to do this? Like deactivating some setting? :smileysurprised:

 

Thanks you. 

0 Kudos
Message 1 of 2
(2,831 Views)
Solution
Accepted by topic author sunflower2772

Within the I/O assistant, you could set the timeout to -1 which will actually become 4294967295 milliseconds (the maximum value for a U32).  That would be a timeout value of nearly 50 days.

 

But why would you want that?  I see no logical reason not to have a reasonable timeout value.  A timeout is intended to protect you from trying to read a message that never comes.  Suppose a cable gets kicked out before the response to a message comes back.  Do you want your code to freeze forever waiting for a response that will never come?  Or would you like to detect a timeout error and handle that gracefully.

Message 2 of 2
(2,828 Views)