Facility Control

 View Only
  • 1.  XML close file

    Posted 01-27-2020 21:41

    Hi All,

        So I have been working on a dashboard panel that will get live XML data everything 5 seconds. when I set a timer to read the XML data every 5 seconds, it is almost like the file gets locked. it never seems to update. If i set the timer to update greater than 10 seconds it updates fine. 

    I feel like it could be that I am leaving the file open after I read it I am using the ogscript.parseXML function, should I be closing the XML file after I have read it?

    Thanks for any help

    Curtis



  • 2.  RE: XML close file

    Posted 01-27-2020 21:58

    Hi Curtis

    How are you reading your XML file? Is it stored locally on your computer or is it over HTTP?

    You should not have to explicitly close it so there is likely something else at play.  A code snippet might prove helpful on this one.

    Cheers

    James


    #DashBoard