Commit 0f44fc17 authored by Alan Wai Hou Lio's avatar Alan Wai Hou Lio
Browse files

Tested on 5/4.

parent 7e42029a
License Generator Version: 1.0a2
License Created by: MIKF
License Created: 2018-08-21 12:54:31
-------------------------------------------------------------------------------
INPUT
-------------------------------------------------------------------------------
{'H2': True,
'HS2': False,
'add_domain': False,
'add_ipv4s': False,
'add_macs': True,
'comment': 'Extended DTU licenses',
'edic': {'import_mac': 'C:\\Sandbox\\LicenseGenerator\\macs',
'load_database': 'C:/Sandbox/LicenseGenerator/LicenseGenerator/Database',
'load_databaseH2': 'C:/Sandbox/LicenseGenerator/HAWC2LicenseSource',
'load_databaseHS2': 'C:/Sandbox/LicenseGenerator/HAWCStab2LicenseSource',
'log_path': 'C:/Sandbox/LicenseGenerator/LicenseGenerator/CompileFolder\\LicenseGenerator.log',
'set_MS_build_path': '"C:\\Program Files '
'(x86)\\MSBuild\\14.0\\Bin\\MSBuild.exe"',
'set_fp_path_32': 'C:\\lazarus32\\fpc\\3.0.4\\bin\\i386-win32\\fpc.exe',
'set_fp_path_64': 'C:/lazarus/fpc/3.0.0/bin/x86_64-win64/fpc.exe',
'set_working_folder': 'C:/Sandbox/LicenseGenerator/LicenseGenerator/CompileFolder'},
'license_type': 1,
'overwrite_expiry': '01-01-2020'}
-------------------------------------------------------------------------------
License Manager Version:
-------------------------------------------------------------------------------
licence_manager.dll was latest releasted in version: (9, 267)
current licence_manager.dll version: (9, 268)
function [sig,Freq,Time,Flag,Binary] = ReadHawc2(FileName)
% Reads HAWC2 binary and ascii results file
% ------------------------------------------------------------------------
% [sig,Freq,Time,Flag,Binary] = ReadHAWC2(FileName);
% filename should be without extension
% e.g. FileName = '..\res\test'
% output:
% sig: all data in file
% Freq: sampling frequency
% Time: total simulation time in file
% Flag: 0 if file do not exist, 1 if reading scucceed,
% 2 if some data but not for full time span
% Binary: 1 if fils is in binary format, 0 if ascii
% ------------------------------------------------------------------------
% Made by Bjarne Skovmose Kallese
% 24/9-2008
% modified 18/12-2008: file error handelig added
% modified 26/2-2009: error msg for empty date file
% ------------------------------------------------------------------------
%% reading scale factors from *.sel file
fid = fopen([FileName,'.sel'], 'r');
if fid == -1
Flag = 0;
disp(' ')
disp('==============================================================')
disp(['file "',FileName,'" could not be found'])
disp('--------------------------------------------------------------')
sig = [];Freq = 0;Time=0;Binary=[];
return
end
fgets(fid); fgets(fid); fgets(fid); % skip 3 lines
fgets(fid); fgets(fid); fgets(fid); % skip 3 lines
fgets(fid); fgets(fid); % skip 2 lines
tline = fscanf(fid,'%f'); % read line number 9
N = tline(1);
Nch = tline(2);
Time = tline(3);
FileType = fscanf(fid,'%s');
fclose(fid);
Freq = N/Time;
%% Binary data
if FileType(1:6) == 'BINARY'
Binary = 1;
fid = fopen([FileName,'.dat'], 'r');
sig = fread(fid,[N,Nch],'int16');
if isempty(sig)
Flag = 0;
disp(' ')
disp('==============================================================')
disp(['no data in file "',FileName,'.dat"'])
disp('--------------------------------------------------------------')
sig = [];Freq = 0;Time=0;Binary=[];
return
end
ScaleFactor = dlmread([FileName,'.sel'],'',[9+Nch+5 0 9+2*Nch+4 0]);
sig = sig*diag(ScaleFactor);
fclose(fid);
Flag = 1;
%% ascii data
elseif FileType(1:5) == 'ASCII'
Binary = 0;
sig = dlmread([FileName,'.dat']);
if isempty(sig)
Flag = 0;
disp(' ')
disp('==============================================================')
disp(['no data in file "',FileName,'.dat"'])
disp('--------------------------------------------------------------')
sig = [];Freq = 0;Time=0;Binary=[];
return
end
if length(sig(:,1)) < N
Time = length(sig(:,1))/Freq;
Flag = 2;
disp(' ')
disp('==============================================================')
disp(['not full data in file "',FileName,'.dat"'])
disp('--------------------------------------------------------------')
return
end
Flag = 1;
%% error
else
disp('unknown file type')
Flag = 0;
end
\ No newline at end of file
35.5144214958625 29.5684939864991 15.2158328703242
43.1412182536602 33.8543355040905 22.1336947867065
50.8306113514340 38.1758866057919 28.9592494341837
58.5827630329775 42.5332373317874 35.6902171027171
66.3980657354220 46.9265942760961 42.3238662109495
74.2767391820195 51.3560832130918 48.8575914738268
82.2186403479944 55.8216577584564 55.2892251174069
90.2235844553807 60.3232444838603 61.6165716363009
98.2915660681972 64.8608653459722 67.8370298925504
106.422687320737 69.4345932063209 73.9476808942532
114.616847835612 74.0443601826881 79.9458257244552
122.873597496710 78.6899235918954 85.8292440599272
131.192470373458 83.3710625710049 91.5956073922307
139.573179813860 88.0876509868089 97.2421168422394
148.015427656991 92.8395428405575 102.765838185300
156.518685229643 97.6264238776412 108.164162450245
165.082167101091 102.447825861852 113.434877187515
173.705120786901 107.303357632979 118.575514234009
182.386945948792 112.192746969347 123.583068119177
191.126955130094 117.115638947614 128.454554504312
199.924237066328 122.071508386151 133.187358978339
208.777712103729 127.059716342591 137.779124020028
217.686350320652 132.079711129077 142.227124735080
226.649196688825 137.131038898458 146.528144043608
235.665102799414 142.213052540498 150.679327618401
244.732684002952 147.324900942799 154.678357499285
244.732684002952 147.324900942799 154.678357499285
253.850470228154 152.465731585401 158.522911487174
263.017033694612 157.634793481191 162.210227634808
272.230881866710 162.831332924591 165.737415153347
281.490274154963 168.054349073897 169.102318373229
290.793390232651 173.302706170321 172.303005962567
300.138437226575 178.575378891638 175.337063833545
309.523568966274 183.871386819971 178.201853268998
318.946835199926 189.189656092250 180.894894855349
328.406127013149 194.528910990132 183.414342872654
337.899279778380 199.887772257718 185.758535465951
347.424108835346 205.264977696316 187.925344229981
356.978331171424 210.659304180956 189.912577263528
366.559548338585 216.069385178897 191.718577387963
376.165294975425 221.493724589677 193.342120862754
385.793071172977 226.930806881046 194.781993665069
395.440311960242 232.379226020297 196.036651476443
405.104356397654 237.837580289208 197.104778187977
414.782512786510 243.304301694149 197.985791533324
424.472106924630 248.777745465473 198.679220523269
434.170432738309 254.256306828129 199.184495031034
443.874396440180 259.738286071074 199.513622353846
453.580882609827 265.221965020424 199.715297012443
463.288326076531 270.706350377014 199.834998276329
472.996123453661 276.190971560695 199.904824394980
482.704032980045 281.675691200313 199.945198087025
482.704032980045 281.675691200313 199.945198087025
492.411917978394 287.160521287300 199.968453260305
502.119752287957 292.645475449060 199.981831388133
511.827563156709 298.130483415888 199.989526950635
521.535367912759 303.615507215151 199.993955701807
531.243136863519 309.100596972621 199.996506013375
540.950839130306 314.585806518830 199.997975530473
550.658494089750 320.071101268316 199.998822762459
560.366154781144 325.556387233961 199.999311484904
570.073837347682 331.041635779390 199.999593554656
579.781518944355 336.526887282443 199.999756446376
589.489193601396 342.012152256795 199.999850572542
599.196900371787 347.497361532671 199.999904999862
608.904682341169 352.982438796002 199.999936496319
618.612527927561 358.467404478284 199.999954741431
628.320399941179 363.952324332286 199.999965328339
638.028291127849 369.437211125115 199.999971494963
647.736224444890 374.922024147366 199.999975124146
657.444210045204 380.406745347852 199.999977324389
667.152214241102 385.891434270329 199.999978772038
676.860197481052 391.376160836059 199.999979921692
686.568163025892 396.860919185124 199.999981151209
696.276136552176 402.345663780090 199.999982888365
705.984117218347 407.830396018706 199.999985762478
715.692075178308 413.315168635321 199.999990835606
725.399999999999 418.800000000001 200.000000000000
-0.129010086868921 -31.4870860395811 11.6126607958102
-0.127704334711797 -41.4033104047846 16.7465288923145
-0.126393507178933 -51.3495985386637 21.8217240527364
-0.125082316561583 -61.3258172293716 26.8376468187533
-0.123773527287554 -71.3317953932311 31.7937551190530
-0.122466116284106 -81.3673928256993 36.6894268551311
-0.121154360325778 -91.4324497510316 41.5240599449471
-0.119830249711328 -101.526718419133 46.2972182344425
-0.118488033284987 -111.649953871048 51.0084471158974
-0.117126085653325 -121.801939607051 55.6572162591605
-0.115745886202365 -131.982471904527 60.2429493896973
-0.114349836941750 -142.191375596771 64.7649855474100
-0.112939830516979 -152.428479186269 69.2226303847946
-0.111517267299392 -162.693559621421 73.6152828249865
-0.110083716429887 -172.986340234242 77.9424465847419
-0.108640441291179 -183.306565368814 82.2035570181380
-0.107187254358654 -193.653996701704 86.3979850853718
-0.105723428825062 -204.028382120205 90.5251106536364
-0.104249862597318 -214.429530688787 94.5841310362156
-0.102767590594502 -224.857226000411 98.5742728966373
-0.101276033169259 -235.311122497497 102.495070925112
-9.977427914604010E-002 -245.790856222068 106.346091808460
-9.825907255236285E-002 -256.296105195318 110.126769073140
-9.672423493592833E-002 -266.826603673953 113.836351061021
-9.516319451557165E-002 -277.382083549584 117.474054484380
-9.357065068976550E-002 -287.962192963254 121.039302893613
-9.357065068976550E-002 -287.962192963254 121.039302893613
-9.194565807090219E-002 -298.566545520426 124.531562459443
-9.029106861992713E-002 -309.194751805242 127.950351928406
-8.861063201212840E-002 -319.846379959249 131.295266509530
-8.690897182229700E-002 -330.521042809755 134.565737432685
-8.519113330972522E-002 -341.218377464808 137.761083306324
-8.346142416074694E-002 -351.937996176713 140.880666882101
-8.172287535490312E-002 -362.679470086013 143.923956985088
-7.997721766520993E-002 -373.442343267882 146.890489164404
-7.822478027743962E-002 -384.226146467828 149.779821864540
-7.646444870914354E-002 -395.030390243622 152.591565236892
-7.469496297646477E-002 -405.854626896624 155.325141968068
-7.291520344310219E-002 -416.698394713752 157.979991170334
-7.112427767400692E-002 -427.561168589266 160.555778424754
-6.932143802885991E-002 -438.442445477699 163.052053407258
-6.750414289908792E-002 -449.341734212703 165.468279372809
-6.566715258331852E-002 -460.258480806041 167.804169418017
-6.380649264695436E-002 -471.192110834958 170.059517935573
-6.192296897655410E-002 -482.142054522257 172.234086492641
-6.002198173458458E-002 -493.107751422390 174.327573542895
-5.810987320366311E-002 -504.088644868860 176.339633690291
-5.619117074025094E-002 -515.084140219924 178.270107334049
-5.426982310024671E-002 -526.093659361821 180.118729450636
-5.234865569127510E-002 -537.116605468878 181.885328763159
-5.042923950292719E-002 -548.152383941032 183.569708711612
-4.851159840257800E-002 -559.200407740764 185.171604673027
-4.851159840257800E-002 -559.200407740764 185.171604673027
-4.659438665074050E-002 -570.260080830059 186.690763452243
-4.467468892906360E-002 -581.330804783777 188.126974549802
-4.274954882501440E-002 -592.411959143320 189.480155552825
-4.081905847254672E-002 -603.502928248222 190.750181339053
-3.888531267064724E-002 -614.603092141904 191.936956023313
-3.694900462880719E-002 -625.711831953898 193.040366658541
-3.500764242455408E-002 -636.828533161004 194.060240918997
-3.305671433323207E-002 -647.952585745066 194.996322654078
-3.109436949468860E-002 -659.083335357383 195.848874975576
-2.912518326177900E-002 -670.220135749020 196.618146459221
-2.715688203794682E-002 -681.362365758327 197.304085943483
-2.519391121266551E-002 -692.509398871581 197.906736931384
-2.323672816169824E-002 -703.660615884446 198.426024390473
-2.128548478609467E-002 -714.815394522969 198.861926800897
-1.934162060334434E-002 -725.973115522900 199.214331180176
-1.740634834084619E-002 -737.133276190633 199.478143365124
-1.547856351216680E-002 -748.295023644873 199.662741170931
-1.355416644784357E-002 -759.457612592790 199.786144261639
-1.162822333749992E-002 -770.620594739071 199.866217911281
-9.698121769337001E-003 -781.783746358368 199.917241391638
-7.764556480458303E-003 -792.946967243436 199.949487315177
-5.828539312311217E-003 -804.110215403844 199.969944083040
-3.889143926531484E-003 -815.273473978909 199.983253988567
-1.945843757647062E-003 -826.436736375380 199.992532107062
-1.096857360705121E-024 -837.600000000000 200.000000000000
-35.2686394656405 29.8374699823274 15.5782871209793
-42.8957565003523 34.1209905044143 22.4971988652681
-50.5858058159303 38.4403504314964 29.3233659258692
-58.3389493529058 42.7956495858706 36.0544830391872
-66.1555301724567 47.1870779803022 42.6878665558455
-74.0357481042354 51.6147357088859 49.2209330353946
-81.9794377004611 56.0785244647399 55.6515595493795
-89.9863349436835 60.5782853167777 61.9776946339683
-98.0563526772367 65.1139781785897 68.1968781397609
-106.189532838989 69.6856472289444 74.3062893097621
-114.385765364566 74.2932287926402 80.3032410808790
-122.644636456029 78.9364900451409 86.1854570558320
-130.965704904598 83.6151954299522 91.9505845794237
-139.348727477735 88.3292340780155 97.5957456257919
-147.793489404625 93.0785268164622 103.117814246749
-156.299541447486 97.8628352262031 108.513970415987
-164.866147828406 102.681736732217 113.781846879116
-173.492568958735 107.534823315910 118.918926323476
-182.178220073702 112.421804615775 123.922145341839
-190.922419170524 117.342348622545 128.788432121954
-199.724186805301 122.295917309029 133.515250227788
-208.582367028740 127.281839347738 138.100366332196
-217.495870452275 132.299504769855 142.541189219712
-226.463653651945 137.348376340875 146.834740680887
-235.484500025661 142.427808956808 150.978287505116
-244.557006371963 147.536993480893 154.969485937091
-244.557006371963 147.536993480893 154.969485937091
-253.679721496153 152.675079470214 158.805948796576
-262.851252016132 157.841299940708 162.484825296183
-272.070158348617 163.034895657308 166.003057689646
-281.334779003649 168.254930867458 169.358116212093
-290.643282880877 173.500306944709 172.547940522260
-299.993815291883 178.769944296711 175.570279659167
-309.384491600850 184.062816315368 178.422596128007
-318.813305653404 189.377843540373 181.102513428954
-328.278099821126 194.713790551111 183.608189283155
-337.776626388017 200.069290948230 185.938169772550
-347.306644431019 205.443055435168 188.090565436838
-356.865854267479 210.833818139911 190.063340612885
-366.451845721717 216.240197942577 191.854935043897
-376.062149501171 221.660709522586 193.464126223786
-385.694257762599 227.093827096378 194.889807661837
-395.345626633856 232.538127793423 196.130389531490
-405.013628873813 237.992178180883 197.184448871603
-414.695587636301 243.454411995190 198.051235348783
-424.388814757222 248.923211099404 198.730178955123
-434.090582636370 254.396989054964 199.220731407841
-443.797720238991 259.874030376144 199.537858675898
-453.507201074175 265.352692178358 199.730932188006
-463.217532927208 270.832062849766 199.844860473969
-472.928134167416 276.311742943896 199.910960928742
-482.638771366356 281.791627742315 199.948983757846
-482.638771366356 281.791627742315 199.948983757846
-492.349319952800 287.271726433672 199.970773688926
-502.059770961860 292.752029091109 199.983245430512
-511.770177157948 298.232422649242 199.990383693611
-521.480578659357 303.712829599665 199.994471856760
-531.190960014938 309.193275198983 199.996815366132
-540.901305675876 314.673786278456 199.998160135494
-550.611642195153 320.154315526761 199.998932565403
-560.322019726871 325.634773960011 199.999376651728
-570.032441766694 331.115155304601 199.999632179668
-579.742855154308 336.595553682419 199.999779325145
-589.453235115475 342.076012917881 199.999864122482
-599.163617363733 347.556469656455 199.999913027273
-608.874039377260 353.036857411029 199.999941255971
-618.584487280905 358.517200677692 199.999957568098
-628.294919209728 363.997573541807 199.999967011848
-638.005333136283 369.477979496550 199.999972502502
-647.715773826662 374.958339118943 199.999975731916
-657.426258769889 380.438621310942 199.999977695533
-667.136753506698 385.918887016815 199.999979002736
-676.847231683145 391.399182816206 199.999980068408
-686.557717072388 396.879466465640 199.999981246719
-696.268256578599 402.359654732168 199.999982951107
-705.978846454958 407.839754128038 199.999985801886
-715.689434530311 413.319856971579 199.999990855226
-725.399999999999 418.800000000001 200.000000000000
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment