Device::DSE::Q1573 - Read data from DSE Q1573 Digital Multimeter
use Device::DSE::Q1573; my $meter = Device::DSE::Q1573->new("/dev/ttyS0"); my $reading = $meter->read(); my $reading = $meter->rawread();
Sets up a connection to a DSE Q1573 or Metex ME-22 Digital Multimeter, and allows you to read measurements from it. The data return is 14 bytes of the format:
Type:Data:Units eg reading when temperature is selected on the meter will return
"TE 0019 C "
Usage : my $meter=Device::DSE::Q1573->new("/dev/ttyS0") Purpose : Opens the meter on the specified serial port Returns : object of type Device::DSE::Q1573 Argument : serial port
Usage : my $meter->rawread() Purpose : Returns the 14 byte string from the meter.
Usage : my $meter->read() Purpose : Returns a hash of values for the reading: { setting => setting eg TE for temperature value => value read eg 14 units => units read eg C for celsius }
use Device::DSE::Q1573;
my $meter = Device::DSE::Q1573->new( "/dev/ttyS0" );
while(1) { my $data = $meter->read(); print $data->{value} . "\n"; sleep(1); }
David Peters CPAN ID: DAVIDP davidp@electronf.com http://www.electronf.com
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl(1).
To install Device::DSE::Q1573, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::DSE::Q1573
CPAN shell
perl -MCPAN -e shell install Device::DSE::Q1573
For more information on module installation, please visit the detailed CPAN module installation guide.