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.
Watt value is stored in the 9th row, 3rd field ...
This is the simple code I'm using
- ch1 = open ("TEXT", "3010216.ies", "Separator = ' ',mode=RO, LIBRARY" )
n = INPUT (ch1, 9, 3, test)
print n, test
close ch1
"test" is a text variable.
print command returns always -1 value (end of file).
Where do I make mistake?
This is the IES file
- IESNA:LM-63-1995
[TEST] 3010216
[MANUFAC] 1000
[LUMCAT] 3010216
[LUMINAIRE] Flamingo applique 9W (LED - 3000K)
[FLASHAREA] 00475
TILT=NONE
1 730 1.0 19 1 1 2 -0.050 00 00
1 1 9
0 5 10 15 20 25 30 35 40 45
50 55 60 65 70 75 80 85 90
0
84.53 84.53 83.44 81.91 79.28 75.77 71.61 67.01 61.76
55.63 49.06 41.83 33.94 26.28 17.52 8.76 1.53 0 0
AC27 latest hotfix
Win 10 Pro 64bit
Double XEON 14 CORES (tot 28 physical cores)
32GB RAM - SSD 256GB - Nvidia Quadro K620
Display DELL 25'' 2560x1440
www.almadw.it