
helium_ninja
New User
Apr 11, 2011, 2:11 PM
Post #1 of 4
(1753 views)
|
@INC, use linuxgpib
|
Can't Post
|
|
Hey all, So I'm having some trouble using my National Instrument USB-GPIB cable to do some testing at work, I'm fairly new to the perl language but can manuver around fairly well. So I guess my main problem is when i try to compile my testing code i get the following errors
Can't locate LinuxGpib.pm in @INC (@INC contains: /tester/Filters /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at runTcProbe_Trisensor.pl line 10. BEGIN failed--compilation aborted at runTcProbe_Trisensor.pl line 10. Which I'm certain is because the lib "linuxgpib" is not in the location it looks for the library. My first step was to look for the linuxgpib library which i found at the following http://linux-gpib.sourceforge.net/ downloaded and unpacked, the problem is I do not see anything called linuxgpib inside this unpacked file as well I'm not sure I can tell my program to look at this new directories for the lib Here is the first few lines of code
use lib "$ENV{HOME}/Filters"; use LinuxGpib; #use hp34401a_subs; #qw(init_dmm); can't get these to work!!!ARGH #require Erins_perl_stuff; #qw(do_nothing); use Graphics::GnuplotIF qw(GnuplotIF); my $device1="AGILENT-34401A"; # name from /etc/gpib.conf addr 21 thermometer my $device2="AGILENT-34411A"; # name from /etc/gpib.conf addr 22 sample my $dev1 = LinuxGpib::ibfind($device1) || die "Can't open device $device!\n"; Does anyone have any suggestions of what i should try next?
|