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

Similar Messages

  • Obtaining Screenshot from Spectrum Analyzer - Not able to view the image created

    Hello,
    I am using the following code snippet in my program to get the screen shot from  Agilent Spectrum Analyzer , I am able to get a gif image created in the location specified but when i opened it I could not see any result.
    Please help out . I also tried with Interactive Utility still the same result , Am i missing something here or is there anything for me understand . please let me know.
    ibwrt(DeviceHandle,":MMEMTORCR 'CICTURE.GIF'",30);
    ibwrt(DeviceHandle,":MMEMATA? 'CICTURE.GIF'",28);
    ibrdf(DeviceHandle,"C:\\PICTURE.GIF");
    Thanks
    Meeran

    Dear Bala,
    I have got about 8 to 10 DC's out of which only this one is showing the missing structure and as this dc is being used by other dc's I am getting the error like missing component.  Previously we were using the client desktop and doin the work now we have shifted it to our individual systems.  Now any project I am creating whether from same track or different same problem comming the structure is missing.
    Regards,
    Ganesh
    Edited by: Ganesh Sawant on Sep 8, 2009 9:42 AM

  • LabView drivers for Agilent 54830B scope or E4402B Spectrum Analyzer?

    Where can I find LabView drivers for the Agilent 54830B scope and the E4402B spectrum analyzer, or at least a driver for another instrument in the same families that I could modify? There are none on the NI site or the Agilent site.

    One thing that I have done several times is get a LabWindows CVI
    driver from Agilent. You will be provided with a .fp file. LabVIEW
    has a link under the Tools>>Instrumentation menu that allows you to
    "Import CVI Instrument Driver." This will take the function calls
    from CVI and build a set of VI's with the same name. The vi's will be
    wrappers for a dll that is used by CVI and other text based languages.

  • Agilent ESA Series Spectrum Analyzer (E4448A) - Can not initialize.

    I have downloaded the drivers for the Agilent ESA series Spectrum Analyzers from NI and I am having trouble just running the initialization VI.
    I am currently trying to run the VI called: agesa initialize With Options.vi on Labview 7.0 Express
    This is the error I receive:
    agesa Initialize With Options.viDriver Status: (Hex 0xBFFF0015) Primary Error: (Hex 0xBFFF0015) Timeout expired before operation completed.
    It looks like the Spectrum Analyzer does do a few things (Changes Carrier Frequency to 50 MHz), but it's getting hung up somewhere else.
    If I highlight execution, the error comes out of the Call Library Function Node elaboration output in the aforementioned VI.
    Here are the settings of the VI I have:
    Settings:
    id query: true
    reset device: false
    Option string: Simulate=0,RangCheck=1,QueryInstrStats=2,Cache=1 (The default)
    Resource Name: GPIB0::16:INSTR
    Any help anyone could provide would be appreciated. Keep in mind, I am fairly new at this. Thanks.
    From NI Spy (Numbers 20 and 22 with the ">" are the error lines):
    Note: This post can only be 5000 characters, so I have deleted a few of the steps:
    7. viWrite (0x001D6008, "*IDN?", 5, NULL)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.822 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    8. viRead (0x001D6008, "Agilent Technologies,...", 511, 50)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.822 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    9. viWrite (0x001D6008, "YSTPT?", 10, NULL)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.822 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    10. viRead (0x001D6008, ""226".", 512, 6)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.822 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    11. viPrintf (0x001D6008, "%s?")
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.832 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    12. Formatted viWrite (0x001D6008, "*IDN?", 5, 5)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.832 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    13. viRead (0x001D6008, "Agilent Technologies,...", 512, 50)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.832 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    14. viPrintf (0x001D6008, "*CLS;*ESE 1;*SRE 32")
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.832 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    15. Formatted viWrite (0x001D6008, "*CLS;*ESE 1;*SRE 32", 19, 19)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.832 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    16. viPrintf (0x001D6008, ":CALC:LLIN:CMOD FIX")
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.832 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    17. Formatted viWrite (0x001D6008, ":CALC:LLIN:CMOD FIX", 19, 19)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.832 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    18. viPrintf (0x001D6008, ":CALC:MARK:FCO:RES:AUTO %s")
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.832 Call Duration: 00:00:00.010
    Status: 0 (VI_SUCCESS)
    19. Formatted viWrite (0x001D6008, ":CALC:MARK:FCO:RES:AU...", 26, 26)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.832 Call Duration: 00:00:00.010
    Status: 0 (VI_SUCCESS)
    > 20. viQueryf (0x001D6008, "%s?", "%hd")
    > Process ID: 0x00000388 Thread ID: 0x00000728
    > Start Time: 09:10:37.842 Call Duration: 00:00:17.085
    > Status: 0xBFFF0015 (VI_ERROR_TMO)
    21. Formatted viWrite (0x001D6008, ":BAND:RES:AUTO?", 15, 15)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:37.842 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    > 22. Formatted viRead (0x001D6008, "", 4000, 0)
    > Process ID: 0x00000388 Thread ID: 0x00000728
    > Start Time: 09:10:37.842 Call Duration: 00:00:17.085
    > Status: 0xBFFF0015 (VI_ERROR_TMO)
    23. viClose (0x001EC548)
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:54.927 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)
    24. viStatusDesc (0x00000000, 0xBFFF0015, "Timeout expired before oper...")
    Process ID: 0x00000388 Thread ID: 0x00000728
    Start Time: 09:10:54.927 Call Duration: 00:00:00.000
    Status: 0 (VI_SUCCESS)

    Well, I don't seem to have that option on the E4448A, here's what i do have:
    System -> Config I/O ->
    GPIB Address
    IP Address
    Host name
    Subnet Mask
    Gateway Address
    SCPI LAN
    Under System -> Config I/O -> SCPI LAN ->
    SCPI Telnet
    SCPI Socket
    SICL Server
    None of the above stuff seems applicable if I am only using GPIB?? I tried modifying some of the options above, didn't seem to help.
    Here's some more information in the Error History on the Spectrum Analyzer:
    -420, Query UNTERMINATED, &ltErr>
    -113, Undefined header, :BAND:&ltErr&gtRES:AUTO?
    The above looks like #21, and the error, #22, is right after it. Any idea what that means?
    I'm going to try it on another computer... More to come!

  • 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

  • ADVANTEST 3131A SPECTRUM ANALYZER AND labVIEW

     Hello, 
     Trying to control R3131A spectrum analyzer connected through GPIB-USB-B and my laptop using Labview8.5. 
     I want to read frequency(Hz) from R3131A,and i want to send my measurments to an exel file ... 
     I have install the labview 8.5,the Measurment and Automation for finding my instrument and i have download the Advantest R3131A Drivers-libraries  from  that page  ....                    http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=82   and then i install it in  Instrument I/O>Instrument Drivers palette.    I have read the examples code who coming with the drivers but i don't know which example  can help me...                                                                                                                                                                                                                                                                                                                                                                                      If someone knows something,or have an example code who doing that or other help,please send a message..                                                                                          thanks!..

    The typical way to make a measurement on any instrument is as follows:
    1.  setup the instrument for the measurement. 
    2.  carry out the measurement.
    3.  store result in a file
    1. In this case, you want to setup the instrument to carry out a frequency measurement.  Although I am not familiar with the Advantest SA, I'm sure it should be similar to the Agilent or Rohde & Schwarz SA.  So you first need to set the span wide enough to find the Center Frequency that you want to measure.  Then place a peak marker and set the center to the peak value.  You then narrow the span in order to improve your measurement.  Most likely adjust your resolution (BW) and place a peak marker.  You have now setup the instrument for the measurement.  The example should contain what you need to accomplish this.  Otherwise the user manual should give you the instructions on how to create the commands.
    2. You can read the values associated with the marker which will give you the frequency and amplitude.  There should be seperate instructions for these.  So you can read the frequency by itself.  There should be an example of this as it is a very basic measurement.
    3.  Storing the results... to Excel..  -sigh-  Most people refer to Excel, but end up needing to use a different function.  In any case, are you writing to an existing Excel Spreadsheet which already has information in it?  If not, you can use the "Write to Spreadsheet File.vi".
    R

  • Spectrum analyzer gui example

    I am trying to construct a GUI to control and display an Agilent E4408B spectrum analyzer.
    I have created a serial connection to the spectrum analyzer and have managed to control it and query for frequency and power using SCPI commands
    sent across the serial link, so I know the serial connection works.
    However I am getting nowhere in trying to make a GUI using Labview. I have downloaded the drivers and there seem to be bits of the functionality I need
    but I do not know how to "hook up" the serial connection to these bits.
    Does anyone have an example of a similar applcation in Labview? It does not need to be an agilent specan, any instrument that has driver supprot and uses serial communication would be a good example.
    Many thanks!

    Hi NIer,
    I am new to Labview and trying to build a GUI controlling Agilent E4408B using GPIB-USB-HS. I have downloaded the driver (plug and play) from NI website however the downloaded document makes me confused where to start. Would you mind sending me a proper tutorial document please? Any suggestion will be highly appreciated!
    I need this to be done urgently and hope you can help!
    Thanks a lot!
    Yang 

  • "agesani Initialize With Options" timeout error on HP E4401B spectrum analyzer

    System: Windows XP Pro, LabVIEW 7.1, IVI Compliance Package 3.0, NI-VISA 4.1
    I have an HP E4401B Spectrum Analyzer.  I'm trying to write some LabVIEW code for it, using the agesani.llb library.
    When I try using the agesani Initialize With Options VI, I get the following error:
    Error code: BFFF0015
    Source: agesani Initialize WIth Options.vi<ERR>Driver Status: (Hex 0xBFFF0015) Primary Error: (Hex 0xBFFF0015) Timeout expired before operation completed.
    I've searched the NI Knowlege Base, and haven't found anything that seems useful.  What I _have_ found are the following items.
    Knowlege Base article "Time-Out Error with the Agesa Instrument Driver Example".  This refers to the agesa drivers, not the agesani drivers.  It also references an E4440A spectrum analyzer, not an E4401B.  The article says one cause could be that a compatibility mode other that SCPI is in use.  While the articles says how to fix this on an E4440A, the fix does not appear to apply to the E4401B.  In fact, if it is even _possible_ to have a mode other than SCPI on an E4401B, I can't figure out how to do it.  A second possibility the article suggests is that the spectrum analyzer is in Phase Noise mode rather than Spectrum Analyzer mode.  My E4401B is in SA (spectrum analyzer) mode.  I don't even see a way to put it in any other mode - I don't think the required options are installed.  Finally, my VI is configured as the article states - ID Query YES, Reset Device YES, etc.  I should note that the instrument's GPIB address is 18, and that this matches the resource name GPIO0::18::INSTR.
    Some additional information: The spectrum analyzer's screen is indicating the instrument is in Remote (R) mode as a Talker (T).  A "Query UNTERMINATED" error message appears at the bottom of the instrument screen.
    I've attached the results of a NI Spy capture to this message. (At least, I think I have. I've never tried doing this before, so if it doesn't show up, would some kind soul tell me how to include an attachment to my post?)
    Oh, yes.  The agesani version is driver version 1.1, updated 17 Aug 2007.  (The version that's currently on the NI download site.)
    Attachments:
    Capture4.spy ‏9 KB

    Hi MXI Master,
    If there's an instrument timeout, I haven't been able to find it yet.  Seems like there should be, so maybe I just haven't looked in the right place yet.  As for the timeout value on the computer, I'm not sure what you mean by this - could you elaborate, and maybe tell me where to find it?
    As far as SCPI mode, if it's possible to put the E4401B in something _other_ than SCPI mode, I haven't figured out how.  I can't find any support in the programming manual for anything other than SCPI.
    That kind of seques into my next couple points.  The NI Spy output indicates that one of the commands that is being sent is "*SRE 32".
    The "User's & Programmer's Reference" for the E4401B says (on page 206) "Send the *SRE <number> command (where <number> is the sum of the decimal values of the bits you want to enable plus the decimal value of bit 6).  [Bit 6 is the Request Service (RQS) Summary Bit.  BP]  For example, assume that you want to enable bit 7 so that whenever the operation status summary bit is set to 1, it will trigger a service request.  Send the *SRE 192 (128 + 64) command."
    This statement would seem to imply that the "*SRE 32" command that is being sent by the agesani "Initialize With Options" command is an illegal command, or at best an ineffective command.  In light of that, it is interesting to me that the NI Spy output indicates that the next line , viQuery(GPIB::18::INSTR (0x246E9C8), "%s?","%ld"), is generating an 0xBFFF0015 error.  In addition, I can find neither the "%s?" nor the "%ld" commands listed in the Programmer's Reference.  I wonder if these could be for a firmware revision later than mine (A.01.03), or for instrument options I don't have (A4H, A4J).  Alternatively, I wonder if these are simply mistakes.
    The next line in the NI Spy output, Formatted viWrite(CPIB0::18::INSTR (0x0246E9C89),"INST:NSEL?",11,11), also puzzles me.  The Programmer's Reference indicates that this is a supported command, to see what instrument application is currently selected.  (e.g. spectrum analyzer, GSM, Bluetooth, EDGE, noise figure, etc.)  However, when I try to issue this command to my instrument, by using the Instrument I/O Assistant Express VI, I get an "Undefined header" error on the instrument's front panel.  The instrument's error history shows the same "Undefined header" error.  Since my instrument only has the basic spectrum analyzer option installed, I wonder if this command is not valid?  (Personally, I wouldn't write instrument firmware code this way, but who knows?)  Alternatively, I wonder if this command requires a firmware revision more recent than mine.  (The Programmer's Reference is silent about this possibility.)
    The next line in the NI Spy output, Formatted viRead(GPIB::18::INSTR (0x0246E9C8),"",4000,0), has another 0XBFFF0015 error associated with it.
    Does this information shed any more light on the situation?

  • Spectrum analyzer project

    Hi every 1,
    I need help in my univ project the problem is that,
    I want to apply a check on some specific fault related
    frequencies so that when ever the amplitude at that frequencies exceed some threshold value a warrning message appear with description of most probable cause of fault.
    but I dont know how to apply this check.
    I am attaching the programe for anyone intrusted in helping.
    Thanks
    Attachments:
    Spectrum Analyzer.VI ‏392 KB

    Your 'by the way' is probably the reason you are having problems. Enable tulip support in MAX for VISA and see if it works then.
    There have been numerous posts on getting an agilent controller to work with LabVIEW. Do a search for '82357'.

  • Spectrum Analyzer GPIB Record and Save to AVI, MPEG, or MP4 file

    My objective is to record a waveform using labview and save it as an AVI, MPEG, or MP4 file to be able to replay it back at a later time.
    I would like to know if it is possible to capture a waveform for 30 to 60 second and save it as an movie format file.
    I have Labview 2013 version, Spectrum Analyzer N9010A and GPIB-USB-HS.

    Start by looking for the LabVIEW driver for your instrument. There may be something in there for capturing your waveform.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • Query ID for HP8562A Spectrum Analyzer

    Hi,
    I'm just having some trouble communicating with my HP8562A Spectrum Analyzer. I tried sending the query "*IDN?" but it cannot read it (probably due to the age of the analyzer). I'm looking around for the query that the analyzer can understand but have had no luck so far. If anyone has had any experience with this instrument and communicating with it using GPIB, any help would be greatly appreciated.
    Cheers. 
    Solved!
    Go to Solution.

    I use an Agilent 8563EC and I use "ID?" with a VISA Write node.  I use "*IDN?"  for IEEE 488.2 compliant equipment. Note that pre-IEEE 488.2 equipment do not use the "*<query>?" form? It can be anything the manufacturer decided for their equipment. In this case, HP used "ID?" with no star/asterisk.
    Cheers!
    Aldrin

  • Spectrum Analyzer using Swept Frequency

    Using the AWESOM example foundhere:
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/433c2cbc5a1c4a49862569500035f715?OpenDocument
    Give the person who wrote that an A+. I want to replace the FIR filter with a REAL device. I want to send a swept sin wave (just like the original) and then read the response from the Analog Input channel. I put a vi in place of the vi called :IIR Filter for 1 Chan.vi. Go to the NI ftp site to ge t the file named ZZDMKSin.zip (I could not get the file attachment to work within this post) The symptom is the Frequency Response does not get any data that can be seen...
    In the end I simply want to put a REAL UUT in place of the FIR filter. This would turn the VI into an equi
    v of a $30,000 spectrum analyzer! Sooooo cool!
    Any help would be greatly appreciated. My e-mail is [email protected]
    Thanks,
    Dave

    Dave;
    I'm not quite sure if I understood your application, but by my understanding you want to replace one of the Filter VIs by a VI that does data acquisition from a real external device.
    The first thing you might want to double check is the data acquisition VI by itself. Set up the system with the external device and with the data acquisition VI only. Make sure the VI is acquiring data as expected.
    After that done, make sure that the data acquisition VI output is outputing the same data type that is expected at the output of the IIR Filter.vi.
    I believe that either one of the previous issues might be the answer.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • Spectrum analyzer with sim and DAQ IV File

    Hello..
    i have a project that i need to design a Spectrum analyzer with simulation mode and DAQ option. ( so you can generate input signal from LabView and DAQ.
    all i look for is a modern Spectrum anlyzer VI file for reference and education purposes
    i know there are examples out there in LabView but, i need a modern one with a lot of options and features ( like Impulse respond, marker... filters.....)
    there is something i found here on the website, it happen long time ago, and some proffessor from Vietnam created such project. its not with DAQ, but its great for me.
    here is the link:
    http://digital.ni.com/worldwide/singapore.nsf/web/all/42B390E4624228D486257249001A5349
    this kind of Spectrum anlyzer looks great
    most appreciate for any help

    Hi Eldad,
    Thanks for posting and welcome to the NI forums!
    The
    application you have linked uses LabVIEW to control a Tektronix TDS220
    over RS232 (a.k.a. serial port).  The TDS220 has a 1GHz sample rate
    with a 100 MHz bandwidth--the specs on our DAQ devices don't go nearly
    this high, our High Speed Digitizers
    would be a better option if you need something comparable.  Also, the
    programming of the two devices (TDS220 vs. DAQ) is going to be quite
    different, so I am not sure how helpful the code from the link would be
    for your application.  I don't have access to the code or permission to
    post it here, but you could always try contacting the original author
    (his contact info is in the link you provided, not sure if it's up to
    date or not).  Again, I'm not really sure how helpful the code would be
    for you.
    You might want to take a look at the following example to see if it does what you need:
    NI-DAQmx: Benchtop Spectrum Analyzer
    There
    are also numerous examples that are installed with the DAQmx Driver to
    help you get started with the API.  You can access them from LabVIEW by
    going to:
    Help >> Find Examples... >>  Hardware Input and Output >> DAQmx
    There
    may not be a ready-made example that will do everything that you
    require, but the above should give you a good starting point for
    implementing the necessary features yourself.  If you run into any
    specific issues while trying to program, please don't hesitate to post
    to the forum and we'll be more than happy to help out.
    -John
    John Passiak

  • GPIB readout from spectrum analyzer HP4195a

    Does someone know how I can readout a HP 4195a spectrum analyzer with GPIB? I have a GPIB-USB cable. I can't readout the flopy disk from the spectrum analyzer in my PC.
    Thanks, Ruben

    Hi
    I have a very old "generic" driver for this one
    see attachment
    greetings from the Netherlands
    Attachments:
    hp_network_analyzer.zip ‏408 KB

  • Trying to acquire from Spectrum Analyzer CATV measurment​s.

    I am using an Agilent E4402B Spectrum Analyzer and can't seem to find any code that would help on the path of acquiring data from the Spectrum Analyzer. Need to acquire Carrier level and frequency, Depth of Modulation, and aural deviation. Currently using Techtronix Spectrum Analyzer and CSS 500 software with GPIB interface. Techtronix no longer makes the software and the scope I am using is not supported any longer for calibration or repair.

    Just have to go to the Instrument Driver Network and download it. An IVI driver is available here.

Maybe you are looking for