Lab::Moose::Instrument::SCPIBlock - Role for handling SCPI/IEEE 488.2 block data
version 3.631
So far, only definite length floating point data of type 'REAL' is supported.
See "8.7.9 <DEFINITE LENGTH ARBITRARY BLOCK RESPONSE DATA>" in IEEE 488.2.
my $array_ref = $self->block_to_array( binary => "#232${bytes}"; precision => 'double' );
Convert block data to arrayref, where the binary block holds floating point values in native byte-order.
my $read_length = $self->block_length( num_points => $num_points, precision => $precision );
Calulate block length for use in read_length parameter.
read_length
$self->set_data_format_precision( precision => 'double' );
Set used floating point type. Has to be 'single' (default) or 'double'.
This software is copyright (c) 2018 by the Lab::Measurement team; in detail:
Copyright 2016 Simon Reinhardt 2017 Andreas K. Huettel, Simon Reinhardt
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Lab::Measurement, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Measurement
CPAN shell
perl -MCPAN -e shell install Lab::Measurement
For more information on module installation, please visit the detailed CPAN module installation guide.