Is there alternative to inputs state polling ?

Support for the Milan Intelligent interface, sold by Money Controls as the Paylink USB unit and for the earlier PCI card version.

Moderators: aardvark, davebush, Admin

Post Reply
Brzeczek
Posts: 9
Joined: Tue Jul 15, 2025 5:55 am

Is there alternative to inputs state polling ?

Post by Brzeczek »

Hi Dave,
To obtain state of the input we need to execute SwitchOpens and SwitchCloses calls. To get this information quickly, we need to call them at short intervals. Is there some alternative (event driven) mechanism in the library that allows my program to just wait for switch input change and avoid exhausting polling ?
davebush
Posts: 492
Joined: Fri Oct 22, 2004 12:20 pm

Re: Is there alternative to inputs state polling ?

Post by davebush »

Hi,

I'm sorry, but due to the architecture of Paylink there is no alternative. If it is any consolation these calls are really quick, they only execute about 10 instructions before returning with the value.

Regards

Dave
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Post Reply