Announcement

Collapse
No announcement yet.

Read Inputs overflow HS2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Read Inputs overflow HS2

    Hi,

    I've been re-programming my HSPI_K8061 plugin for the new Velleman drivers 4.0.0.1 (Info for followers for my script)

    I wonder if it can be a problem to get a lot of info from HS?
    My plugin has 32 IO's with a refreshfrequentie of about 80ms, could hs get unstable if i ask every cycles for 32 times hs.getdevicevalue[xx]?

    For the record, thats 400 times/sec

    #2
    I have polled 8 inputs on the K8055 at frequencies as low as 50/75ms before without a problem. The issue maybe CPU utilisation, I saw around a 10% rise in CPU use (which I know is relative to your CPU power) when I did this. I tended to set the device status rather than read it first and then set it as that probably doubles the effort needed.

    I think you will just have to try it and see.

    Comment


      #3
      Oke, thanks, i gone try it.

      But does anyone know if the actual device status is sitting in a variable or does HS pick it everytime out of the DB file? because than i can get a performance boost to make my own array with actual status an only take interaction with HS when i notice a change.

      Comment


        #4
        I've tryde it and works without problems (Y)

        Comment

        Working...
        X