#!/bin/perl

do "parameters.pl";


# Open the file for reading.
open DATA, "usbscopes" or die "can't open usbscopes $!";
my @data = <DATA>;
close (DATA);

@Time=0;
open FH, ">Photod_dp.csv";
for ($i = 0; $i < $LineCount; ++$i)  
{
    @row = split(' ',$data[$i]);
    $Time+=$DeltaT;
    printf FH "%3.2f;%4.3f\n",$Time,-1*$row[3];
}
close (FH);

