Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using 82357a in CVI Windows

Hi,
Attached is my code when using the NI PCMCIA-GPIB card. Can someone help to convert the below to use with the Agilent 82357A? Thanks.

// -------------------
// GPIB Configuration
// -------------------
//board = ibfind ("gpib0");
if (board < 0)
MessagePopup ("GPIB STATUS", "Device not found."); return 0;

ibsic (board); // Clear GPIB board
ibsre (board, 1); // Enable remote line

// GPIB address assigning.
hp4284a = ibdev (0, 17, NO_SAD, T10s, 1, 0);

// Checking for presence of GPIB devices
ibln (board, hp4284a_pri_adr, NO_SAD, &hp4284a_status);

if (hp4284a_status==0)
{
MessagePopup("GPIB DEVICE STATUS","HP4284A is switched OFF.\nPlease check your device!");
return 0;
}

// Clearing devices
ibclr(hp4284a);
0 Kudos
Message 1 of 9
(5,877 Views)
I don't know what the gpib commands Agilent supports but I do know that they have a VISA library. These commands are the same as the VISA commands in CVI. I believe that all of your gpib command have a VISA equivalent (ibsre = viGPIBControlREN, ibln = viRindRsrc, ibclr = viClear). Once you've converted it to VISA, then your program will work with both the NI board and the Agilent one.
0 Kudos
Message 2 of 9
(5,863 Views)

Please help.  I am using the "82357A" and the "Devices and Interfaces" menu does not show the USB/GPIB device  "82357a".  The note says that adding the "Tulip" passport would make it be recognized by MAX.  This is not working for me.

NI visa and Agilent visa Interactive controls boths show the GPIB resources i.e "GPIB0:4:INSTR" for my instrument connected to the "82357" USB interface.  NI-MAX also sows the this Alias in the MAX-Software-Visa menu.  The problem is that LabWindows CVI Function Panels that are base on gpib 488.2 can not find the device.  If I use a function panel that uses the IVI, those panels work.  I do not have IVI style function panels for all my instruments.

I have an IVI style Function Panel for Agilent 34970A.

I need an IVI style Function Panel for HP 3488A switch control unit.

I need an IVI style Function Panel for  HP 3478A DMM.

OR... I need a way for my older 488.2 based fuction panels to recognize the devices connected to the "82357A" interface for GPIB.

HELP

The old function panels use "ib...." type function calls.  You are saying I could modify the source code for the function panel and fix the my old function panels?

 

 

0 Kudos
Message 3 of 9
(5,597 Views)

Hi Carlos,

The issue with the Agilent GPIB board not showing up in MAX is a known issue that will be fixed with the release of NI-VISA 3.6 in a few weeks.  With NI-VISA 3.5 you can still use the Agilent GPIB board in your application, it just doesn't appear in MAX.

I also want to clarify that you cannot use the NI-488.2 driver with the Agilent GPIB board, only VISA can be used.  The LabWindows/CVI function panels you are referring to are for NI-488.2 which only works woth our GPIB products.  Here's a link to an example on how to communicate with GPIB using VISA.

0 Kudos
Message 4 of 9
(5,573 Views)
How do I get back the "Simulation Driver Software MOdules".  I remeber having the following available and I have not been able to get them back:
  • DMM
  • Funciton Generator
  • Scope
  • Switch

I believe Max installs a set of these and somehow I lost them.  I have tried to re-install Max and newer IVI and Visa packages and they are still gone!

These items use to be in one of the " Instrument Driver Software Modules" OR "Simulation Drier Software Modules" OR "Simulation Driver Sessions".

 

Let me know how to fix these.  Thannks

0 Kudos
Message 5 of 9
(5,542 Views)

The IVI Class Simulation drivers are part of the IVI Driver Toolset (IDT) distribution. You will need to reinstall the IVI Driver Toolset to get the simulation drivers back.  

Thanks.

 

0 Kudos
Message 6 of 9
(5,529 Views)

  I understand.  Could you tell me which CD in Particular?  Should they be in the Driver CD's?  I will try agian.  The tool set installs but it still does not restore the simulators.  I will post again if I can figure out how to fix it.  Hope you tell me how before. then.

 

Thanks.

0 Kudos
Message 7 of 9
(5,497 Views)
Hi Carlos,
 
The IVI Driver Toolset is actually a separate CD purchase, and is not included on the Driver CD.
0 Kudos
Message 8 of 9
(5,481 Views)

 


@michael C wrote:
Hi Carlos,
 
The IVI Driver Toolset is actually a separate CD purchase, and is not included on the Driver CD.
 
 


This KnowledgeBase explains that the simulation drivers will be included with the next release of the IVI Compliance Package, and the separate purchase will no longer be necessary.  If you already have had them in the past, then you should have an installation cd for the IVI Driver Toolset as Michael mentioned.


 
0 Kudos
Message 9 of 9
(5,466 Views)