summaryrefslogtreecommitdiff
path: root/libvxi11client/perlbits/testscript.pl
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-23 13:17:52 +0900
committerdaniel <danieruru@gmail.com>2013-01-23 13:17:52 +0900
commitc53ea096ab5a656f93ad2aed8d50f5dd346f91c3 (patch)
tree5dbd48863285fe0a6f6f19fbd4b916d6ce7b4cde /libvxi11client/perlbits/testscript.pl
parent63f018d9d0a4b1ae11f9adb6f5bd3c9315b00130 (diff)
Update docs, add the "global" functions to the export list, add the reason from read to the stuff that gets returned.
Diffstat (limited to 'libvxi11client/perlbits/testscript.pl')
-rw-r--r--libvxi11client/perlbits/testscript.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/libvxi11client/perlbits/testscript.pl b/libvxi11client/perlbits/testscript.pl
index b487ab4..440035d 100644
--- a/libvxi11client/perlbits/testscript.pl
+++ b/libvxi11client/perlbits/testscript.pl
@@ -3,19 +3,19 @@ use warnings;
use VXI11::Client;
-&VXI11::Client::vxi_startinterruptserver();
+vxi_startinterruptserver();
-my $instr = &VXI11::Client::vxi_open("roi", 0);
+my $instr = vxi_open("roi", 0);
$instr->vxi_lock(0);
$instr->vxi_write("*IDN?", -1, 0, 0);
-my ($bytes, $buff) = $instr->vxi_read(256, 0, 0, 0);
+my ($bytes, $buff, $reason) = $instr->vxi_read(256, 0, 0, 0);
print "got " . $bytes . ";" . $buff . "\n";
$instr->vxi_readstatusbyte(0);
$instr->vxi_create_intr_chan();
$instr->vxi_enable_srq(1, "myhandle");
-&VXI11::Client::vxi_wait_for_interrupt();
+vxi_wait_for_interrupt();
$instr->vxi_enable_srq(0, "");
$instr->vxi_destroy_intr_chan();
$instr->vxi_abort();
@@ -27,4 +27,4 @@ $instr->vxi_unlock();
$instr->vxi_close();
-&VXI11::Client::vxi_stopinterruptserver();
+vxi_stopinterruptserver();