Stft from sound input VI dat to plot spectrogra​m, whats wrong?

Hi everybody,
I listen continously
via a microphone and sound card to 25ms long pulses in the range of
9kHz to 12kHz. I get 10000 samples from my Sound Input VI and use the
STFT Spectogram to plot a spectrogram(frequency versus time). Using the
default settings or any other window lengths results into the error
message:"...possible reasons: invalid windows length".
What's wrong?
Thank you very much,
Martin

Hey Brian,
I would like to listen to 25ms long pulses in the range of
9kHz up to 14kHz
+by using a microphone and a standard PC sound card
+continuously up to 1.5 hours.
The VI should display a real-time spectrogram(frequency versus time) like in the example VI "Moving STFT PtByPt.vi". It is important that the spectrogram always shows the last 5 minutes and the current frequencies. It is not necessary that the spectrogram is very real-timed(up to 600ms delay is ok), BUT it has to be 100% CONTINUOUSLY to not miss any of the short 25ms long pulses.
In addition I also would like to determine the frequencies of the received pulses, which are somewhere between 9kHz and 14kHz and I need to count the amount of received pulses.
My issues are:
1. missing some 25ms pulses due to problems with continuous sampling of SI Read VI in a while loop(I guess there is a small break between the 1000 samplesets)
2. How connect SI Read VI output to STFT VI or STFT PtByPt VI to perfom moving spectrogram?
3. Why doesn't show my spectogram no frequenciues at all?
I hope this helps to understand what I try to achieve and in what problems I have run.
Here is a corrected and more use-friendlier version of my VI.
Thank you very much,
Martin
Attachments:
spectrogram_NI.vi ‏142 KB

Similar Messages

  • Wrong sampling rate from Sound Input Read VI on Dell Latitude E6510

    Hi,
    When I
    receive data from the sound card with the Sound Input Read VI, the actual
    sampling rate is not equal to the sampling rate set in the Sound Input
    Configure VI. I estimate the sampling ratio by dividing the number of samples received
    by the difference between the first and the last t0 from Sound Input Read. For
    example, if the sampling rate is set to 7000 S/s, the actual sampling rate is
    around 6900 S/s. If the sampling rate is set to 7050 S/s, the actual sampling
    rate is around 7200.
    This problem appears when the
    code is run on my Dell Latitude E6510 machine. When I run the
    same code on my Lenovo ThinkPad, the sampling rate is correct.
    The Labview application I
    am developing is to be used to acquire data synchronously from several sources,
    including the sound card input. It is therefore important that the sampling rate
    is correct.
    If anybody has any idea
    about what may cause this problem, and a way to fix it, I would be grateful.
    Ole

    It has been a trend the last years that sound card only support some sampling rates, not a range. You should refer to your sound card manual for this kind of information.  You should also be aware of that the NI sound interface is junk, and they do care about it either. Use the WaveIO interface instead See the link. But I am quite sure your problem is related to the sound card hardware not some NI driver issue
    http://www.zeitnitz.de/Christian/waveio
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • TS1368 when ever i open itunes the store doesnt load and theres no error message, everything is up to date so i dont know whats wrong

    can anyone help lol?

    Does it just say "Accessing iTunes Store" and stay like that?
    If so, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • PLEASE can a AE from NI take a look at my problem. Sound input read behave in strange manner then the buffer size is larger than 2X number of samples to read.

    On my computer I have discovered some strange behavior then reading data from the sound card. Then the buffer size is 2x samples to read everything is as expected. But since I read the sound card 10 times pr second I feel a .2 second buffer is to small. I am using XP, and XP is not a RTOS so with a buffer set to 0.2 seconds I may lose data. Therefore I set the buffer size (number samples/ch on Sound Input Configure.vi) to be in range of 2 seconds. The result then is that then reading from Sound input.vi, a reading often take more than 0.1 second. On my computer it is often 500mSec. Then the next 5 read follows with almost zero interval. I do not loose data. But on my front panel the graphs looks like an very early silent movie. This error was introduced in Labview 8.x. To be honest I think the labview 7.x sound system was much better in many ways.
    But before I point any finger NI. Other people has to verify the behavior I experience. I have made an example showing this error. It is a modified version  of the "Continuous Sound Input.vi" example. Then the "buffer in seconds" control is set to 0.2 every thing works OK. Changer this to a larger number will produce the mentioned above hiccup. The larger number in this control the larger hiccup. Is it any way to fix this? My solution up to now has to use a free 3. part software(http://www.zeitnitz.de/Christian/index.php?sel=wav​eio) But I guess it soon will be outdated. It may not work with newer windows versions.
    Any help at all will be appreciated 
    And yes I have the most updated version fo DirectX. Also I se this in Labview 2009 which I have trail version of. The VI I have made is in 8.6
    Message Edited by Coq Rouge on 09-07-2009 10:54 AM
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    Continuous Sound Input with timing.vi ‏23 KB

    macaba wrote:
    If you take a moving average of the 0.2s buffer vs. 3s buffer at an update rate of 10, then they are the same (just under 100ms), so the average refresh rate is the same. I agree that is odd behaviour that the time between sound reads go to zero quite a lot then take a long time once in a while (presumably to fill the buffer
    I guess it goes to zero because it is reading data from the buffer it do not has to wait for data from the sound card. The mysterious thing is the periodic delay. You are also correct then saying that average timing is correct. And in my application I have no data loss.
    If you search for sound in this forum you will find out that many people has reported trouble with the sound system.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Compound date (dd.MM.yyyy HH:mm) from two input fields

    Hi,
    I need to compound a date field in format dd.MM.yyyy HH:mm from two input fields(date and time field). I was trying a lot but could not get it to work. So right now I'm trying to start it simple but still have a couple of problems.
    1.) To start easy I wanted to fill a hardcoded date into my field.
    setAttribute(MYDATE, "01.01.2005 12:10");
    brings (java.lang.IllegalArgumentException) Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
    2.) setAttributeInternal(MYDATE, "01.01.2005 12:10");
    brings JBO-27018: AttrSetValException Cause: The type of attribute value provided as an argument to the set() method for this attribute is not an instance of the Java type that this attribute expects.
    3.) The thing that I reall need is something like:
    DateFormat sim = new SimpleDateFormat("dd.MM.yyyy HH:mm");
    java.util.Date datum = new java.util.Date();
    try
    datum = sim.parse("01.01.2005 12:30");
    } catch (ParseException e)
    setAttributeInternal(MYDATE, datum);
    but right now this also ends with the JBO-27018
    I also did try different types (timestamp and date) in my entity object and different format masks. Not working at all. All the threads I found are pointing to articles from Steve, which are not available anymore (the links don't work). So any help is appreciated.
    Regards, Peter

    Thankyou for the hint. I get it to work with
    public void whatever
    DateFormat simple = new SimpleDateFormat("dd.MM.yyyy HH:mm");
    java.util.Date javaDate = new java.util.Date();
    try
    javaDate = simple.parse("01.01.2005 12:30");
    } catch (ParseException e)
    java.sql.Timestamp sqlDate = new java.sql.Timestamp(javaDate.getTime());
    oracle.jbo.domain.Date nowDate = new oracle.jbo.domain.Date(sqlDate);
    setAttributeInternal(MYDATE, nowDate);
    but is there an easier and more 'beautiful' way to do this? Like using a date formatter on oracle.jbo.domain.Date instead using the SimpleDateFormat? btw. did I mention that I'm a Forms and PL/SQL programmer ;-)
    Regards, Peter

  • How do I keep Firefox from saving bank account data?

    How do I keep Firefox from saving bank account data? I'm running Win7 64-bit. I can't seem to keep Firefox from saving bank account data.

    Also, could you clarify what you mean by "saving bank account data"? Here are some places that Firefox may save data you have viewed:
    ''Firefox's cache:'' Generally speaking, Firefox will cache pages you have viewed so you can go Back to them unless the server instructs Firefox not to store them, or designs the page to reload and check to make sure you are still logged in.
    ''Session history:'' Firefox saves information about your session for purposes of redisplaying your open windows and tabs (and recently closed windows and tabs) in the event of a crash. If you want to restrict what Firefox saves, there might be some settings you can modify, but it depends on your concerns.
    ''Form autofill:'' If you have the form fill feature enabled, Firefox will remember data you enter into forms (usually excluding passwords). This can be turned off, or completely cleared, but there isn't a convenient way to remove just some of the data without an add-on. For example: https://addons.mozilla.org/firefox/addon/form-history-control/

  • Sound input plot update problem

    Hi,
    I am having some problem regarding the plot of the sound input signal. Specifically the problem is regarding the update of the waveform graph i have used.
    the update is not continuous mode. And there are gap in the waveform
    can anyone help me
    Attachments:
    Continuous Sound Input.vi ‏20 KB

    Thanks! Though I upgraded to solve the problem, this is good to know.
    Bob
    Date: Wed, 9 Nov 2011 04:45:42 -0700
    From: [email protected]
    To: [email protected]
    Subject: Premiere Pro 2.0 and Windows 7 - Direct Sound Input soundcard driver problem
    Re: Premiere Pro 2.0 and Windows 7 - Direct Sound Input soundcard driver problem created by Steve-Italy in Premiere Pro CS4 & Earlier - View the full discussion
    VERY VERY VERY EASY (now, when I solved the problem, not before...!!!)
    Insert Micropone or any jack in Micropone Input or Aux Input, on your sound card or motherboard !
    AND NOW YOU CAN USE PREMIERE PRO 2.0
    Enjoy
    Steve - Italy
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4015730#4015730
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4015730#4015730. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Premiere Pro CS4 & Earlier by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to pass the data from a input table to RFC data service?

    Hi,
    I am doing a prototype with VC, I'm wondering how VC pass the data from a table view to a backend data service? For example, I have one RFC in the backend system with a tabel type importing parameter, now I want to pass all the data from an input table view to the RFC, I guess it's possible but I don't know how to do it.
    I try to create some events between the input table and data service, but seems there is no a system event can export the whole table to the backend data service.
    Thanks for your answer.

    Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to  be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
    Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
    Thanks.

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • How to combine data from different input forms outside a nested iView

    Hi,
    i try to combine data from different input forms in a single one.
    Because of space reasons in Flex compiling i already use nested iViews. Within these nested iViews its possible to use the 'combine' function to do this.
    But in the main iView I cant compose these function with other elements. I need to do this because of using these model in Guided Procedures with output parameters. These parameters I only get with a 'endPoint'. Unfortunatly its not possible to combine data from different input forms into the 'endPoint'.
    Is there any solution?
    Thanx
    Mathias

    Hi Scott,
    i tried this already and i also tried to map all parameters in the endpoint by drawing lines from the other forms and assign the 'empty parameters' by a formula.
    And when i create a collable object in GP and assign the VC iView, only the parameters of the parent-form (the form who trigger the event) are shown as output-parameters.
    Maybe any other ideas? I cant believe that such a simple thing is not possible?!?!
    In my opinion, thats a bug, that I'am not able to use the combine-operator in the main VC-iView. Whats your mind?
    greets
    mathias

  • Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format

    Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format. Siebel wants to send the data as xml to BI but not sure of the BI capabilities on giving WSDL embedded with XSD (input is a hierarchical)

    Hi All,
    I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
    Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
    Please let me know if there is any oracle functionality to do this.
    If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
    For eg, /$APPL_TOP/ar/1.0/sql or something.
    Regards,
    Swapnil K.

  • 50L7300UC - sound input from Mac not outputting to ARC

    I'm having an odd problem with audio on my 50L7300UC (Canadian model of the 50L7300U). I have a soundbar hooked up via HDMI ARC, and it works fine for audio from my cable PVR, from online sevices such as Netflix accessed through the TV itself, and from my PC (a Windows 8 tablet connected via a mini-Displayport to HDMI cable, which provides both audio and video). But with my wife's Macbook Air, using the same mini-Displayport to HDMI cable, video is fine but the sound won't output to the soundbar. Oddly, the sound does work if played through the TV speakers, but if I switch sound output to the soundbar (which the TV sees as "Amplifier"), nothing comes out. I've tried different settings on the Macbook's audio output (using the Midi Audio utility), but that doesn't seem to matter. Any ideas?

    Hmm, if it doesn't see the internal microphone when connected via the FW cable, maybe you might have to run audio cables from the camcorder line output to the sound input on the Mac.

  • Can't get sound from USB input device

    I've got an Alesis iMultiMix 8 USB mixer plugged into my shiny new MacBook Pro (running Leopard). The Mac properly recognizes the USB Audio Codec as a sound input device, and in fact shows a signal being received from the mixer. However, I don't actually hear any sound from the mixer, even with it selected as my input device, and my recording program still records only from the built-in microphone. What am I doing wrong? Thanks for your help!

    Heh... it turns out that there was nothing wrong, at least technically. I got on the phone with Apple and asked if the native OS environment relays inputted audio through the speakers, and was told quite simply, "No." It looks like my PC schools Mac on that account.
    As it happens, yes, the programs I was trying to use (Cubase, and I tried Garageband for gits and shiggles) DO have a monitor function to allow the ability, as well as ways to select your input. Cubase, the one I'd been experimenting with, simply has it coached in different (and extremely technical) terms and methods.
    So, it looks like my difficulties arose from my lack of experience in a high-level audio program with a steep learning curve, coupled with what I perceive as a basic design shortcoming of Mac. (I think there should at least be an option in the OS environment somewhere.)
    Ah well, live and learn. Thank you so much for your assistance.

  • Hi, I have just loaded Lightroom 5 from the disc onto my Mac.  every time i try and launch the application, it goes to the registration/licence window.  i have input the data five times already.  When Lr5 launches the update window appears, when i try to

    Hi, I have just loaded Lightroom 5 from the disc onto my Mac.  every time i try and launch the application, it goes to the registration/licence window.  i have input the data five times already.  When Lr5 launches the update window appears, when i try to do anything the following message comes up: - An error occrred when attempting to change modules.  What do i need to do to fix this?

    Masher please use the uninstaller located in the Applications/Utilities/Adobe Installers folder.  Once Photoshop Lightroom is removed then please download Lightroom 5.5 from Adobe - Lightroom : For Macintosh : Adobe Photoshop Lightroom 5.5 and reinstall.

  • How to submit data from multiple Input Ports in single SUBMIT button  click

    Hi,
    I am in SPS8.
    What exactly steps I need to perform to submit data from multiple Input Ports.
    I couldn't able to submit One input Form and one Input Table to BAPI data service in single SUBMIT button click.
    I debugged the VC application in SPS8.
    While debugging, I found that when I click the SUBMIT button in the Input Form, Only data in that Input
    form are being passed to the BAPI, But not the Table Form data.
    If I click on the SUBMIT button in another Input Table, Only data from that table is being passed to the BAPI, but not the Input form data.
    Essentially I need to submit both of them in one SUBMIT button.
    Thanks,
    Ramakrishna

    Ramakrishna,
    From the word document that you sent to me the steps you are missing to map the appropriate information into the BAPI is first you are not mapping all data rows into the table input port. To do this double click on the input table view and change your selection mode from single to multiple. Then when you click on your link between the BAPI and your input table you will see a new option appears under data mapping "Mapping Scope" select All Data Rows.
    That's the first part of the problem to get the BAPI to recognize both the inputs coming from the form and the table eliminate the submit button from the form. Drag and drop a link from the output port of the table view to the Input port of the BAPI. Double click on the link between the BAPI and the table view and open the expressions editor for the two fields:
    1/ Automatic Source
    2/ SKIP_ITEMS_WITH_ERROR
    On the hierarchical folder structure on the right expand expand the Data Fields node to find the fields from the form and map them accordingly.
    Now when you hit the submit button on your table it should pass the BAPI all the parameters from both the form and the table.
    Hope this helps,
    Cheers,
    Scott

Maybe you are looking for

  • DVI to VGA adapter... Which one?

    Hey all, Currently I'm using an "oldish" VGA monitor with my Power Mac G5, which does me fine. Just recently, my neighbour gave me his old VGA monitor that he doesn't use anymore, so I thought I could take advantage and try out a dual display setup..

  • Which is better mac book pro or Mac book pro with retina display?

    which is better mac book pro or Mac book pro with retina display?

  • Losing my mind with a scrollpane

    Hello all. I am trying to get a scroll pane to work in an application that I have built for school. I am trying to get an amortization table to scroll through for a mortgage calculator. It isn't recognizing my scrollpane and I am not sure why. Could

  • Memory Leak Doubt

    Hi All, I have a doubt about memory leak in Java. Consider the following code. public class Class1 implements java.io.Serializable private static java.util.ArrayList known = new java.util.ArrayList(); private final String name; private final int valu

  • QuickTime won't install/uninstall

    At home I use a Mac as indicated. At work, I am running Windows XP Pro SP2. I've been trying to get the latest version of QuickTime to install. I get "A newer version of QuickTime is already installed. This installation cannot proceed while the newer