<?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 Re: LocaTime not displaying in SQL in Lookout</title>
    <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/555028#M4752</link>
    <description>&lt;DIV&gt;See the attachment. The right part is the raw data I retrieved in Excel. The left part is the Lookout datatable values. In Datatable, I select MATH_ETM(var) from IntData Where LocalTime Between 17:04:00 and 17:09:00,&amp;nbsp;AND IntInterval = 00:01:00.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;One thing needs to be clarified is that when I query MATH_ETM(var) from 17:04:00, the first value returned is calculated from 17:03:00 to 17:04:00.&lt;/STRONG&gt; &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;You can see that the values I got in Lookout Datatable are correct. You can also do it in Excel and then calculate by yourself.&lt;/DIV&gt;</description>
    <pubDate>Tue, 24 Jul 2007 09:34:38 GMT</pubDate>
    <dc:creator>Ryan.S</dc:creator>
    <dc:date>2007-07-24T09:34:38Z</dc:date>
    <item>
      <title>LocaTime not displaying in SQL</title>
      <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/553884#M4739</link>
      <description>Creating reports in Lookout 6.0.2 (Citadel 5).&amp;nbsp; Cannot retrieve the values of LocalTime.&lt;BR /&gt;&lt;BR /&gt;Example SQL:&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;"SELECT MATH_ETM(""mikedesktop/TestDB/OnOff""), MATH_STARTS(""mikedesktop/TestDB/OnOff""), MATH_STOPS(""mikedesktop/TestDB/OnOff""), LocalTime FROM IntData WHERE IntInterval='01:00' AND LocalTime BETWEEN '2007-7-20 11:23:00' AND '2007-7-20 11:30:00'"&lt;BR /&gt;&lt;BR /&gt;Returns (Example):&lt;BR /&gt;39.3372, 3, 2, 0 (On for 39.3~ seconds, started 3 times, stopped 2, no localtime)&lt;BR /&gt;57.11,1,1,0 (On for 57.11~ seconds, started 1 time, stopped 1 time, no localtime)&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Mike&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jul 2007 18:29:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/553884#M4739</guid>
      <dc:creator>Mike@DTSI</dc:creator>
      <dc:date>2007-07-20T18:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: LocaTime not displaying in SQL</title>
      <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/554163#M4743</link>
      <description>&lt;DIV&gt;Do you use Datatable object in Lookout?&amp;nbsp; Take care that LocalTime is txt format. So if it's column D, it should be D1.txt, D2.txt...&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Jul 2007 02:52:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/554163#M4743</guid>
      <dc:creator>Ryan.S</dc:creator>
      <dc:date>2007-07-23T02:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: LocaTime not displaying in SQL</title>
      <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/554562#M4747</link>
      <description>Ok, cleared that problem (sure wish NI knew how to document this in the changes :\)&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;Next problem, &lt;BR /&gt;&lt;BR /&gt;If i have 2 logged variables (Var1, Var2)&lt;BR /&gt;and var1 runs 12:34 (HH:SS), Var2 12:20 (HH:SS)&lt;BR /&gt;&lt;BR /&gt;I receive 12:34 and 03:34&lt;BR /&gt;&lt;BR /&gt;No matter what points, my numbers are wrong.&amp;nbsp; HyperTrend shows the runtimes correctly, but using the SQL pull (Which works great in LO 5.1 BTW) they are incorrect.&lt;BR /&gt;&lt;BR /&gt;Seudo-code SQL:&lt;BR /&gt;SELECT MATH_ETM(Var1), MATH_ETM(Var2), LocalTime FROM MyDatabase WHERE LocalTime BETWEEN '2007-07-01 00:00' AND '2007-07-31 24:00' AND IntInterval=1&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jul 2007 16:15:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/554562#M4747</guid>
      <dc:creator>Mike@DTSI</dc:creator>
      <dc:date>2007-07-23T16:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: LocaTime not displaying in SQL</title>
      <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/555028#M4752</link>
      <description>&lt;DIV&gt;See the attachment. The right part is the raw data I retrieved in Excel. The left part is the Lookout datatable values. In Datatable, I select MATH_ETM(var) from IntData Where LocalTime Between 17:04:00 and 17:09:00,&amp;nbsp;AND IntInterval = 00:01:00.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;One thing needs to be clarified is that when I query MATH_ETM(var) from 17:04:00, the first value returned is calculated from 17:03:00 to 17:04:00.&lt;/STRONG&gt; &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;You can see that the values I got in Lookout Datatable are correct. You can also do it in Excel and then calculate by yourself.&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Jul 2007 09:34:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/555028#M4752</guid>
      <dc:creator>Ryan.S</dc:creator>
      <dc:date>2007-07-24T09:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: LocaTime not displaying in SQL</title>
      <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/555350#M4754</link>
      <description>I am aware that it selects the data before the LocalTime syntax, we simply skip row 1.&lt;BR /&gt;
&lt;BR /&gt;
Here is a screenshot from the same computer i have the problems on.&amp;nbsp; I used the exact same start date (06/2007) with the same data members.&lt;BR /&gt;
NOTE: The 'Date' column on the Lookout 6 is wrong, we have since solved
that issue.&amp;nbsp; Also, the estimated times on the tops of each image are
incorrect, not related to this issue.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Mike&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Jul 2007 17:13:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/555350#M4754</guid>
      <dc:creator>Mike@DTSI</dc:creator>
      <dc:date>2007-07-24T17:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: LocaTime not displaying in SQL</title>
      <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/555628#M4755</link>
      <description>&lt;DIV&gt;So, do you mean the data in Lookout 6.0.2 are incorrect, while those in Lookout 5 are correct?&lt;/DIV&gt;
&lt;DIV&gt;Since Lookout 6.0.2 uses Citadel5, while Lookout 5 uses Citadel4, are you querying a Citadel4 database in Lookout 6? &lt;/DIV&gt;
&lt;DIV&gt;From the screenshot of Lookout, I can't find anything wrong. That's why I suggest you to retrieve the raw data from the same database in Excel. In this way, you can find out whether the results in Lookout are correct or not.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Jul 2007 02:56:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/555628#M4755</guid>
      <dc:creator>Ryan.S</dc:creator>
      <dc:date>2007-07-25T02:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: LocaTime not displaying in SQL</title>
      <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/556040#M4756</link>
      <description>The Lookout 6 database is the same database, just converted to Citadel 5.&lt;BR /&gt;Is there a change log to tell the differences between Citadel 4 and 5?&amp;nbsp; Seems like there are quite a few differences.&lt;BR /&gt;&lt;BR /&gt;The numbers in minutes, seconds, hours, etc. are ALL different between the two.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;Thanks&lt;BR /&gt;Mike&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jul 2007 16:05:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/556040#M4756</guid>
      <dc:creator>Mike@DTSI</dc:creator>
      <dc:date>2007-07-25T16:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: LocaTime not displaying in SQL</title>
      <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/556424#M4759</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Mike, I want to reproduce your issue on my computer. Could you upload your citadel 4 database to &lt;A href="ftp://ftp.ni.com/incoming" target="_blank"&gt;ftp://ftp.ni.com/incoming&lt;/A&gt;, and send an email to &lt;A href="mailto:lookout.support@ni.com" target="_blank"&gt;lookout.support@ni.com&lt;/A&gt;&amp;nbsp;with the sql statement you use. If the database is too large, you can archive part of it to an new database. Then let me convert it into Citadel 5 and query both 4 and 5&amp;nbsp;to see the results.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2007 05:38:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/556424#M4759</guid>
      <dc:creator>Ryan.S</dc:creator>
      <dc:date>2007-07-26T05:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: LocaTime not displaying in SQL</title>
      <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/584176#M4910</link>
      <description>Sorry i havent responded.&lt;BR /&gt;&lt;BR /&gt;Here is where we stand.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;The ETM statements -MATH_ETM(TO_DISCRETE("""mikedesktop/Server/PumpTMP/BC""))- returns the value in SECONDS&amp;nbsp;&amp;nbsp;  (~40741 seconds =~11.31 hours (11:19))&lt;BR /&gt;&lt;BR /&gt;The date returned is wrong, the runtime for 09/21/2007 (today) comes back with the date 09/22/2007 from the sql requests.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;So while the data is NOT wrong, it is not placed correctly.&lt;BR /&gt;&lt;BR /&gt;Mike&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Sep 2007 18:23:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/584176#M4910</guid>
      <dc:creator>Mike@DTSI</dc:creator>
      <dc:date>2007-09-21T18:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: LocaTime not displaying in SQL</title>
      <link>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/584289#M4911</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Wow that will piss you off... making changes and wham, over 50 I/O, ok no biggy i can use my unlimited 5.1 LO, err wrong, i cant save my process file.&amp;nbsp; Good job developers.&amp;nbsp; Atleast make it so we can save our work.&amp;nbsp; BS, &lt;BR /&gt;&lt;BR /&gt;Found part of the issue with the dates not lining up, they are 2 rows off&amp;nbsp; (data for 09/20/2007 shows on 09/22/2007)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Mike@DTSI on &lt;SPAN class="date_text"&gt;09-21-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;05:17 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2007 22:17:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Lookout/LocaTime-not-displaying-in-SQL/m-p/584289#M4911</guid>
      <dc:creator>Mike@DTSI</dc:creator>
      <dc:date>2007-09-21T22:17:03Z</dc:date>
    </item>
  </channel>
</rss>

