NAME
Lab::Moose::Connection::Debug - Debug connection, printing / reading on terminal
VERSION
version 3.850
SYNOPSIS
use Lab::Moose;
my $instrument = instrument(
type => 'DummySource',
connection_type => 'DEBUG'
connection_options => {
verbose => 0, # do not print arguments of all Write commands (default is 1).
}
);
DESCRIPTION
Debug connection object. Print out Write
commands and prompt answer for Read
commands.
METHODS
Write
If the connection option verbose is set, output the content of all write commands to the terminal. Otherwise, do nothing.
Read
Output the arguments of the read command to the terminal, and request a response there, which is given as result of the read.
Query
Output the arguments of the query command to the terminal, and request a response there, which is given as result of the query.
Clear
Output "Clear called" on the terminal.
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
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.