gestione file D2W
This commit is contained in:
@@ -504,6 +504,13 @@ elsif ( $filecsvname =~ m/^G201_ID\d\d\d\d_DT\d\d\d\d_\d*_\d*$/i ) {
|
|||||||
$fileTime = $strings[6] . ":" . $strings[7] . ":" . $strings[8];
|
$fileTime = $strings[6] . ":" . $strings[7] . ":" . $strings[8];
|
||||||
$tooltype = 'MUX';
|
$tooltype = 'MUX';
|
||||||
}
|
}
|
||||||
|
elsif ( $filecsvname =~ m/^D2W_ID\d\d\d\d_DT\d\d\d\d$/i ) {
|
||||||
|
my @strings = $filecsvname =~ /(.{1,3})_(.{1,6})_(.{1,6}).*/;
|
||||||
|
$unittype = $strings[0];
|
||||||
|
$unit = $strings[1];
|
||||||
|
$tool = $strings[2];
|
||||||
|
$tooltype = 'D2W';
|
||||||
|
}
|
||||||
|
|
||||||
while ( my $line = <FILE> ) {
|
while ( my $line = <FILE> ) {
|
||||||
my ( $first, $NodeData ) = split( /;/, $line, 2 );
|
my ( $first, $NodeData ) = split( /;/, $line, 2 );
|
||||||
@@ -544,7 +551,7 @@ while ( my $line = <FILE> ) {
|
|||||||
$G201_fcheck = 1;
|
$G201_fcheck = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $tooltype eq "MUX" ) {
|
if ( $tooltype eq "MUX" or $tooltype eq "MUX" ) {
|
||||||
|
|
||||||
#$NodeData =~ s/Dis\./N\/A/g;
|
#$NodeData =~ s/Dis\./N\/A/g;
|
||||||
@NewData = grep /\S/, split( /\||;/, $NodeData );
|
@NewData = grep /\S/, split( /\||;/, $NodeData );
|
||||||
|
|||||||
Reference in New Issue
Block a user