summaryrefslogtreecommitdiff
path: root/libvxi11client/perlbits/testscript.pl
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-23 22:25:41 +0900
committerdaniel <danieruru@gmail.com>2013-01-23 22:25:41 +0900
commit609cb1e17a9ab8edf1ccab42574b44bc1439aeb7 (patch)
treec4c41ab2ad0e922966e0af8d33a90bffd50ab224 /libvxi11client/perlbits/testscript.pl
parent5d66712261026f3f2da0958d98d60fb2142feedd (diff)
fix the handling of int getting passed back.. returning the address of the int is not what we want.
Diffstat (limited to 'libvxi11client/perlbits/testscript.pl')
-rw-r--r--libvxi11client/perlbits/testscript.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvxi11client/perlbits/testscript.pl b/libvxi11client/perlbits/testscript.pl
index 45a3d01..5af15d3 100644
--- a/libvxi11client/perlbits/testscript.pl
+++ b/libvxi11client/perlbits/testscript.pl
@@ -7,12 +7,12 @@ use VXI11::Client;
vxi_startinterruptserver();
-my $instr = vxi_open("192.168.0.62", 0);
+my $instr = vxi_open("roi", 0);
$instr->vxi_lock(0);
$instr->vxi_write("*IDN?", -1, 0, 0);
my ($bytes, $buff, $reason) = $instr->vxi_read(256, 0, 0, 0);
-print "got " . $bytes . ";" . $buff . "\n";
+print "got " . $bytes . ";" . $buff . " reason " . $reason ."\n";
my ($error, $statusbyte) = $instr->vxi_readstatusbyte(0);
printf "status byte is " . $statusbyte . "\n";