diff options
Diffstat (limited to 'libvxi11client/perlbits/testscript.pl')
-rw-r--r-- | libvxi11client/perlbits/testscript.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libvxi11client/perlbits/testscript.pl b/libvxi11client/perlbits/testscript.pl index f588aaf..45a3d01 100644 --- a/libvxi11client/perlbits/testscript.pl +++ b/libvxi11client/perlbits/testscript.pl @@ -14,7 +14,9 @@ $instr->vxi_write("*IDN?", -1, 0, 0); my ($bytes, $buff, $reason) = $instr->vxi_read(256, 0, 0, 0); print "got " . $bytes . ";" . $buff . "\n"; -$instr->vxi_readstatusbyte(0); +my ($error, $statusbyte) = $instr->vxi_readstatusbyte(0); +printf "status byte is " . $statusbyte . "\n"; + $instr->vxi_create_intr_chan(); $instr->vxi_enable_srq(1, "myhandle"); vxi_wait_for_interrupt(); |