18M2 input problem

Tumbledown

New Member
I am trying to use the TV remote input and also a digital input in case the 'irin' doesn't work.
Each works alone without the other ones code but both will not work together.
Is there a restriction on digital inputs when using the 'irin' command?
I am new at this, I'm not sure why the attachment didn't show inline.
Dave
Here's the code:
View attachment 12383
 

Attachments

...
Is there a restriction on digital inputs when using the 'irin' command?...
I think irin is a blocking command. The program will essentially "hang" on irin and wait until irin receives an input. Could that be your problem? (I couldn't open your document, sorry.)
I think you can place a timeout feature in your irin code, so if irin doesn't see an input after the timeout value, then it can move on to some other part of the program that you can specify.
 

westaust55

Moderator
Yes, the IRIN command is a blocking command.
The IRIN command allows the use of an optional [TIMEOUT] parameter which will exit the IRIN command to a defined program label after the specified timeout period (in milliseconds).
 
Top