Agilent 4395a impedance analyzer

Hello,
we have an impedance analyzer AG4395a with a GPIB 488.2 that we would like to control using labview. I have been looking for drivers for this instrument and found two. One of them doesn't work and it seems impossible to solve the problem without understanding basic progammation. Moreover, none of the drivers does exactly what we mean to do. It seems that the only two drivers that I can use is the initialize.vi and close.vi. My problem is that I know what we want to do (plot the parameters (R, L, C) of the fitting of the conductance as a function of time) but I have no idea of what type of drivers (if they already exist) I have to use between the initialize.vi and the close.vi. Any help will be welcome because I really feel lost!!!!
Thank you

Dennis Knutson wrote:
Well, that's not a plug and play driver. And, there is no VI called Mode in there.
In general, you would connect the Instrument Handle Out of one VI to the Instrument Handle In of the next VI you want to call. Do the same thing with error out of VI one to error in of VI 2. This is just basic LabVIEW dataflow and you really need a basic understanding of that and LabVIEW in general before you do anything.
Of course some VI have more inputs and outputs than others. It's like parameters in a function call in text based programming languages. For example, the Initialize function has inputs called ID Query and Reset Device. If you want the function to query the instrument for it's ID information, you would wire a Boolean true to this input. If you don't want the instrument to reset, you would wire a boolean false to that input. What you wire and what values you pass will depend on how you want to program the device. In LabVIEW, you should have context help turned on and as you move your mouse over a control/indicator, the help window will discribe what the control/indicator is.
You really do have to understand the instrument, the programming of it, and LabVIEW itself. There are no shortcuts .
It's kind of a weird situation because once you understand the instrument, the programming of it and LabVIEW itself, you don't really need the drivers, because by then you can write your own custom ones. 
Bill
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

Similar Messages

  • Reading and Writing files to external controller with Agilent 4395A

    Hi everyone,
    I have been trying to store the Agilent 4395A Analyzer Compensation Files in an external controller, and then writing them back into the 4395A while running a program. I'm doing this because the 4395A's internal memory and disk storage are not large enough to store all the files I need. I know that the files are binary, and that they can only be read 16kB at a time (the maximum dump by the analyzer). I also know that each dump comes with a specific header that describes how long the dump is.
    My problem is that when I read the files, I believe that something is being corrupted - either by the internal workings of LabVIEW or something in my program. In particular, I notice that when I attempt to use the "Write to Binary File" vi something is being added to the file that I had not intended. At the beginning of the file I notice the string of characters "  @" being added. I know that the analyzer is not giving me these characters so I suspect that LabVIEW is adding them somehow.
    If anyone has any idea about where these extra characters may be coming from, or if you have previous experience with the read/write with the 4395A, any suggestions would be appreciated.
    I have attached an image of the program which saves the files. It is pretty simple, and the only spot where data is actually being read is in the while loop.
    Thank you!
    Matt
    Attachments:
    4395A_SaveFile.jpg ‏2287 KB

    Changing the extension of a bitmap file to get around the prohibition of posting them, is really inappropriate behavior. Use paint to save them as either jpg or png.
    Your problem is probably because the default behavior of the Write to binary File is to prepend array or string size. This is an input to the function and is explained in the on-line help. Turn on Context help and click on 'Details'.

  • Instrument driver for Agilent E5061A network analyzer

    Is there a instrument driver for the Agilent E5061A network analyzer ? I couldn't find one neither on NIs Instrument Driver Network nor on Agilents site.
    We are using Labwindows/CVI as development system.

    Yes we are talking about the same driver, but i dont know why hp871x.c file was removed. However, hp871x.h and hp871x.fp are included.
    Anyhow, look this comment into hp871x.cpp file:
    In addition, if WIN32 is defined, _CVI_ may also be defined to indicate that the program is being compiled under LabWindows CVI.....
    I guess it is not so hard to modify this source code (from hp871x.cpp to hp871x.c). Sorry for disturb you!!!
    "Only a life lived in the service to others is worth living..." - Albert Einstein

  • How to use IMPEDANCE ANALYZER to measure input $ output impedance of BJT circuit

    Am currently doing experiments by using NI ELVIS IMPEDANCE ANALYZER but am now suffering a problem on how I can connect it so as to measure input and output impedance of a BJT circuit.
    My circuit is as shown in my attachment.
    Attachments:
    ni.docx ‏46 KB

    I see that you already posted on another thread. Please refer to it here:
    http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/HOW-TO-USE-ELVIS-IMPEDANCE-ANALYZER-TO-MEASUR...
    Regards,
    Nathan S.
    Applications Engineer
    National Instruments

  • Does digital output conflict with impedance analyzer

    I am running one program that produces three digital outputs on DO [0..2] and I am also trying to run the Impedance analyzer at the same time. I get this error message:
    Error -200429 occurred at DAQmx Write (Digital 1D Bool 1Chan 1Samp).vi:1
    Possible
    reason(s):
    Value passed to the Task/Channels In control is an
    empty string (or I/O control).
    The value must refer to a valid
    task or valid channels.
    I'm not sure what this means, but does it have anything to do with a conflict in hardware when running digital outputs and impedance analyzer?
    Any help would be great, I am relatively new at LabVIEW/ELVIS.
    Thanks in advance
    -Shane

    Shane,
    It sounds to be more a referencing issue than an issue between the DIO and impedance analyzer. Sounds like it may not be calling to the correct channel.
    Heres some troubleshooting steps:
    Can you communicate with the ELVIS board in Measurement and Automation Explorer (MAX)? 
    If so, can you use one of our example files to try to do some DIO? 
    If that works, try to comment out the impedance analyzer step to make sure it isn't causing the issue. You can comment things out by using the diagram disable structure, which is under programming->structures. 
    Regards,
    Kyle Mozdzyn
    Applications Engineering
    National Instruments
    Regards,
    Kyle M.
    Applications Engineering
    National Instruments

  • Impedance Analyze

    Hello it's  my first post. 
    I have piezoelectric bender actuator(in attachment  picture). I want to make bender's impedance analyze with  DSOX3014A Oscilloscope , 33521AQ Function / Arbitrary Waveform Generator  and Labview.
    What do you think about this project ?  What do you suggest me about it ?
    Thank you for your time and attention.
    *I am really beginner in LabVİew. If you suggest any document or tutorial , ı will be appreciate.
    Solved!
    Go to Solution.
    Attachments:
    20150203_231732_Richtone(HDR).jpg ‏840 KB

    First of all, look for LabVIEW drivers, and setup/test communications with the devices from LabVIEW. Second, start learning LabVEW, it is going to be painful if you want to do a project without any basic level in this programming language. Here you find resources to start your learning:
    http://forums.ni.com/t5/LabVIEW/Idiom-for-initialising-a-sub-VI/m-p/3086564/highlight/true#M882347
    When you are able to communicate with your devices, and you understand how to use the different functions, you can start planning what you want to do with your piezo-sensors. In that part, I cannot help you.
    Drivers:
    http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=9E84674573AF6AB8E0440021287E6A...
    http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=9AAF830ED6FD1947E04400144FB7D2...
    But double check if these are the drivers you need...

  • Looking for a serial driver for an agilent 4395A to work with labview

    Can only find one for gpib I have no interface for gpib on my PC but i do have a rs232/gpib converter and was wondering if I could get a serial driver for the agilent 4395A for this.
    Thanks

    I've only used the RS232/GPIB converter to go from a GPIB bus to a serial instrument so I can't speak for going the other direction but I would give it a try. However, you have big problems with the driver if its the same one I just downloaded from NI. It's not really what I would call a driver at all but an application program meant to be used stand alone. There is no breakout of instrument functions into subVIs and none of the controls or indicators are on the connector so you can't even use the high level app as a subVI without a lot of work. It is a contributed driver but I'm surprised NI accepted it because it doesn't follow any of the published rules for an instrument driver. It's not even a good example of program design, imho. There is a VISA dr
    iver available from Agilent here and I would try that instead. To use a VISA driver with a serial port, you just specify the VISA resource name for that port instead of the GPIB resource name. For example, a GPIB resource name of an instrument with an address of 5 would be "GPIB::5::INSTR". To communicate to your instrument over com port 1, the VISA resource name is "ASRL1::INSTR". If the instrument has a serial port in addition to the GPIB, you could also try skipping the converter. Some VISA drivers work fine either way.

  • Record data taken by NI ELVIS impedance analyzer

    I need to display data taken by the impedance analyzer VI (magnitude and phase which are used to find resistance and reactance) in chart form in a given time interval (in addition to the polar graphic displayed currently). Also, when the program is terminated, the data should be saved to a spreadsheet. I am having trouble recording each variable in a separate column in both the spreadsheet and the chart. Apparently they need to be separate channels.

    So, are you just needing a "log" option within the impedance analyzer? If so, then I would suggest to modify the impedance analyzer source code to write the data to a spreadsheet file.
    The source code VI for the impedance analyzer can be found within the ...\Program Files\National Instruments\NI ELVIS 1.0\Source Code\Impedance Analyzer directory. You could add the Write to Spreadsheet File VI to the program to create a VI that would log the data to a spreadsheet file.
    I hope this helps.
    Regards,
    Todd D.
    NI Applications Engineer

  • How to program Agilent E5071C network analyzer with USB connection

    Hello,
    I am trying to program the Agilent E5071C Network Analyzer in Labview. I'm going to have it connected through USB, I don't know where to begin. I have the Drivers installed from the NI website, but i don't know where to go from there.
    Thank You

    duplicate post

  • Agilent E440x Spectrum Analyzer screen capture?

    Does anyone have a LabView VI to do a screen capture of an Agilent E440x Spectrum Analyzer.  I would like to capture a .gif or .jpg of the exact SA screen image.  I did not see a command in Agilent's manual to do this directly - I can save to the SA hard drive but want to save to the PC.

    jm-sc wrote:
     did not have any luck wiring the byte count output of the VISA write to the VISA read byte count input.
    Thanks Dennis,
    I think old age is catching up to me!!     I missed that part of the sentence earlier...  sorry about the confusion.  I agree that wiring the output of the VISA Write to input of VISA read would not worked.. 
    My interest with this thread is the fact that we were unsuccessful (~2001) to achieve this.  I'm curious in a solution that works.  From what I recall, it was possible to control the instrument to get a screen capture, but was not possible to transfer it over GPIB.
    It's always good to learn new tricks. 
    JLV

  • Impedance Analyzer Sweep Getting Interrupted

    Hi Everyone,
    I am working on a LabView program for an impedance analyzer which finds a peak and records data around the frequency the peak is located at. While collecting data about a certain peak it is also designed to continue tracking that peak because the peak is not constant. 
    This program works in LabView Version 7, but this is not the case in Version 8.5. In 8.5, it looks like that the program begins sweeping (the little cursor on the display begins moving across the display) but gets interrupted and stops sweeping. This does not prevent the program from recording data - data is definitely being recorded. However, what this prevents us from doing is tracking the peak; eventually, the peak drifts off the span of the impedance analyzer and any data we collect is useless.Something I've noticed is that if I put LabView in "highlight execution" mode, the program works perfectly fine - no more interruptions! I'm not sure what is interrupting the sweep in normal mode - I'm relatively new to
    LabView and attempted to use a WAITSRQ VI to remove any interruptions,
    but this just ends up timing out.
    While I have attempted tackling the problem from a programming point of view, the fact that this program works in version 7 but not 8.5 seems to indicate that it might not be a programming issue but rather something with the versions.
    I have attached two files that may be helpful for anyone that looks at the problem. Mainly the problem is occuring when the control goes to the "Agilent4294APeakTracker_twochannel" file.The main file is the 4395A_no_curve_fit.vi file. If you have any questions about the program or anything I've been unclear about, please feel free to ask!
    Thank you for your help!
    Matt
    Attachments:
    4395A_no_curve_fit.vi ‏81 KB
    Agilent4294APeakTracker_twochannel.vi ‏38 KB

    Remember that this is all for your own good.  I am surprised this program ever worked correctly.  Dataflow, dataflow, dataflow.  The sequence structures you are using perform no function.  There is no coordination between your sub-vi and the main VI.  Your are sending commands from both VI's with no flow of the timing.  Review dataflow programming and clean up the VI, then you will be able to troubleshoot.

  • I get an labview.ex​e applicatio​n error when i use the driver of 4395A spectrum analyzer

    i have the message:unhandled exception in labview.exe(HP4395A_32.dll):0xc00000005:access violation.
    could you help me?

    This error can be caused by many things. The first step in getting an instrument driver to function is the "Getting Started.VI"
    Be sure the GPIB controller can establish communication to the device. Also, capturing with NI-Spy will help isolate any VISA errors.
    Randy Solomonson
    Application Engineer
    National Instruments

  • Agilent Spectrum Analyzer USB Issues

    We are using an Agilent N9320 Spectrum Analyzer with USB communication. 
    I am seeing the SA lose communication with the rack about every 25 th run or so, requiring the operator to reboot the device.  This si getting really annoying fast.  I am not having issue with any of the other Agilent USB equipment attached to the rack.  We have tried going from a powered USB hub, to just plugging the SA in directly to the computer.
    When it "loses" communication, the red Remote light is still light, but you cannot send it any commands, it does not respond.
    I tried doing both the reinitialize the connection after each test run or only once per opening of the application.
    Has anyone else had any issues with this equipment?
    Kenny

    Are you using the driver from the link below to control your device?
    http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=60ED9B6E489D2045E0440003BA7CCD...
    What version of NI-VISA do you have installed?
    Try to reproduce the problem while NI I/O trace is running, so you can log the driver calls. You can take a look at the KB below to learn how to perform a trace:
    http://digital.ni.com/public.nsf/allkb/282C5D41E2BA04F2862574BA007803B9
    Wan L
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Labview to signal analyzer N9010A Agilent signal analyzer

    Hi,
    I have filtered signal in Labview, which i wish to see in Agilent EXA signal analyzer, N9010A. Is there any drivers/support softwares for interfacing , using  which i can send this signal through USB cable to the signal analyzer and view it in signal analyzer display. 
    Thank you in advance.
    Livingstone
    Solved!
    Go to Solution.

    No. The signal input is not via the usb port. You really don't seem familiar with the instrument.

  • Problems concerning Agilent 89410A programming

    Hey!
    I have a problem concerning Agilent 89410A signal analyzer programming.
    The timeout error (-1073807339) and bundle error (-1074003951) pop up during the "Initialize.vi" execution. The time out error exist in the VISA Read part of the VI.
    "The given session or object reference is invalid" error (-1073807346) pops up during "Application.vi" and "Close.vi" executions.
    Agilent´s "analyzer address" is set to 16" Should I set something else to specific value?
    What to do? I need a piece advice!
    (please, step by step)

    Hi,
    The -1073807346 error shows that you may be using the wrong resource descriptor.
    The first thing you need to do is determine if you are able to communicate with the instrument. Connec the instrument to the GPIB board and power on. In MAX, select "Scan for Instruments". If the instrument is detected (with the ID string) it means that the GPIB communication is working.
    Next, open a interactive VISA session. In MAX right-click on the instrument entry and select "Open VISA session". The interactive VISA control will open. Click on the Basic I/O and see if you can perform a Basic read nad write. The control uses the exact same functions used by the instrument driver. If it work, then you'll need to look at your VI.
    Use the instrument driver Ge
    tting Started VI and see if you can run it. Make sure you are using the right resource descriptor. The resource descriptor should be GPIB::. id is the number that shows up in MAX for the different GPIB interfaces (GPIB0, GPIB1, etc).
    Finally, if it doesn't work, troubleshoot the driver using LabVIEW's debugging facilities, such as highlight execution and NI Spy.
    NI-Spy toturial
    DiegoF
    National Instruments

Maybe you are looking for