Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

specify board/device names in gpib drivers 2.5 for linux

Hi,

I have installed the NI4882beta-2.5.1b1 driver for linux operating system on a new PC and the driver seems to work well.

 

Previously I used to work with an older PC in which the drivers were "nigpib-linux-0.8.6". On that PC I developed "C" programs to control instruments, that I would like to use also with the new one.

 

On that PC I have used the "ibconf" program to define device name and addresses.

However on this new drivers there is no more this program and I don't know how to proceed to define the addresses and the names in order to use the "ibfind" function. 

 

How can I solve the problem?

 

Thanks 

0 Kudos
Message 1 of 9
(4,949 Views)

udine,

 

When using the NI 488.2 2.5 driver, you will configure your GPIB interfaces using the GPIB Explorer utility.  Please refer to the ReadMe located at http://ftp.ni.com/support/softlib/gpib/linux/Linux%20Beta/readme.txt for more information.

 

The ibconf program and other text-based utilities are not part of the new driver.  We have transitioned into a graphical utility with the GPIB Explorer.  The 0.8.6 driver is still available at ftp://ftp.ni.com/support/gpib/linux/ but it is not compatible with the 2.6 kernel.

 

 

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer
0 Kudos
Message 2 of 9
(4,918 Views)

The gpibexplorer for the linux operating system does allow only to add new GPIB interfaces and does not allow to add instruments as in the case of  the gpib explorer for windows. This is also reported in the User manual of the gpib interface.

How can define the device names in linux operating system?

 

Regards

0 Kudos
Message 3 of 9
(4,906 Views)

udine1,

 

I believe that ibdev is the command you are looking for.  An ibdev call will return a device handle.

 

Device level ibfinds with device templates are no longer part of our 488.2 support.

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer
0 Kudos
Message 4 of 9
(4,892 Views)

I solved the problem editing by hand the file gpib.ini in which I specified the names of my instruments.

So now I can used the ibfind function and everything seems to work fine.

 

0 Kudos
Message 5 of 9
(4,882 Views)

Hi,

 

can you help me?  I just want to know on how to change the device name of the instrument that is connected

to my GPIB1?

 

Im working in a semicon company, and our computer are using two GPIB card, GPIB0 is for the system DVM's

and GPIB1 is for the Prober.

 

Here is the Problem: when the prober is connected to GPIB0 we can load the program and the computer can recognized the Prober that is connected to GPIB0.

 

But when we connect the Prober to GPIB1, we encountered communication time out. based from the logs the error is ENOL 2 <no listener>.

 

by edting the testware .cshrc

 

setenv TW_GPIB prober:1   this the default set-up using GPIB0 ( no error encountered)

 

But when we edit the testware .cshrc file to connect the Prober to GPIB1:

 

setenv TW_GPIB dev15:1

setenv TW_GPIB_BOARD 1:0     

 

We encountered communication hung up.

 

Here are my questions:

 

1. how can I change the device name of the instrument connected to GPIB1.

 

 [] because they changed thed device name from prober (GPIB0) to dev15 (GPIB1)

 [] im using ni488.2 ver2.5 linux

 

2. Im geting an ENOL error, how can I fix this?

3. can I edit the gpib.ini?

4. how to use the ibconfig command

5. does the device name can affect in communicating with the instrument?

 

Thanks and hoping that you can help me.

 

Joel

0 Kudos
Message 6 of 9
(4,437 Views)

Hello Joel,

 

Have you used the GPIB explorer? It gets installed with the GPIB driver for Linux and it will allow you to change the GPIB address of each instrument. This way you do not have to touch the ini file.

 

Thanks,

 

Anna K.

National Instruments
0 Kudos
Message 7 of 9
(4,391 Views)

Hi,

 

 

I've already check the GPIB explorer, it only showed the the GPIB interface cards but not the instruments connected to it. is there a way or tool that I can use to check or verify the instrument being controlled by the GPIB0 and GPIB1?.

 

 

Thanks again for the help.

 

 

Joel

0 Kudos
Message 8 of 9
(4,380 Views)

Hello, if your instruments respond to *IDN? then you can query them. You could also try disconnecting one. Do you see a serial number listed for the GPIB card in GPIB explorer? You could use that to match to the physical card.

National Instruments
0 Kudos
Message 9 of 9
(4,355 Views)