NAME
Lab::Moose::Connection::Socket - Transfer IEEE 488.2 / SCPI messages over TCP socket.
SYNOPSIS
use Lab::Moose;
my $instrument = instrument(
type => 'random_instrument',
connection_type => 'Socket',
connection_options => {host => '132.199.11.2', port => 5025},
);
DESCRIPTION
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).