NAME
Lab::Moose::Instrument::SCPI::Format - Role for SCPI FORMat subsystem.
VERSION
version 3.920
METHODS
format_data_query
format_data
# set to binary single precision
$instr
->format_data(
format
=>
'REAL'
,
length
=> 32);
# set to binary double precision
$instr
->format_data(
format
=>
'REAL'
,
length
=> 64);
# set to ASCII, 10 significant digits
$instr
->format_data(
format
=>
'ASC'
,
length
=> 10);
my
$format
=
$instr
->cached_format_data();
"format: $format->[0], len: $format->[1]\n"
;
Set/Get data format.
format_border_query
format_border
$instr
->format_border(
value
=>
'NORM'
);
# or 'SWAP'
Set/Get byte order of transferred data. Normally you want 'SWAP' (little-endian), which is the native machine format of the measurement PC.
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by the Lab::Measurement team; in detail:
Copyright 2016 Simon Reinhardt
2017 Andreas K. Huettel, Simon Reinhardt
2018 Simon Reinhardt
2020 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.