<?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 IES LAMPS - read data from ies file in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/IES-LAMPS-read-data-from-ies-file/m-p/265889#M8347</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I'm trying to read some basic data from IES file (for example the Power Consumption) using OPEN, INPUT commands but I cannot get the wanted result.&lt;BR /&gt;
&lt;BR /&gt;
Watt value is stored in the 9th row, 3rd field ... &lt;BR /&gt;
This is the simple code I'm using&lt;BR /&gt;

&lt;UL&gt;&lt;LI&gt;ch1 = open ("TEXT", "3010216.ies", "Separator = ' ',mode=RO, LIBRARY" ) &lt;BR /&gt;
n = INPUT (ch1, 9, 3, test) &lt;BR /&gt;
print n, test&lt;BR /&gt;
close ch1&lt;/LI&gt;&lt;/UL&gt;

"test" is a text variable.&lt;BR /&gt;
print command returns always -1 value (end of file).&lt;BR /&gt;
&lt;BR /&gt;
Where do I make mistake?&lt;BR /&gt;
&lt;BR /&gt;
This is the IES file&lt;BR /&gt;

&lt;UL&gt;&lt;LI&gt;IESNA:LM-63-1995&lt;BR /&gt;
[TEST] 3010216&lt;BR /&gt;
[MANUFAC] 1000&lt;BR /&gt;
[LUMCAT] 3010216&lt;BR /&gt;
[LUMINAIRE] Flamingo applique 9W (LED - 3000K)&lt;BR /&gt;
[FLASHAREA] 00475&lt;BR /&gt;
TILT=NONE&lt;BR /&gt;
1 730 1.0 19 1 1 2 -0.050 00 00&lt;BR /&gt;
1 1 9&lt;BR /&gt;
0 5 10 15 20 25 30 35 40 45 &lt;BR /&gt;
50 55 60 65 70 75 80 85 90 &lt;BR /&gt;
0 &lt;BR /&gt;
84.53 84.53 83.44 81.91 79.28 75.77 71.61 67.01 61.76 &lt;BR /&gt;
55.63 49.06 41.83 33.94 26.28 17.52 8.76 1.53 0 0&lt;/LI&gt;&lt;/UL&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 08 Mar 2016 09:01:06 GMT</pubDate>
    <dc:creator>alemanda</dc:creator>
    <dc:date>2016-03-08T09:01:06Z</dc:date>
    <item>
      <title>IES LAMPS - read data from ies file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/IES-LAMPS-read-data-from-ies-file/m-p/265889#M8347</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I'm trying to read some basic data from IES file (for example the Power Consumption) using OPEN, INPUT commands but I cannot get the wanted result.&lt;BR /&gt;
&lt;BR /&gt;
Watt value is stored in the 9th row, 3rd field ... &lt;BR /&gt;
This is the simple code I'm using&lt;BR /&gt;

&lt;UL&gt;&lt;LI&gt;ch1 = open ("TEXT", "3010216.ies", "Separator = ' ',mode=RO, LIBRARY" ) &lt;BR /&gt;
n = INPUT (ch1, 9, 3, test) &lt;BR /&gt;
print n, test&lt;BR /&gt;
close ch1&lt;/LI&gt;&lt;/UL&gt;

"test" is a text variable.&lt;BR /&gt;
print command returns always -1 value (end of file).&lt;BR /&gt;
&lt;BR /&gt;
Where do I make mistake?&lt;BR /&gt;
&lt;BR /&gt;
This is the IES file&lt;BR /&gt;

&lt;UL&gt;&lt;LI&gt;IESNA:LM-63-1995&lt;BR /&gt;
[TEST] 3010216&lt;BR /&gt;
[MANUFAC] 1000&lt;BR /&gt;
[LUMCAT] 3010216&lt;BR /&gt;
[LUMINAIRE] Flamingo applique 9W (LED - 3000K)&lt;BR /&gt;
[FLASHAREA] 00475&lt;BR /&gt;
TILT=NONE&lt;BR /&gt;
1 730 1.0 19 1 1 2 -0.050 00 00&lt;BR /&gt;
1 1 9&lt;BR /&gt;
0 5 10 15 20 25 30 35 40 45 &lt;BR /&gt;
50 55 60 65 70 75 80 85 90 &lt;BR /&gt;
0 &lt;BR /&gt;
84.53 84.53 83.44 81.91 79.28 75.77 71.61 67.01 61.76 &lt;BR /&gt;
55.63 49.06 41.83 33.94 26.28 17.52 8.76 1.53 0 0&lt;/LI&gt;&lt;/UL&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Mar 2016 09:01:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/IES-LAMPS-read-data-from-ies-file/m-p/265889#M8347</guid>
      <dc:creator>alemanda</dc:creator>
      <dc:date>2016-03-08T09:01:06Z</dc:date>
    </item>
  </channel>
</rss>

