Author Topic: widget works for a while then stops  (Read 786 times)

jfedison741

  • Newbie
  • *
  • Posts: 13
widget works for a while then stops
« on: January 20, 2010, 10:28:06 AM »
I am using widgets to monitor all 4 analog inputs from the IO-204. Using javascript, I am  storing the data to an array every 10 seconds and noticed sometimes after about 300 to 600 readings, the data in the array stops changing. Each reading is frozen eventhough the signals on the analog inputs are changing.

Also while the widgets are working (readings are updating) the channel numbers 1-2-3-4 flash on the 7-seg LED display. But when the readings freeze (sometimes after about 1 or 2 hours) the 7-seg LED remains dark.

Has anyone else seen similar intermittent behavior? Any ideas on how to fix?

A subsection of my code for channel 4:
DataStringA = widgetGetValue('CC7WwfDPbe9D');

And the widget is placed in the html body:
<script type="text/javascript">document.write(unescape("%3Cscript src='" + "http://www.iobridge.com/widgets/io.js?CC7WwfDPbe9D' type='text/javascript'%3E%3C/script%3E"));</script>


Thanks,
Jeff

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
Re: widget works for a while then stops
« Reply #1 on: January 20, 2010, 11:16:43 PM »
Is the script running in Firefox? I know of a memory leak in FF that occurs over a long period of time. i tested the same scripts in Safari, Chrome, and even IE - and it does not seem to leak.
« Last Edit: January 20, 2010, 11:18:29 PM by iobridge »
ioBridge Support
Community Team

jfedison741

  • Newbie
  • *
  • Posts: 13
Re: widget works for a while then stops
« Reply #2 on: January 21, 2010, 09:39:24 AM »
the failure occurs in both internet explorer and firefox.