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

Similar Messages

  • I Need some info about interfacing the PC or laptop to Spectrum analyzer using Labview

    we need to control  the spectrum analyzer using an interface   that will    be   developed  using  Labview  .
    Spectrum analyzer will be connected to tha PC using RS 232C and the waveform observed will be seen in the PC interface of spectrum analyzer.
    Pls send some info regarding dis.

    Using a spectrum analyzer with LabVIEW is a pretty common application, my first program 15 years ago did this. What we need to know to help you though is what model spectrum analyzer are you planning on using? Most of the ones I'm familiar with use the GPIB interface rather than RS232, but that isn't a major issue, the spectrum analyzers command set is the important one. There are a lot of LabVIEW drivers available for a larger number of analyzers, here on the National Instruments' site. Although most use the GPIB interface (or ethernet), they can be used as a starting point to develop an RS232 driver if one isn't available, assuming that there is a driver for the model that you have, or a closely related one (manufacturers frequently use similar command sets within a model type).
    So, what type analyzer are you using, and what types of things are you planning on doing with it?
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Spectrum Analyzer with NI-6111

    I am trying to build a two channel (simultaneous) spectrum analyzer using Labview 7.0 and the PCI-6111 DAQ. I can make one channel work but it is very slow, but cannot find a method to acquire the second channel while the first is running. Are there any samples that might be useful? Attached is what I have so far. Is there anything I can do to speed it up? Any suggestions are GREATLY appreciated.
    Attachments:
    Acquiring_a_Signal_with_FFT_&_DAQ_&_THD_&_OCTAVE_&_TAB_&_CASE.vi ‏452 KB

    I've attached an example that I've thrown together that acquires from two channels and performs an FFT of one or both channels (selectable). I didn't have a problem performing frequency analysis on multiple channels simultaneously. One thing to keep in mind though -- the more analysis you do while performing buffered acquisition, the more likely your CPU will run into trouble with transferring data. I hope my example helps.
    Regards,
    Todd D.
    Attachments:
    Example.vi ‏201 KB

  • 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

  • DEVELOPING SPECTRUM ANALYZER

    Can one claim of DEVELOPING SPECTRUM ANALYZER using Labview? B'cos developing mean writing our own source code and not using the available vi's such as FFT.

    Are you developing the hardware, too? Or just the software?
    -Matt Bradley
    ************ kudos always appreciated, but only when deserved **************************

  • Premiere Pro Equalizer with Frequency Spectrum Analyzer?

    hi everyone, does anyone have the 411 on how to get a visual spectrum analyzer working with any of the Premiere Pro audio EQ's>?   There is a very nice EQ in the audio effects of Premiere, but when i play my files, the playing frequencies are not displayed on the EQ interface ... it's one thing to adjust the EQ by ear, but it would be really helpful to SEE what frequencies are blown out or what have you.
    Thanks! 

    I think you will have to use audition for that

  • I want to use a labview spectrum analyzer for 2.4GHz anylizer

    I am trying to build a 2.4GHz antenna for a class reasearch project. and I want to use a labview Spectrum analizer to test it. But the boards we have in our lab only support frequencies of 2KHz. I was wondering if NI made a DAQ board that would support this frequency and exactly what is it.

    The PXI-5660 and associated software (Spectral Measurements Toolkit, Modulation Toolkit) are very tightly integrated with LabVIEW. I might be unclear as to your situation, but I will look at this from two perspectives:
    Hardware perspective:
    If you are testing a 2.4 GHz antenna, if you wanted a digitizer to simply digitize the output of the antenna, it would have to run at a sampling rate of at least 4.8 GSamples/sec due to the Nyquist Sampling Theorem. Other options include placing an RF downconverter in front of a digitizer. The downconverter then shifts the signal of interest to a lower frequency, which also lowers the Nyquist ctiterion, allowing lower sampling rates to be used.
    None of NI's DAQ boards can sample fast enough to captu
    re RF signals, unless there is some form of signal conditioning on the front end, like a downconverter. The PXI-5660 RF Signal Analyzer uses this approach.
    Software perspective:
    Once the data is acquired, it can easily be analyzed with LabVIEW analysis VIs and with the new Modulation and Spectral Measurements Toolkits (both in LabVIEW). Regardless of how you acquire the data, LabVIEW can analyze it.

  • 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

  • Using NI PCI-5640R as Real-Time Spectrum Analyzer

    Hi,
    The code for NI PXIe-5641R Real-Time Spectrum Analyzer demo is posted HERE  for LV 2009. I want to use the same code for NI PCI-5640R instead of NI PXIe-5641R. Since I am using a 5640R, I have changed the device in the project.
    Can any one guide me what else changes I have to make in this Demo code so that I can use the same code for NI PCI-5640R
    instead of NI PXIe-5641R?
    Thanks and Regards,
    Rashid
    Solved!
    Go to Solution.

    Hi Eug,
    It sounds to me like you need to go back and re-install support for LabVIEW 2009 and 2010 through the NI-RFSA driver. You can do this through Add/Remove Programs. Select National Instruments "Change/Remove" and when the pop up window comes up select NI-RFSA and select "Modify." This will re-load the installer for NI-RFSA and through there you can add/remove support for versions of LabVIEW. Make sure that LV 2009 and 2010(if you're using it) are selected.
    As for your application, if I understand you correctly your setup goes something like PXI-5600»PXIe-5641R»PXI-5610 (»PXI-5690?). If you're just trying to acquire a signal on the 5641R and amplify it digitally before replaying it on the AO port, then you could try to use the example code "ni5640R Analog Input and Output" that is found here:
    C:\Program Files\National Instruments\LabVIEW 2009\examples\instr\ni5640R\FPGA\PXIe-5641R\ni5640R Analog Input and Output\
    as a base to follow, but you'll need to modify the code so that you're not providing the AO data from the host, instead you'll re-route the AI data on the FPGA through some amplification block and then feed that to the AO port. If you're including the 5600 and 5610 in this process, then that modified example will just need to include some code on the host to setup the 5600 for downconverter only mode and the 5610 for upconverter only mode. There are examples of this that you can find in their respective driver examples:
    C:\Program Files\National Instruments\LabVIEW 2009\examples\instr\niRFSA\RFSA Downconverter with External Digitizer.vi
    C:\Program Files\National Instruments\LabVIEW 2009\examples\instr\niRFSG\RFSG External AWG (5610).vi
    The addition of these last two pieces of code will make this modified example look a lot like the code that NAyer linked above without the FFT processing.
    I hope this helps.
    Chris W

  • 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

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

  • 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

  • How to create a Spectrum Analyzer?

    Hello people,
    Well i need to create a Spectrum Analyzer in my application, to analyze the frequencies from a auido capture.
    Any tips? Because i don't know where to start to develop this.
    My best,
    David

    DavidHenriques wrote:
    Ok i see. But how to create the graphics, exist some kind of free library related with this?You have a lot of learning to do and the FFT is the least of your worries. Check out Java implementations of the FFT from the source forge repository. Take a look at my second post in Perform Hamming window and FFT with Java for an outline of what you have to do to create the spectrum values. Take a look at JFreeChart for the display of the results though you might find it a bit slow when running real time (I use my own very very simple but fast charting).
    You can do everything mechanically without any real understanding what you are doing but I hope your examiners are looking for more; I would be.

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

  • Signal processing tools: spectrum analyzer, equalizer available?

    Are there any plug-ins or scripts to perform spectrum analyzing (shows the distribution of frequencies), and an equalizer (multiple band pass filter)?
    Why is there a high-pass filter, but no low pass filter?
    (using cs4)

    Math abstraction notwithstanding, the results are not the same.  For one thing I get problems with using blur around the edges of an image.
    But even beyond the edge issues...
    In the case of my example - preparing for a luminance flattening operation - the blur combines the data from all the background sky glow with that from the stars, and so the result contains pixel values derived from both.  A high pass operation then subtraction leaves me with the background sky glow alone and only eliminates the stars (light spots) and dead pixels (dark spots).  If I choose to combine so as to allow only darkening then I keep the dark spots and eliminate only the stars.
    Am I missing something here?  Are you saying the sky glow somehow influences the result from the high pass filter operation as well, so that the resultant sky glow after subtraction is affected?
    I guess what you're saying is that High Pass is based on blur under the covers then?
    -Noel

Maybe you are looking for