Lab::Moose::Connection::Socket - Transfer IEEE 488.2 / SCPI messages over TCP socket.
use Lab::Moose; my $instrument = instrument( type => 'random_instrument', connection_type => 'Socket', connection_options => {host => '132.199.11.2', port => 5025}, );
This connection uses IO::Socket::INET to interface with the operating system's TCP stack. This works on most operating systems without installing any additional software (like NI-VISA).
It supports both newline terminated messages of arbitrary length and definite length block data, which is needed to transfer binary data from e.g. spectrum analyzers, oscilloscopes and VNAs (IEEE 488.2 Sec. 8.7.9).
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.