LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Agilent 4395a driver connection

Is the anyone who has connected labview with of the installed agilent drivers though labview that would be able to give some guidance on how to resolve some errors and help get it connected? 

 

Thanks 

0 Kudos
Message 1 of 13
(2,311 Views)
0 Kudos
Message 2 of 13
(2,280 Views)
  • Which Agilent instrument are you using (which model number)?
  • Have you downloaded and installed the right driver? You should be able to find the driver on the LabVIEW Instrument Driver portal .
  • Once installed, most drivers come with example VIs. You can find the example VIs in two ways: in LabVIEW, select "Help" on the menu bar, then select "Find examples..." A new window named "NI Example Finder" should appear. Use it to find the Agilent driver examples. Alternatively, use Windows File Explorer to manually find the VIs inside the LabVIEW examples folder, which is found at <LabVIEW folder>\examples. For example, for LabVIEW 2021 32-bit the folder is: C:\Program Files (x86)\National Instruments\LabVIEW 2021\examples 

P.S.
Only now noticed that the model number was mentioned in the title (4395a), and Gregory's link.

0 Kudos
Message 3 of 13
(2,279 Views)

Connecting via GPIB This is the set up and driver I'm using:

 

mmcinnes2021_0-1663766613353.pngmmcinnes2021_1-1663766625664.png

The driver was installed through labview. NI MAX says the instrument is connected but when I run the VI above I get these two pop ups:

 

mmcinnes2021_2-1663766692545.png 

mmcinnes2021_3-1663766711393.png

Not sure how to fix these. Any ideas?

 

0 Kudos
Message 4 of 13
(2,246 Views)

Can you share your code and screenshot of NI MAX showing this instrument?

0 Kudos
Message 5 of 13
(2,240 Views)

I concur with Gregory. A screenshot of MAX would be helpful.

In the Error 28 popup the true error message is "Interface has lost power." You can ignore the "LabVIEW: Null menu" message.

(For some error codes, such as 28, LabVIEW displays two error messages or explanations. The first is for when the error is generated in the LabVIEW environment itself, the second is for when the error is generated by a GPIB function/driver call).

Searching online for "Interface has lost power" might help. For example, the following articles:

Strangely, one of the solutions in the second article is "Disable standby and hibernate modes on the PC." 1.png

 

Questions

  • Which USB-to-GPIB interface device are you using?
  • Using MAX, are you able to get a reply from the instrument when issuing an *IDN? command? ( GPIB/USB/Ethernet Instrument Does Not Respond to *IDN? Query - NI )
  • Do you have any other laptop or desktop computer that has LabVIEW and/or MAX installed? What happens when you try that computer?
0 Kudos
Message 6 of 13
(2,226 Views)

HI Gregory I have attached the code. 

0 Kudos
Message 7 of 13
(2,201 Views)

her is the NI MAX screenshot:

mmcinnes2021_0-1663842028928.png

And I'm using the GPIB to USB from NI:

 

mmcinnes2021_1-1663842110202.jpeg

 

I'm just using my laptop for this set up.

 

0 Kudos
Message 8 of 13
(2,196 Views)

Wow, that driver is a mess! My condolences you have to work with that.

 

I did see a Global VI titled "dev_addr.vi". Did you try setting that to your GPIB address of 17? You can use "edit >> make current values default" so it keeps that value.

0 Kudos
Message 9 of 13
(2,181 Views)

Hi Gregory,

 

sorry for the late reply, I have been away on holiday.

 

The driver I sent you is from NI website. Do you have a driver for the Agilent that you wouldn't mind sharing?

0 Kudos
Message 10 of 13
(2,102 Views)