NAME
Lab::Moose::Instrument::SCPI::Block - Role for handling SCPI/IEEE 488.2 block data.
DESCRIPTION
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.
METHODS
block_to_array
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.
set_data_format_precision
$self->set_data_format_precision( precision => 'double' );
Set used floating point type. Has to be 'single' (default) or 'double'.