Sound file causes temporary freezing

Hi all, 
I am new to labview and I've faced a problem during running my code.
I have a code that calls subvi which plays a sound file of type .wav using Play Sound File VI and Sound Output Clear VI. The sound file should play when some events occure, the problem is that the application is freez a little bit when it is time to play that sound. So I think I should load that subvi or maybe the sound file whenevr the application start. 
Do you have any suggestion for reloading that subvi or sound file and what I should use.
It realy affects the performance of my application. 
I appreciate your help.
Thank you in advance 

Many thanks for your reply
Okay 
Let me just make that clear 
I am reading signals and wherver the value of the signal reach the limit ( Max Value ) I should alram the user by sound 
so the subvi on the red circle should be called 
and here its code 
So what do you think?

Similar Messages

  • Touch causes temporary freeze

    In developing a touchscreen interactive for a museum, I've run into a serious performance bug. There is a short (0.5 - 1 second) freeze that occurs right after a touch event has ended. This behavior is somewhat inconsistent, although it seems to happen more consistently at high frame rates. 
    This behavior does not occur when using the mouse for input, only touch monitor via usb (I've tested on two different screens).
    This behavior does not occur in the Flash Player, only AIR.
    I do not know if this occurs with Windows 7, but it's only been tested on Windows 8.
    I've created a bug here with more details:
    Bug#3559420

    Thank you for adding the bug report and including a sample project.  I've asked someone on the team to take a look.

  • I have files that freeze my programs whenever I try to open ANY file. Is there a way to find the exact files causing the crash?

    I have files that are freezing my programs (adobe; after effect and photoshop, as well as maxon cinema 4d). Whenever I try to import ANY file from within the program it doen't even let me select the file I need before freezing. I have moved all files off my desktop and into my dropbox, and it now allows me to import files/search for files on the desktop but NOT dropbox, once I go to dropbox it freezes again. I am assuming there are files within dropbox now that are crashing my programs. The problem is I have a lot of files in there and would like to remove the corrupt ones so that I can use my programs without freezing. Is there a way to find the exact files causing the crash?
    This has happened a couple of times and each time I have to move all my files off my desktop, so there must be a type of file doing this, I just don't know what files they are.
    Mac Book Pro 15" running OSX 10.9
    Processor  2.3 GHz Intel Core i7
    Memory  16 GB 1600 MHz DDR3
    Graphics  Intel Iris Pro 1024 MB
    ANY help would be greatly appreciated! It is making it really hard to get work done. THANKS!

    This error sounds to me like you have/had BootCamp Windows installed and then removed, posible ?
    If so (and even if not so), try restating your MBA while holding down the alt/option-key until you get to the Boot Selection Screen.
    Choose to boot OSX.
    Once in OSX go to System Preferences then Startup Volume and set your OSX to be the default.
    Hope it helps
    Stefan

  • Occasional temporary freezes on disk access (SSD)

    I'm using a SanDisk SD5SG225 SSD, and occasionally get random lockups with the disk light stuck on.  These pauses last for about 2-4 seconds, and usually occur when I save a file, open a new tab, etc.  The program that is using the disk will freeze.  I'm using LUKS (no LVM) and had discard with LUKS passthrough enabled, but currently have it disabled.
    Here is my fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/mapper/root UUID=8448cc36-99f5-4c90-b310-5688a447089f
    /dev/mapper/root / ext4 rw,relatime,data=ordered 0 1
    # /dev/sda2 UUID=a26bb41c-3354-4f28-9a50-d02f7629b00b
    /dev/disk/by-partlabel/boot /boot ext2 rw,relatime 0 2
    /dev/disk/by-partlabel/efi /boot/efi vfat rw,relatime 0 2
    I'm not sure what other information to include.  Any help would be appreciated:  I'm scared I'm ruining the SSD somehow.

    Same problem here. Intel SSD.
    Examples of things that cause the temporary freeze (where the mouse pointer moves but extremely slowly):
    Playing an embedded Youtube clip on a page in Chromium
    Trying to add a printer in hp-setup
    HALP!

  • Drag and drop not working.  When trying to move a cell or icon the shadow of the cell or icon being moved appears under the cursor but can't be released causing a freeze of function within the program.  Happens in finder numbers and firefox

    Drag and drop not working.  When trying to move a cell or icon the shadow of the cell or icon being moved appears under the cursor but can't be released causing a freeze of function within the program.  Happens in finder numbers, firefox, and when trying to move any file from the downloads folder.
    This is a serious pain.
    Please help.
    WB

    Yes, all I can tell you is that Finder does not have that function in ML. Your system is "working as expected".
    You can file feedback here.

  • Link between slides & sound files broken

    Following an inadvertant folder move the slides in a slideshow are not now linked to the corresponding narrative sound files. Can the link be re-eastablished and if so how?
    Peter Goldsworthy

    if, for example, A is a class name, you should use "A" and then use getDefinitionByName() to retrieve the class reference from the string.
    private var  lettersL1:Array = new Array['A','F','G','H','I','N','O','S','T'];
    for(var i:int=0;i<lettersL1.length;i++){
    var C:Class=Class(getDefinitionByName(lettersL1[i]));  // import flash.utils.getDefinitionByName
    var c:*=new C(); // create instances from the classes in lettersL1
    // do whatever with c
    or, move those instanciation statements into your LetterArray constructor or somewhere beyond like:
    package
        import flash.display.*;
        import flash.events.*;
        import flash.text.*;
        import flash.utils.Timer;
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import flash.net.URLRequest;
        public class LetterArray extends MovieClip
            private var _stage:Stage; //this reference works well to the main file. Should I somehow link it to the errorous code below?
            private var letterArray:Array;
            private var  lettersL1:Array; //this is the line that causes the error. I am sure it is because I need to add something to the main class.
            public function LetterArray(ss:Stage):void{
                var a:A = new A();
                var f:F = new F();
                 etc
                lettersL1 = [a,f,...]
                _stage = ss;

  • Why are system and application sound files appearing in itunes?

    Suddenly, over 900 system and application sound files, each about a second or 2 long, have appeared in my iPhone 4S music player. They've also appeared in my iTunes on my desktop iMac. Not sure whether they appeared on the computer first or on the phone first. I can't figure out why they appeared there or how to get rid of them (without also removing them from the system and applications which, of course, I don't want to do).
    I searched through the discussions here and found several other people complaining about the same thing, going back a couple of years, but no solutions offered. I hope someone can offer a clue.

    Thanks for the suggestions and help. While the cause of this problem is still obscure, we've managed, with an Apple tech's help, to remove the system/application sound files from both the iPhone and iTunes. We used Time Machine to backtrack to the point at which the sound files first appeared in the iTunes folder, then moved back one more day and restored the iTunes Media folder (where all the music was stored) and 2 iTunes files: iTunes Library.itl and iTunes Music Library.xml (we could also have simply restored the entire iTunes folder with the same effect). Then we synced the iPhone.
    As for the cause, that's still a puzzle. From Time Machine, we were able to determine that the files were added between midnight and 12:47 AM on a particular day, but that computer was not in use at that time (the user was asleep in bed, and the only other person in the house at the time was me -- and I don't touch that computer).

  • Sound file doesn't s

    Hello everybody,
    I've written a program in Borland Delphi 5, which controls the sound output with DirectX 9.0c. In this program, i'm starting a sound file (.wav), that doesn't stops after playing it. I've got a "SoundBlaster Li've! 24-Bit" installed. Does anybody know if this could be a driver issue? Cause I can't reproduce the bug on other hardware configurations with OnBoard sound for example.

    stonyrue,
    Are you using DirectSound functions? If DSBPLAY_LOOPING is set (such as for accessing the primary buffer) in the call to Play, you'd need to call :Stop to end the sound. A while back, I programmed an application directly using DirectSound, but I found that C++ sound functions are easier :-) But YMMV.Message Edited by Katman on 05-30-200704:46 PM

  • Sound file problem

    Hello,
    I am using sound control in oracle forms 6i. So when I play the file Sound file it is not being played more than 3 min.

    Hi Tintin_99,
    It is hard to tell what may be causing the error simply from the crash report error. Would it be possible to show us your code which you are using to open and read the sound file?
    Also, how big is this sound file?
    Kind Regards,
    Laurence C.
    Senior Test Development Engineer
    Dyson Ltd

  • Sound File not creating from simulate signal

    I am trying to create a white noise sound file.
    100 Hz to 8000 Hz 100ms long with a 10 ms ramp up and 10 ms ramp down.
    I have been able to create the signal and sound in this vi.
    Create sound - 8000 hz white noise
    High pass filter - remove noise below 100 hz
    ratio window - causes ramps
    turn back into waveform - why oh why
    normalize after filtering - for some reason the filtering changes the height of the whole waveform, if you have a solution to this......
    play back sound
    write sound to wav file.
    The problem is, I can only get a file as short as 500 ms.  I did this by changing the simulate signal options selecting 8000 samples at 16000 Hz.
    If I select 1600 samples (the number of samples needed for 100 ms) some error occurs in the writing process, and the file thinks it's still open by labview.  If I close labview, the file still does not work.  How can I do what I need to do?  Why can't I just reduce the number of samples to 1600 and get a 100 ms long waveform?
    -Regards
    eximo
    UofL Bioengineering M.S.
    Neuronetrix
    "I had rather be right than be president" -Henry Clay
    Attachments:
    white noise generator.vi ‏169 KB
    White noise generator.PNG ‏40 KB

    The Labview sound system is something that NI do not care much about. They actually neglect it. Errors reported in version 8.6 are still not fixed in Version 2010. And if they fix errors you can be sure some new errors will be introduced. What you can try to do is using the old sound system (used in 7.x) for writing your data to file. In your case it should have much to say. You will find the old sound system here ..\National Instruments\LabVIEW 20xx\vi.lib\sound\sound.llb
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • D11.5 Projector gets stuck on encountering first sound file

    My projector runs fine on my PC (where I have D11.5) but when pack up all the files and try to play it from a new machine, the projector plays the opening screen and as soon as it has to make the first sound, it freezes. It seems as if it can not find the sound. I tried putting the sound file right next to the projector and even that does not work.
    My usual method is to call the sound  files with the path such as
    sound playfile 1, the moviepath & "sounds\"  & "playThisSound.aif"
    This works just fine on my machine. The projector does not hang up.
    Any ideas?

    You are using ancient and deprecated Lingo to play sounds. Try importing them into a castLib and use sound(channel).play() or a new mixer object (consult the docs)

  • My Quicktime Mp4 Video Archive is Converting into Sound Files

    I archived a number of videos using quicktime, in mp4 format. I don't know if this was caused by a software update; but, these videos only play as sound files now. This has happened on quicktime videos stored independently on both of my Macs - so I don't think it is a problem with one of my computers.
    I must not be the only one who has experienced this problem. Does anyone know what to do about it?

    Thank you for the prompt response to my question. I opened up the "Movie Inspector". I don't see where it says "codecs"; but, is says:
    Format: H.264, 320 x 240, Millions AAC, Stereo (L R), 44.100 kHz.
    FPS: 29:97
    Playing FPS: (Available while playing.)
    Data Size: 5.72 MB
    Data Rate: 739.14 kbits / s
    Current Time: 0:00 01:04.93
    Duration: 0:00:01.04.93
    I hope that helps . . . Again, thank you for your reply.
    Best Wishes,
    Paul Hamilton

  • Minimum size/maximum quality MP3 sound file balance

    My first objective when creating MP3 files is to compress the sound file as much as possible, and I don't want any file to exceed 1MB, if possible. (One exception was compressing a 30 minute poetry recitation into a 1.8 MB file.) That turned out okay, but music is another story. So, I'd like to know more about how to strike a satisfactory balance between size and quality. For the iTunes MP3 import settings,this means choosing between (1) STEREO BIT RATES (16kbps to 320 kbps), (2) QUALITY (Low to Highest), and (3) CHANNEL (mono or stereo)
    In the past, I have always chosen mono, but it now occurs to me that the quality enhancement of stereo might justify the larger files caused by slightly higher kbps settings. That's just one example. Anyway, I'd like to read an article on the trade-offs between the variables that iTunes provides. Any
    suggestions?

    Stereo Bit Rate is what people are talking about when they say that a song is XXX kbps. (kbps is a measure of bit-rate, a measure of kilobytes per second).
    Stereo v. Mono really depends on what type of song you are sampling, and what you are listening to it on. For virtually all music recorded after 1970, though, you'd probably want to use Stereo.
    Also, you might get some mileage by making sure that you are importing the music at 41.100 kHz rather than using Auto or 48.000. (This is basically the "speed" at which the music is sampled. The faster its sampled, the more information it contains. It makes it higher quality, but also higher file size. You probably won't notice too much difference between 41.1 and 48.)
    Finally, you should also check the Variable Bit Rate box. This will help reduce the file size, as the bit rate will be reduced during silences and other times where the song doesn't need more information.
    As for the overall Bit Rate, its really subjective. Your best bet is to just try it at a few different levels and decide which is best for you.

  • Change working mode on X-Fi Titanium Fatality cause system freeze

    Hi.
    Using X-Fi Titanium Fatality soundcard and latest beta driver. But then I need change working mode (from Game to Audio Creation or Audio Creation to Game) it's cause system freeze. And only hard reset helps. No errors message or error logs in system.
    This problem appear only if I played any games in Game mode and after want listen music in Audio mode. If don't play any games or listen music, you can change modes multiple times without problem.
    I try clean Windows 7 installation and problem is still here.
    Attached log information from Creative System Information.
    My computer configuration - http://systemprofile.net/p/1/Kuja
    Attached Files
    CTSi.zip
    (18.4 KB, 0 views)

    Sorry but support doesn't monitor these discussion boards. Please use this email form to contact them.

  • Mountain Lion problem with CAF sound files

    I have various sound files in a Cocoa game under OSX with OpenAL and now with Mountain Lion all the small CAF files (5kb or less) do not play.  Al the other larger CAF files play as normal.  All the files load with no errors.
    Does anyone have any thoughts on what might be causing this?  Anyone else seen problems with sound files?

    This is how it looks like for me. This accours on every Boot Up.

Maybe you are looking for

  • Automatically Save

    I'm new to JavaScript and to LiveCycle ES2 and I am having some trouble with a form I designed. It's a little crude, but for the most part it works. It is an internal form for staff only and once completed, I need to save it in a shared folder withou

  • Jump Cuts are not working

    I am having trouble getting jump cuts to work. I put some music in the background, added beat markers, selected the part of the video (about 12 seconds over 21 beats) that I want to jump cut and clicked on 5 frames...*nothing happens* except the vide

  • FM 10 S1000D error

    Hi, I've intstalled the S1000D pack in FM10. However, when I try to open a new DM I get the following message: XML Read Report Log      June 22, 2012 10:52 am      Source Document: C:\Users\Anil.sahoo\Desktop\New folder\DMC- ATK-A-02-0102-pc-00A-020B

  • Macbook + windows? good or bad

    i'm going to college in the fall & looking for a laptop. macbook is on my maybe list. the question is, does windows work well on the macbook? should i just get a macbook w/ mac software and learn it (although that's really not an option) advice...?

  • OM17 issues: Resources and Prod Alloca

    Dear Gurus, I'd like to seek your help on how to resolve the following errors in our Q system. After running OM17 > Consistency Check LiveCache - APO DB, i had 2 errors that cannot be correct by the tool. What should i do in order to correct the foll