projects:logger

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
projects:logger [2013/03/12 14:47] photonicsguyprojects:logger [2013/03/13 13:41] photonicsguy
Line 2: Line 2:
  
 ===== Software ===== ===== Software =====
 +Program is on it's way, writing it now.
 +
 [[http://www.live-graph.org/|LiveGraph]] - Excellent graphing software written in Java [[http://www.live-graph.org/|LiveGraph]] - Excellent graphing software written in Java
-<file bash> alias livegraph="java -jar /opt/LiveGraph.2.0.beta01.Complete/LiveGraph.2.0.beta01.Complete.jar"</file>+
 ==== Perl Script ==== ==== Perl Script ====
 + 
 === Install === === Install ===
  
Line 11: Line 14:
 sudo cpan -i LWP::Simple sudo cpan -i LWP::Simple
 sudo cpan -i Time::HiRes sudo cpan -i Time::HiRes
 +
 </file> </file>
 === Files === === Files ===
Line 20: Line 24:
  
 $DataFile='/tmp/monitordata.lgdat'; $DataFile='/tmp/monitordata.lgdat';
 +</file>
 +
 +<file perl bytetest.pl>#!/usr/bin/perl
 +$num=pack( 'L>',120000);
 +#$buf="Pear";
 +$buf="\x00\x00\x00\x01$num\xff\xff\xff\xff\x00\x00\xff\xffPear";
 +print "Test data:\t$buf\n";
 +#$buf=[hex('00'),hex('00'),hex('00').hex('01')];
 +#$buf="ABCDEF";
 +#my @data = unpack('L>*', $buf);
 +
 +@values=unpack "L>*", $buf; # < or > specifies endianness
 +#print $values;
 + foreach my $val (@values) {
 +    print "$val\n";
 +  }
 </file> </file>
  • projects/logger.txt
  • Last modified: 2014/11/13 10:50
  • by 127.0.0.1