Get Items with Milliseconds

Help
Markus
2013-05-27
2013-05-30
  • Markus

    Markus - 2013-05-27

    Hallo,

    is there a chance to get the data with milliseconds?

    Thanks
    Markus

     
  • SpinelliCreations

    sure… when you call opc.read(), be sure to include the update parameter.  update is measured in milliseconds, just as timeout is measured in milliseconds.

    example…

    python>> my_group = opc.read(tags=SOMEARRAYOFTAGS, group=SOMEGROUPNAME, timeout=INTEGERVALUEMILLISECONDS, update=INTEGERVALUEMILLISECONDS, sync=False)

    then, everytime you poll "my_group", it will refresh…  so you would simply create a loop that would poll it every however many milliseconds…

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks