How to have Sound Input Read VI read .wav in sections

Hi,
I'm trying to read audio data from my laptop's soundcard, and it's really slowing down my VI's processing power. I read on the NI website to read the .wav file in sections instead of as a whole, but I have no idea how to do that. Any suggestions? My VI is attached.
Thanks!
Attachments:
signalgen.vi ‏56 KB

You have set the sample rate for the sound card to 100000 samples pr second. That is a sample rate your sound card will not be able to handle. Hence a error will occur. And you will not get any data from the sound card. Some sound cards may support samplerates in 1 Hz step but most sound cards do only support some rates. The latter is most typical. All sound cards do support 44100 Hz sample rates but typical sample rates are 44100,22050,11025, and 8000. Some sound card do also support higher sample rates than 44100. Refer to your sound card documentation for this. Your way of using the Daq card by reading 1 sample on each iteration, using software timing is also a Daq NO-NO. Read data in chunks and do not do to many updates pr second, and always use HW timing. If you need the waveform to appear "live", or "real-time" 10 updates pr second is more than enough.  
I have included a sample vi. I suggest that you use that as your workhorse from this point. At least if you want more help from me
Tip Labview is shiped with many very useful examples. Then you are stuck. Go to toolbar->help->fFind examples. As one example the Daq setup is from the "Cont Acq&Chart Samples-Int Clk.vi" vi example
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Attachments:
workhorse.vi ‏37 KB

Similar Messages

  • How to have multiple inputs for a Pic Ring?

    Alright, I've got this program in which there is a pic ring with multiple pictures on a tab page on the Front Panel. And on the Block Diagram the Pic Ring receives a number through a numeric indicator. There are multiple boolean variables set up and depending on which one is true that dictates which number the indicator pushes on to the Pic Ring. However, I can only connect one boolean up to the indicator at a time. If I connect mutliple wires to the indicator the wires become broken immediately. I have a screen shot depicting the setup in the Block Diagram.
    Anyway, my question is basically how to setup a numeric indicator for a Pic Ring to have multiple inputs?
    Attachments:
    PicRing Multiple Inputs.jpg ‏319 KB

    Shogun,
    You will probably need some sort of case structure to determine your input.
    It looks to me like you are searching a common string for whether it contains Valve1, Valve2, Valve3 and so on.  Depending on which one it finds you are outputting that picture.  I would need more information as to what exactly you were doing, but I might look in the string for "Valve" then a number and feed that output into a case structure.  For instance if you find Valve3 in the string you send the input corresponding to Valve3 into the picture ring
    Matt J
    Professional Googler and Kudo Addict
    National Instruments

  • How to play sound input thru speakers

    Is there any way to play the audio stream coming in on the Line In port to the computer's speakers? It seems intuitively obvious that it should be possible and easy, but I can't find anything which enables it. I have the output volume at a reasonable level, and the "mute" controls in the Sounds control panel are not set. Still nothing!
    Thanks.

    I agree that it should be simple, but it is not. In Mac OS X, there is no setting to play-through the audio input to the audio output. You have to run some program, such as an audio recording application, and set that program to play-through the sound.
    Fortunately, if all you want is to play-through the sound, there is a simple little program that does just that one function. It's called LineIn.
    http://www.versiontracker.com/dyn/moreinfo/macosx/18987

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

  • Imic sound input type

    hello all,
    i purchased a new imic after the older one went dead .
    although i am not sure what caused it to stop functionning , i suspected it might have fried due to too much power in the sound input.
    i've read from several posts here and also from griffins site that it is ok to choose either microphone or line as sound input .
    still, isn't there a risk when using phone input compare to line ? i wouldnt want to damage my new imic .
    thanks for any advice .

    my cassette player's headphone output has no such button.
    Whatever volume control the cassette player has would control the headphone level.
    If using the cassette's Line-Outs is an option, that's always a better choice, quality-wise, but in a pinch headphone will do (I jack an iPod into my PA System routinely and that's a headphone-out to a line-in on the console)

  • Videos in email have sound but no picture since I updated to Lion

    I recently updated to Lion and now when I open videos in email I have sound but no picture.

    AOL mail provider.  I have to click on Quick Look to make anynthing happen.  I then click "Open with WMV Player".  Screen is still black.  I click the PLAY button.
       I have sound but no picture.

  • Sound Input Read VI hangs

    I'm using the SI Read VI to sample from the Soundblaster card in my Dell PC. I've configured the device for 16-bit mono input, sample rate 44.1 kHz, and the buffer size is 1024 samples. The SI Read VI is in a Timed Loop whose period I've set to 23 ms (1024 / 44.1kHz). Following each acquisition, I do some filtering, frequency analysis, and plotting inside the loop.
    The acquisition works well for the first 10 minutes or so that it is running. But sometime after about 10 or 15 minutes, the VI hangs. I've traced the hang back to the SI Read VI, but have not yet figured out how to avoid the hang or recover from it (I have to abort and restart the program).
    Has anyone had similar problems with the SI Read VI? Could there be a problem with the DLL that the SI Read VI calls? Are there any upgrades or fixes for this? Can someone suggest a way to recover from the hang?
    Thanks for any help,
    Mark

    This message is a reply to "Sound Input Read VI hangs" (National Instrument) NI Discussion Forums posting found at: http://forums.ni.com/ni/board/message?board.id=170&message.id=137258 and http://forums.ni.com/ni/board/message?board.id=170&message.id=110656&requireLogin=False
    Hi everybody,
    From the large count of how many of you guys read the above thread of messages, including myself, and who are dealing with the same problem of SI Read VI hanging found National Instrument (NI) LabVIEW (LV), I decided to share my (not so perfect) solution with you guys to save you time and frustration. Here is the story of 3 days (18 hrs/day) of my life, fighting a bug in SI Read VI (SI: Sound Input) (I am currently using LabVIEW Pro v 7.1.1):
    For the reason that "A Message cannot exceed 10,000 characters" on this Forum I included my message in the attached Word doc. Hopefully, there is no such limitation on uploaded files!
    Samir Berjawi
    Research Assistant and Lab Instructor
    American University of Beirut
    [email protected]
    [email protected]
    Attachments:
    LabVIEW SI Read freezes - Report.doc ‏39 KB
    Sound Acquisition Test.zip ‏995 KB

  • Time mismatch with Sound Input Read VI

    Hi Folk,
    I am acquiring the signal of the PC
    sound card with the "Sound Input Read VI" and I have
    noticed that between subsequent waveform data packets there are time
    mismatch, both overlap and gap.
    To point out the observed behavior, I
    have posted a modified example, the "Continuous Sound Input.vi". In the example, I have computed the
    time difference between the t0 of the actual waveform packet and t0
    expected on the basis of the previous waveform packet.
    Consistently, in the indicator "Time
    series" (Waveform Charts), each time there is a time overlap or
    gap the Charts resets it self or presents a gap.
    By reading 1 second of data the time
    mismatch is about 0.015625 or 0.03125 sec. (both positive and
    negative).
    The repetition frequency of the time
    mismatch decreases as the acquisition sample rate increases.
    The amount of the time mismatch seems
    to be sample rate invariant.
    Do you have any idea from where this
    problem is coming out and how to solve it?
    Thanks for your help,
    Asper
    Attachments:
    Time mismatch with Sound Input Read VI.png ‏51 KB

    Pre made Labview functions are not some holly grails that is newer to be touched and modified. In fact many included functions in Labview has what I will name as "high flimflam factor" That will say a lot of functions you do not really need. Express VIs are grim examples of this.
    Anyway I have made some modifications and removed some babyfat in the sound input VI. Take a look at it. The top level VI is the "time fixed sound.vi" It could be that you will get an error because Labview will not find a DLL. If a DLL is reported missing you will find it in C:\Program files\National Instruments\LabVIEW 2010\resource\lvsound2.dll
    Remember to save the modified VIs in a separate folder, and not in the vi.lib folder at all. Be careful so you do not overwrite any Labview function
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    Sound Input Read (DBL)_time_fixed.vi ‏30 KB
    time fixed sound.vi ‏19 KB

  • How to get input from card reader

    hi, everyone,
    I have a project, which needs me to get input from card reader. My terminal input is IBM POS system, but it didnot provide the API to get the input. How can I get the input? Need your help so much! and thanks a lot

    Now this is a wild idea.... how about searching the IBM site for technical information ?

  • Sound input read multiple soundcards

    Heey everybody,
    I have a problem. I want to read two different signals at the same time from 2 different soundcards. 1 internal soundcard from my laptop, and 1 usb soundcard. 
    So i used the Acquire Sound VI.
    Reading both signals at the same time is not a problem until i set the measuring time to about more that 30 seconds. It gets a buffer overflow.
    So i tried to do the following:
    I first made this with 1 signal first, and it worked perfectly, every second it got updated.
    But, when i added the second signal it only wanted to read the first second of the first signal and then it got stuck, and i had to stop the software by closing it. And then killing labview with the taskmanagement thingey from windows.
    Anyone have any idea what the problem is?
    Greetings,
    Jory 
    Solved!
    Go to Solution.

    Ok, never mind, i've solved it. I made the buffers larger (at the sound input configure block) and now it works like a charm

  • 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

  • How to split left and right sound signal from SI READ Stereo?

    How to split left and right sound signal from SI READ Stereo?
    I want to display the left and right sound signal in two graph separately,what shall I do?
    That is how to split 2D arry to two 1D arry?

    Hello,
    Here's another trick...although the "Index Array" suggestion will work, you should investigate using the "Delete from Array" function...you can tell it to delete one of the columns (or rows), leaving one column (or row)...the function will output both the resulting array AND the deleted array, which happens to be the other row/column...this method might not be as intuitive, but it only makes one copy of data in memory, while the Index Array method makes two copies.
    I hope this suggestion helps. I only found out about this trick with "Delete from Array" the other day.
    Have a great weekend!
    Sincerely,
    Darren Nattinger
    Applications Engineer
    National Instruments
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How can i open file from adobe reader..i already have adobe read

    how can i open file from adobe reader..i already have adobe reader installed and cannot open a
    file and i cannot convert my file into pdf..

    Is the file really a PDF? Where is it? Have you tried opening it from within Reader?

  • After upgrading to Mavericks I have adobe for my pdf reader in safari.  Can someone tell me how to get back to mac pdf reader? Thank you.

    After upgrading tp Maveraicks I have adobe for my pdf reader in safari.  Can anyone tell me how to get back to apple pdf reader?  Thank you

    Remove Adobe plug ins if any.
    Macintosh HD > Library > Internet Plug-ins
    AdobePDFViewNPAPI.plugin
    AdobePDFView.plugin

  • How do I download an ebook to read in itunes? I have windows 7 and itunes 12

    How do I download a book to read in itunes? I have windows 7 home premium and itunes 12? I think my computer is authorized and my account is up to date.

    The iBooks sold in the iTunes Store can only be read on an iOS device (iPhone, iPad), or on a Mac running Mavericks or later.
    To read an e-book on your PC, download the Kindle app for PC, and purchase the book from the Kindle Store.

Maybe you are looking for

  • Can you have the same smart object in two files?

    The situation: I have a 'base' file A, with two (different) smart objects B and C. Now I want B and C to both contain a third smart object D, and I can't get that to work. I can place the same file as a smart object in B and C, but it becomes two dif

  • Ideas pls for a small application on java and jsp?

    hi , I would like to create an application which for resume. I would like to codify the java code . The java code should be able to autogenerate jsp file's since the output of the resume would be on an jsp page. To add it simply a wizard for dynamic

  • Updating address of a partner in crmd_order Service Contract

    Hello everybody,            I have a requirement of updating address of partners in service contracts in SAP CRM. I have tried to create an address number and person number and pass it to crm_order_maintain but it is not working. Please help me with

  • Is asking for a redundant download of iTunes

    In the iTunes store the following message has been delivered: "A new iPhone software version (7.0) is available, but requires iTunes 11.0.5. Would you like to download iTunes 11.0.5 now?" However, version 11.0.5 has been installed. Still it is asking

  • ITunes music library has disapeared

    I have a Mac mini with all my music stored on a Time Capsule. I've recently put the Mac mini to sleep but turned the TC off at the plug. I've just gone to start up iTunes and now all the music has gone from my iTunes. It's still on my TC but the libr