Lab::Moose::Instrument::SCPI::Format - Role for SCPI FORMat subsystem.
version 3.681
# 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(); print "format: $format->[0], len: $format->[1]\n";
Set/Get data format.
$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.
This software is copyright (c) 2019 by the Lab::Measurement team; in detail:
Copyright 2016 Simon Reinhardt 2017 Andreas K. Huettel, Simon Reinhardt 2018 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.