summaryrefslogtreecommitdiff
path: root/libvxi11client/perlbits/testscript.pl
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2013-01-29 14:37:29 -0500
committerMichael J. Chudobiak <mjc@avtechpulse.com>2013-01-29 14:37:29 -0500
commit81053ca6108f03213abeffb60cbb64377ce7509f (patch)
treeecd767ff0128c2a5214d32f689105412432b3245 /libvxi11client/perlbits/testscript.pl
parent45bb6cfe0537dc21a98908241223a2b82bc993df (diff)
more named parameters
Diffstat (limited to 'libvxi11client/perlbits/testscript.pl')
-rwxr-xr-xlibvxi11client/perlbits/testscript.pl14
1 files changed, 7 insertions, 7 deletions
diff --git a/libvxi11client/perlbits/testscript.pl b/libvxi11client/perlbits/testscript.pl
index ac7dd3f..b564977 100755
--- a/libvxi11client/perlbits/testscript.pl
+++ b/libvxi11client/perlbits/testscript.pl
@@ -7,14 +7,14 @@ use VXI11::Client;
vxi_startinterruptserver();
-my $instr = vxi_open("roi", 0);
+my $instr = vxi_open("myipaddr");
-$instr->vxi_lock(0);
+$instr->vxi_lock();
$instr->vxi_write("*idn?");
my ($bytes, $buff, $reason) = $instr->vxi_read();
print "got " . $bytes . ";" . $buff . " reason " . $reason ."\n";
-my ($error, $statusbyte) = $instr->vxi_readstatusbyte(0);
+my ($error, $statusbyte) = $instr->vxi_readstatusbyte();
printf "status byte is " . $statusbyte . "\n";
$instr->vxi_create_intr_chan();
@@ -26,10 +26,10 @@ for (my $i = 0; $i < 10000; $i++) {
$instr->vxi_disable_srq();
$instr->vxi_destroy_intr_chan();
$instr->vxi_abort();
-$instr->vxi_clear(0);
-$instr->vxi_trigger(0);
-$instr->vxi_local(0);
-$instr->vxi_remote(0);
+$instr->vxi_clear();
+$instr->vxi_trigger();
+$instr->vxi_local();
+$instr->vxi_remote();
$instr->vxi_unlock();
$instr->vxi_close();