Andreas K. Hüttel > Lab-VISA-3.02 > Lab::VISA::Installation

Download:
Lab-VISA-3.02.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

Lab::VISA::Installation - Installation guide for Lab::VISA

Introduction ^

Lab::VISA has been tested to work on Linux and Windows, both with ActiveState Perl and the Microsoft VC++ Compiler, and Strawberry Perl with the included gcc compiler.

Installation on Windows XP with ActiveState Perl ^

Installation on Windows XP with Strawberry Perl ^

Strawberry Perl is a Perl distribution for Windows that most closely mimics a Perl installation under Linux. It comes with gcc compiler, dmake and the other relevant tools included.

Lab::VISA should in principle install out of the box with just the command

        cpan Lab::VISA

executed on the commandline. Unfortunately there is a bug in ExtUtils::MakeMaker (see here) that prevents this. Two possible workarounds are explained below.

Installation on Linux ^

As a Linux user you will probably be able to figure out things yourself. Here is a rough outline:

Testing the installation ^

Here is a quick test program that you can run with perl -Mblib test.pl:

    #!/usr/bin/perl
    
    use Lab::VISA;
    
    my ($status, $sesn) = Lab::VISA::viOpenDefaultRM();
    
    printf "status: %x (%s)\n", $status, (($status == $Lab::VISA::VI_SUCCESS) ? "success" : "no success");
    print "sesn: $sesn\n";
    
    my ($status, $findList, $retcnt, $instrDesc) = Lab::VISA::viFindRsrc($sesn, "ASRL1::INSTR"); 
    
    printf "status: %x (%s)\n", $status, (($status == $Lab::VISA::VI_SUCCESS) ? "success" : "no success");
    print "findList: $findList\n";
    print "retcnt: $retcnt\n";
    print "instrDesc: $instrDesc\n";
    
    __END__

COPYRIGHT AND LICENCE ^

(c) 2010,2011 Daniel Schröer, Andreas K. Hüttel, Daniela Taubert, and others. 2012 Andreas K. Hüttel

syntax highlighting: