Optical Spectrum Analyzer

Dear all,
I am encountering troubles relating to controlling optical spectrum
analyzer.. I follow exactly the commands in programming user guide but
it turns out many errors. So, is there anyone here having some
experiences with OSA controller? Could you help me?
Thank all
Solved!
Go to Solution.

Yes, I tried to appen both termination characters: carriage return and linefeed.
For example:
This is the original command for instruments: " CENTERWL 950NM; SP 20NM;" and when I wrote it to VISA write, it does not work.
When I append \n, or \r at the end of each command above, it still does not work
I enclosed the manual for your consideration.
Attachments:
70950-90050-HP 71450B-Optical Spectrum Analyser-Programmer Guide.pdf ‏3647 KB

Similar Messages

  • Where can I download a LabVIEW GPIB driver for an ANDO AQ6315E Optical Spectrum Analyzer?

    Where can I download a LabVIEW GPIB driver for an ANDO AQ6315E Optical Spectrum Analyzer?
    Thanks.
    Solved!
    Go to Solution.

    The Instrument Driver Network has all the drivers for instruments. There is no driver specific to that model, but there is one for the 6310B. Perhaps that may work for you. You may need to modify it. If not, you will need to write one yourself. You can get a lot of material for this here: http://www.ni.com/devzone/idnet/development.htm

  • How to read the data in spectrum analyzer (Anritsu MS2661C) and put it in Excel using Labview

    Hi all, I'm new to using the labview, and I have some trouble doing my project using the labview software.
    I have been trying to use the spectrum analyzer (Anritsu MS2661C) which connect to computer using the GPIB connection.
    I have got the instrument driver which can write and control the instrument using Labview 2010.
    and my Question is how do read the data or result from the spectrum analyzer and send it to the microsoft excel?
    Do I need to use other software or programming to do this step?
    If anyone know how is this done, please let me know.
    Regards,
    Ery

    Hi ery,
    In order to send data that you have read in from an instrument to Excel, the most convenient way to do this would be to use our Report Generation Toolkit.  The Report Generation Toolkit is a very useful tool that allows you to interface to Microsoft Office software from LabVIEW, including Word and Excel.  I am not sure if you are familiar with this, but I have attached a link that explains more about the Report Generation Toolkit below.  
    Another way would be to use the Write To Spreadsheet File VI.  While this will store your data to a spreadsheet data file, it will not allow you to programmatically perform any Excel formatting like the Report Generation Toolkit offers.  I have also attached a link to some information on the Write To Spreadsheet VI below.  
    Also, be sure to check out the Example Finder in LabVIEW for a number of examples on how to write data to a spreadsheet file.  From LabVIEW, you can go to Help»Find Examples to launch the Example Finder.  From there, you can search for "spreadsheet," which should populate examples for use in different applications.  I hope this helps, ery.  Please let me know if you have any further questions about these!
    NI LabVIEW Report Generation Toolkit for Microsoft Office
    Write To Spreadsheet File VI 
    Taylor G.
    Product Support Engineer
    National Instruments
    www.ni.com/support

  • How to capture a .gif file from a spectrum analyzer and save the file in PC

    I want to capture a .gif file from a spectrum analyzer and save the file in PC, but I've got a problem when read data from the instrument. I'm not sure how to format the string got from the instrument , When I use "%s" or "%t" as the read string format the data got from the instrument is truncated.
    my code are as follows, could anyone tell me where i am wrong?
    char resultsArray[5000];
    viPrintf(hSpectrumInstr, ":MMEMTORCR 'CICTURE.GIF'\n");
     viQueryf(hSpectrumInstr, ":MMEMATA? 'CICTURE.GIF'\n", "%t", resultsArray);
     printf("%s", resultsArray);
     getchar();       
    Solved!
    Go to Solution.
    Attachments:
    readResult.docx ‏50 KB

    char resultsArray[5000];
    viPrintf(hSpectrumInstr, ":MMEMTORCR 'CICTURE.GIF'\n");
    viQueryf(hSpectrumInstr, ":MMEMATA? 'CICTURE.GIF'\n", "%b", resultsArray);

  • How can I get a Visa Reference Number on a Spectrum Analyzer?

    I have a GPIB Address of 18 on a 8593 EM Spectrum Analyzer. How can I get a VISA reference Number for my VI program

    You must have a pretty old version of LabVIEW if you need a session ID instead of just a VISA Resource. If that's the case, you need to first use an VISA Open function in which you specify a resource name of GPIB::18. The open function will return a unique ID that you wire to either VISA Write/Read or a subVI in a driver.

  • Labview driver for HP 8560 EC Spectrum Analyzer

    I'd appreciate it very much if somebody help to find
    Labview driver for HP 8560 EC Spectrum Analyzer using GPIB.

    Unfortunately I was unable to find a driver for this instrument either. This leaves you with one of a couple options. First, I would like you to submit a request for this driver at:
    http://zone.ni.com/idnet/other.htm
    We develop drivers based on demand and popularity so the more requests we have for it, the greater the possibility that we will develop one.
    If you would like to try developing your own instrument driver (or modify the existing one), we have documentation, model instrument drivers, and driver templates to help at :
    http://zone.ni.com/idnet/development.htm
    We also have a syndicate of third party vendors that specialize in National Instruments' products and services. Some of the vendors specialize in driver development. I would sugg
    est contacting one of the Alliance members at:
    http://www.ni.com/alliance
    Good Luck.
    Kim L.
    Applications Engineer
    National Instruments

  • Sound Input Read Spectrum Analyzer

    I am working on a project with Arduino to do a spectrum analyzer. The LVIFA part of it is working fine.
    The part that I am struggling with is the audio input.
    I am using the Sound Input Pallet.
    My troubles are two-fold.
    1. A single read takes quite some time and I need to have a pretty quick response. I decreased the samples per read and came up with problem #2.
    2. I can get one read out of the Sound Read In and then the VI locks up. I have my timeout set to 1 Sec and it never times out. I have to restart LabVIEW.
    While it would be nice to have this VI working, I'm not even sure that I am using the correct tool. If I am going to be running an audio spectrum analyzer display off of the data input, I need to response to be within a few mS (ie. <200) so that it looks visually correct.
    If this library will not achieve this, then I need to look into a different tool.

    Hi,
    I have a similar project, actually I am using a Audio frequency range as input to the Arduino and do an FFT to receive the spectrum out of it.
    See the YOUTUBE video I did and the code in *.jpg. I took actually the Continous Input example and modified it.
    Hope that helps.
    Keep me posted, since we might work on a same project.
    http://youtu.be/aqzyofQHXDM
    Y3G
    Attachments:
    Uno Blockpanel.JPG ‏104 KB
    Uno FRONTpanel.JPG ‏99 KB

  • "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?

  • 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.

  • Need a good Wifi Spectrum Analyzer

    I am looking for an APP that is a good Spectrum analyzer. 
    I have a iPhone5, (will be updating to 6 + soon)
    I do a lot of work troubleshooting wifi networks, and on my Android, and I though my older iphone 3gs) I had a good Spectrum analyzer for 802.11 wifi.
    I cannot find a good now, and I hate to have to go to an android just for this reason alone.  need mainly 2.4 GHz, but 5GHz ability would be nice to have.
    I need to able to see each AP, the SSID and channel it is broadcasting on, and I refuse to spend $300 for the Wi-pry external device by Oscium.
    I am already using the Net Analyzer and Status bundle, which is great for networks you are already connected to, but I need to see other networks, and their SSID and their signal strengths individual by AP.
    Any help would be appreciated.  If there is nothing I may be forced to downgrade to an Android device, and that would suck as I hate Android.
    Thanks

    Hi Kappy
    thank you so much for the info   I have a Netgear modem and anned on getting a AirPort Extreme this should still work right ???
    Steve

  • 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'.

  • 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!

  • I can't find the "spectrum analyzer" in iTunes 11

    I can't find the "spectrum analyzer". Was it removed in 11? I need it to adjust levels/EQ

    You might probably like this plugin: http://apptree.net/ledsa.htm
    To install it, simply drag it to /library/iTunes/iTunes Plug-ins
    To use it, re-open iTunes and choose it as your visualizer effect. You can hit cmd+t to activate/deactivate and with a right-click on the analyzer, you can choose even colour and many advanced options...
    Enjoy...

  • 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 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

Maybe you are looking for

  • If I'm running Windows 7 and have Elements 3.0 incompatibility issues, is there a solution?

    Elements 3.0 seems to function ok so far on Windows 7, but my backup to my Seagate (FreeAgent Go Classic) external drive fails due to errors caused by Elements 3.0. Is 3.0 so old that there is no available upgrade or solution? If so, can I upgrade to

  • Which Intel Mac for Music Recording, Please?

    Hi-- I'm brand new here. I'm a music professional who is in the middle of switching my recording setup toan Intel Mac-based studio, running either Logic Pro or Digital Performer (once it's ready for Intel Macs, that is). I've got an indie filmscoring

  • Set all media players in a document to start on page opening

    How can I set all the existing media players (mp3 files) in a document to start playing on page opening and stop on page closing I'm sorry for asking for a complete script but I can't work it out from the SDK manuals, and I think this example would h

  • How to get user language in property renderer without web dynpro (java)

    Hi all, how can I get the language of the current user? Normally I got it with: IWDClientUser wdClientUser = WDClientUser.getCurrentUser(); com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser(); IUser ep5User = WPUMFactory.getUserFactory().g

  • Macbook pro won't read windows 7 DVD

    I have recently purchased a Genuine copy of Windows 7 home premium. When I go to boot camp, it tells me to insert windows 7 installer disc, when i do so, it doesn't recognize it at all. Sometimes the window for an empty DVD pops up. Please tell me i