NAME
Lab::Moose::Instrument::SCPIBlock - Role for handling SCPI/IEEE 488.2 block data
VERSION
version 3.871
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.
block_length
my $read_length = $self->block_length(
num_points => $num_points,
precision => $precision
);
Calulate block length for use in read_length
parameter.
set_data_format_precision
$self->set_data_format_precision( precision => 'double' );
Set used floating point type. Has to be 'single' (default) or 'double'.
COPYRIGHT AND LICENSE
This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
Copyright 2016 Simon Reinhardt
2017 Andreas K. Huettel, Simon Reinhardt
2020 Andreas K. Huettel, Sam Bingner
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.