<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>8-bit Microcontrollersのトピックrepeat VBS script</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/repeat-VBS-script/m-p/212878#M18358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I use Freemaster for reading data from my 8-MCU. I am trying to make simple HTML page, which is usualy reading variables from MCU. I have problem with repeat reading instructions. I need every 5 seconds read variables from MCU and show it in HTML page, but with my code it read only once and then nothing. I tryed to use timeout, but it doesnt work.&lt;/P&gt;&lt;P&gt;Thank you for advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;body BGCOLOR=white&amp;gt;&lt;BR /&gt;&amp;lt;object name="pcm" width="0" height="0"&lt;BR /&gt;classid="clsid:48A185F1-FFDB-11D3-80E3-00C04F176153"&amp;gt;&amp;lt;/object&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script type="text/vbscript"&amp;gt;&lt;BR /&gt;Dim Teplota(5)&lt;BR /&gt;Dim Vlhkost(5)&lt;BR /&gt;Dim Sensor(5)&lt;BR /&gt;Dim Signal(5)&lt;BR /&gt;Dim flag&lt;BR /&gt;&lt;BR /&gt;Function Update()&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[1].temperature", Teplota(1), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[1].humidity", Vlhkost(1), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[2].temperature", Teplota(2), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[2].humidity", Vlhkost(2), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[3].temperature", Teplota(3), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[3].humidity", Vlhkost(3), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[4].temperature", Teplota(4), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[4].humidity", Vlhkost(4), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[5].temperature", Teplota(5), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[5].humidity", Vlhkost(5), tValue, bsRetMsg)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For i=1 To 5&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vlhkost(i)=Vlhkost(i)/10&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Teplota(i)=Teplota(i)/10&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;TR&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;TD WIDTH=200&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;H2&amp;gt;Jednotka ")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write(i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;/H2&amp;gt;&amp;lt;/TD&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;TD WIDTH=200 ALIGN=RIGHT&amp;gt;&amp;lt;H2 TEXT=red&amp;gt;&amp;lt;FONT COLOR=red&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write(Teplota(i))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("°C")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;/FONT&amp;gt;&amp;lt;/H1&amp;gt;&amp;lt;/TD&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;TD ALIGN=RIGHT WIDTH=200&amp;gt;&amp;lt;H2&amp;gt;&amp;lt;FONT COLOR=blue&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write(Vlhkost(i))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write(" %")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;/FONT&amp;gt;&amp;lt;/H2&amp;gt;&amp;lt;/TD&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;TD ALIGN=RIGHT WIDTH=300&amp;gt;&amp;lt;H2&amp;gt;")&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;end function&lt;BR /&gt;&lt;BR /&gt;SetTimeout "Update()", 5000&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 18:35:32 GMT</pubDate>
    <dc:creator>kurna</dc:creator>
    <dc:date>2011-06-08T18:35:32Z</dc:date>
    <item>
      <title>repeat VBS script</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/repeat-VBS-script/m-p/212878#M18358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I use Freemaster for reading data from my 8-MCU. I am trying to make simple HTML page, which is usualy reading variables from MCU. I have problem with repeat reading instructions. I need every 5 seconds read variables from MCU and show it in HTML page, but with my code it read only once and then nothing. I tryed to use timeout, but it doesnt work.&lt;/P&gt;&lt;P&gt;Thank you for advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;body BGCOLOR=white&amp;gt;&lt;BR /&gt;&amp;lt;object name="pcm" width="0" height="0"&lt;BR /&gt;classid="clsid:48A185F1-FFDB-11D3-80E3-00C04F176153"&amp;gt;&amp;lt;/object&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script type="text/vbscript"&amp;gt;&lt;BR /&gt;Dim Teplota(5)&lt;BR /&gt;Dim Vlhkost(5)&lt;BR /&gt;Dim Sensor(5)&lt;BR /&gt;Dim Signal(5)&lt;BR /&gt;Dim flag&lt;BR /&gt;&lt;BR /&gt;Function Update()&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[1].temperature", Teplota(1), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[1].humidity", Vlhkost(1), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[2].temperature", Teplota(2), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[2].humidity", Vlhkost(2), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[3].temperature", Teplota(3), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[3].humidity", Vlhkost(3), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[4].temperature", Teplota(4), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[4].humidity", Vlhkost(4), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[5].temperature", Teplota(5), tValue, bsRetMsg)&lt;BR /&gt;flag = pcm.ReadVariable("Sensors_data[5].humidity", Vlhkost(5), tValue, bsRetMsg)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For i=1 To 5&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vlhkost(i)=Vlhkost(i)/10&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Teplota(i)=Teplota(i)/10&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;TR&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;TD WIDTH=200&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;H2&amp;gt;Jednotka ")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write(i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;/H2&amp;gt;&amp;lt;/TD&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;TD WIDTH=200 ALIGN=RIGHT&amp;gt;&amp;lt;H2 TEXT=red&amp;gt;&amp;lt;FONT COLOR=red&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write(Teplota(i))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("°C")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;/FONT&amp;gt;&amp;lt;/H1&amp;gt;&amp;lt;/TD&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;TD ALIGN=RIGHT WIDTH=200&amp;gt;&amp;lt;H2&amp;gt;&amp;lt;FONT COLOR=blue&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write(Vlhkost(i))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write(" %")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;/FONT&amp;gt;&amp;lt;/H2&amp;gt;&amp;lt;/TD&amp;gt;")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("&amp;lt;TD ALIGN=RIGHT WIDTH=300&amp;gt;&amp;lt;H2&amp;gt;")&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;end function&lt;BR /&gt;&lt;BR /&gt;SetTimeout "Update()", 5000&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 18:35:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/repeat-VBS-script/m-p/212878#M18358</guid>
      <dc:creator>kurna</dc:creator>
      <dc:date>2011-06-08T18:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: repeat VBS script</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/repeat-VBS-script/m-p/212879#M18359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use this and works OK. Hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿﻿﻿﻿&amp;lt;script type="text/vbscript"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Sub ReadSettings&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim succ,v,tv,retMsg&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; succ = pcm.ReadVariable("u8_Batt",v,tv,retMsg)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If succ then&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; anyVariableYouWant = tv&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anyErrorDisplayYouWant = "No Errors!"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anyErrorDisplayYouWant = retMsg&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setTimeout "ReadSettings",5000&lt;BR /&gt;End Sub&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;body&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;object classid="clsid:48A185F1-FFDB-11D3-80E3-00C04F176153"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;id=MCB_PC_Master_Services1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;name="pcm" width="0" height="0"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/object&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Good Luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 07:03:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/repeat-VBS-script/m-p/212879#M18359</guid>
      <dc:creator>Inzunzo</dc:creator>
      <dc:date>2011-11-15T07:03:15Z</dc:date>
    </item>
  </channel>
</rss>

