<?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>topic Update from Database on a Timed Frequency in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Update-from-Database-on-a-Timed-Frequency/m-p/389958#M64010</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I currently have a script that requires user input to define variables that are used to query a database and generate control charts. To eliminate the need for an operator to provide these inputs again to generate the control charts whenever new data is in the database, I would like to automatically update the control chart on a timed frequency. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. User provides input.&lt;/P&gt;&lt;P&gt;2. Initial database query.&lt;/P&gt;&lt;P&gt;3. Control Charts are generated.&lt;/P&gt;&lt;P&gt;4. Every two minutes, the database is queried and new data is added to the main data table.&lt;/P&gt;&lt;P&gt;5. New control charts are generated.&lt;/P&gt;&lt;P&gt;6. Repeat steps 4 &amp;amp; 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:31:01 GMT</pubDate>
    <dc:creator>Austin</dc:creator>
    <dc:date>2023-06-10T23:31:01Z</dc:date>
    <item>
      <title>Update from Database on a Timed Frequency</title>
      <link>https://community.jmp.com/t5/Discussions/Update-from-Database-on-a-Timed-Frequency/m-p/389958#M64010</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I currently have a script that requires user input to define variables that are used to query a database and generate control charts. To eliminate the need for an operator to provide these inputs again to generate the control charts whenever new data is in the database, I would like to automatically update the control chart on a timed frequency. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. User provides input.&lt;/P&gt;&lt;P&gt;2. Initial database query.&lt;/P&gt;&lt;P&gt;3. Control Charts are generated.&lt;/P&gt;&lt;P&gt;4. Every two minutes, the database is queried and new data is added to the main data table.&lt;/P&gt;&lt;P&gt;5. New control charts are generated.&lt;/P&gt;&lt;P&gt;6. Repeat steps 4 &amp;amp; 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:31:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-from-Database-on-a-Timed-Frequency/m-p/389958#M64010</guid>
      <dc:creator>Austin</dc:creator>
      <dc:date>2023-06-10T23:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Update from Database on a Timed Frequency</title>
      <link>https://community.jmp.com/t5/Discussions/Update-from-Database-on-a-Timed-Frequency/m-p/389973#M64012</link>
      <description>&lt;P&gt;Are you looking for something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;User provides input.
KEEPGOING = 1;
while( KEEPGOING, // the while statement with a TRUE condition will loop forever
     database query;
     Control Charts are generated;
     wait(120); // 120 second delay
); // end of while loop&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You may want to dress it up a bit, maybe with a button in the UI to set the KEEPGOING flag to zero.&lt;/P&gt;&lt;P&gt;JMP will seem somewhat responsive during the wait...you can probably zoom in, etc, but not run more JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible the control chart only needs to be generated once, before the loop. The data table update may automatically regenerate the chart during the wait(120).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a schedule function also, which I don't recommend if the above does what you need.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 16:23:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Update-from-Database-on-a-Timed-Frequency/m-p/389973#M64012</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-06-02T16:23:28Z</dc:date>
    </item>
  </channel>
</rss>

