Subject: | RE: bug - long headers not completely read |
Date: | Tue, 11 Apr 2017 17:26:20 +0000 |
To: | "bug-Parse-Tektronix-ISF [...] rt.cpan.org" <bug-Parse-Tektronix-ISF [...] rt.cpan.org> |
From: | Donald Locker <Donald.Locker [...] pi-innovo.com> |
I should have included the offending header line:
:WFMPRE:NR_PT 10000;:WFMPRE:BYT_NR 2;BIT_NR 16;ENCDG BINARY;BN_FMT RI;BYT_OR MSB;WFID "Ref1, DC coupling, 5.000V/div, 400.0us/div, 10000 points, Sample mode";NR_PT 10000;PT_FMT Y;XUNIT "s";XINCR 400.0000E-9;XZERO -2.0000E-3;PT_OFF 0;YUNIT "V";YMULT 781.2500E-6;YOFF 0.0E+0;YZERO 0.0E+0;VSCALE 5.0000;HSCALE 400.0000E-6;VPOS 0.0E+0;VOFFSET 0.0E+0;HDELAY 0.0E+0;DOMAIN TIME;WFMTYPE ANALOG;CENTERFREQUENCY 0.0E+0;SPAN 0.0E+0;REFLEVEL 0.0E+0;:CURVE #520000
followed by binary: 0xff 0x00 0x06 0x00 0x0c 0x00 ........
Regards,
Donald.
From: Donald Locker
Sent: Tuesday, April 11, 2017 12:59
To: 'bug-Parse-Tektronix-ISF@rt.cpan.org'
Subject: bug - long headers not completely read
ISF.pm version 0.0103 reads the header (at line 87) then generates the header keys from that. The header in the .isf file I received from a customer is approximately 450 characters long, so the read F, $header, 269 does ont get all header keys/values and reports "Use of uninitialized value in subtraction (-) at Parse/Tektronix/ISF.pm line 98." once for each data point. Changing the 269 to 511 allowed all header keys/values to be read and I successfully parsed the file.
Windows 7; Active State Perl 5.22.2, ISF.pm; "\n=head VERSION\nnVersion 0.0102\n\n=cut\n\nour $VERSION = '0.0103';"
Thank you for the nice little tool - saved my day!
Donald.
[Macintosh HD:Users:louhackett:Desktop:ACTE2017-AdBanner-728x90-static.jpg]<http://www.actexpo.com/register>