Playback of Wav file

Hi there,
I have had a look through the back posts to try and sort my problem out, but have been unable to succeed in understanding. Problem is that I'm not very good with Labview, and the people who normally are have left my department. So I'm trying to work things out in ignorance. Basically I want to change my current Labview VI so that instead of continuously playing back a 'Simulate Signal' VI (a sine wave as it happens) I want to continuously playback a pre-recorded wave file. I just cannot work out how to incorporate this task into the program. We're using an SCB-68 interface board. I've attatched the program we're using below, in case any kind soul can offer advice.
Many thanks,
mike
Attachments:
Wav_playback.vi ‏102 KB

Hi Mike,
You have not stated what version of LabVIEW you have so I have modified your VI in LabVIEW 7.1 you will need LabVIEW 7.1 or later to open the attachments.
I have modified you original VI and kept the name the same "Wav_playback-1.vi" in THis I have removed the Tradiotional DAQ call, as you also had a DAQmx call, I have wired everything together so it should run. However I don't think this will work as you are using Tasks (which you have not provided) and then you setup timing and triggering again. All this is setup in the Task.
For the reason above, I have created "Wav_playback-_mod.vi" which has my original modifications as well as removing timing from you AO section, as this is in your task. In the AI line I have removed the Task and added the create Virtual channel call to setup the input as a Voltage input without using tasks as you need control of the sample timing VI, so seting this up as each step is better than using tasks.
Regards
JamesC
NIUK and Ireland
Attachments:
Wav_playback-1.vi ‏116 KB
Wav_playback-_mod.vi ‏120 KB

Similar Messages

  • Stuttering during Playback of .wav files

    I get stuttering during Playback of .wav files in my PC music library. I am using X-Fi Elite Pro. This doesn't do it all of the time, only occasionally. @97.22.92.33

    Mathew Hennessy wrote:
    How do I make it play a WAV playlist continuously?
    Make sure that all the little boxes (in the column at the left) have a check-mark in them.

  • Playback of WAV files, doesn't automatically go to next track?

    I have a number of DTS-encode WAV files in a playlist that play fine thru my Airport Express, but unfortunately, it seems that iTunes doesn't automatically go from the end of one track onto the next track.
    How do I make it play a WAV playlist continuously?

    Mathew Hennessy wrote:
    How do I make it play a WAV playlist continuously?
    Make sure that all the little boxes (in the column at the left) have a check-mark in them.

  • Can a Mac Book Pro playback 96K WAV files?

    Trying to listen to a 96K WAV file through the headphone output of a 2009 Mac Book Pro.  Does anyone know if that is possible?

    96K 24 bit.  I can play it back on my audio interface but I'm trying to find out if someone without an interface can hear an accurate version of a stereo song mix at that resolution.

  • How do I get the block duration for wave file playback?

    I'm using a LV example "Getting Started with sound and vibration express vi's (simulated).  When I play back the examples the audio does not match the graphing updates as the file is played. That is, the sound continues to play after the graphs have finished reading the file.  I can change the input box "block duration (s)" to achieve playback coordination between graph updates and audio. Is it possible to calculate this value from data included in the file?  If not then if I have a vi that records sound to a wav file could the "block duration" be calculated there and passed to the playback vi?  Just not sure what makes up the block duration.  Thanks

    Hi Mike,
    The Block Duration that is configured from the Front Panel is a control that is used to determine how much of the sound file has the analysis performed.  From the Block Diagram the Block Duration control is used to calculate the subset of the Get Waveform Subset.vi.  Also notice the sound file is opened prior to entering the case structure, thus will begin first to execute due to dataflow.  This may be easier to see using highlight execution.  The sound VIs are not affected by the Block Duration at all as the entire sound file will be played.  Take the data from your sound file and display it onto a chart or begin processing as in the Read Sound File to Chart.vi example for immediate updates  Hopefully this helps!
    Regards,
    h_baker
    National Instruments
    Applications Engineer
    Digital Multimeter Resources

  • Placing 24/192 WAV files on iTunes for playback through Wadia 170 iTranspor

    I record live music on a Sound Devices 722 digital audio recorder at 24/192 as WAV files. I can import the 24/192 WAV file into iTunes on a Mac and the bit rate is displayed as 9216 kps. This makes sense since 24x192=9216. When I click on the song in iTunes it plays back at the correct tempo.
    I bought a Wadia 170 iTransport since it says it will output bit perfect digital files. I'd love to hear my recordings this way over my sound system. I understand that this would chew up drive space real fast on an iPod. However . . .
    I can't get my iPod to accept the 9216 kps song files. I went to set iTunes / Preferences / Advanced / Importing to WAV but the options for sample rate only go up to 48.0 kps and the bit rate up to 16-bit.
    Any thoughts or suggestions on how to overcome this will be appreciated.

    Hi,
    I'm from germany so no 'best buy' but I think I will lock around sleeve/bag for a different product with same measures. Any tip?
    The clear plastic case is not what I want. I would like to use the player without such protections. I just want a sleeve to protect the player while its in my jacket/pants.
    Btw, i have bought this version: Creative Zen (maybe european version?). I also doesn't seem to have your mentioned sleeve. I also couldn't find it on the website.
    Anyway, thank you,
    Chris

  • Wave File Has No Audio in Playback

    I have several wave files that don't have an audio when played back. There appears to be frequency levels and when opened in Soundtrack Pro the peaks are moving. I have tried playing the file in iTunes, and Final Cut Pro to no avail. There are a couple of these files that play fine through all of these mediums. Does anyone have any suggestions?

    Have you tried either of these formats: AIFF or WAV?

  • Dose WAV files really reduces the playback ti

    zen micro just has 2 mins of anti-shock time, and depends on the bitrate of music...
    It's so bad that no player support the APE files(perfect sound quality and half the size)

    Zericho: There's no such thing as "anti-shock" time on a hard disk based MP3 player. See here in the Zen FAQ at Nomadness.net.
    WAV files will run the hard disk almost constantly, so dramatically reduce the battery time. From tests I remember on the NJB3, it was approximately 20-30% that of a 28 kbit/s MP3 file.
    WAV files also have other problems in that they have no tagging system, although using MediaSource you can associate tags with them for transfer.
    WMA lossless support has been on the wishlist for a while.
    FLAC is a more common lossless format supported by the Rio Karma, and perhaps other players. I think the iPod has a lossless format also. I've still heard some people say that both a lossless file and a "decompressed" lossless file sound different from the original. Of course there's others that say you can't hear the difference between a 320kbit/s LAME encoded MP3 and the original file...

  • Tempo problems with imported wav files

    Hey everyone, sorry if there's a quick fix for this in the forums that I couldn't find, but I've been having some tempo problems with imported .wav files.
    Long story short, my system couldn't handle playing all the tracks for a song while recording drums, so I bounced out an mp3 of the song and put it in a new Logic file so my drummer could just play along to that as I recorded him. Unfortunately, the original song is at 167 bpm, but I forgot to change the bpm in the new Logic file with the .mp3 file of the song to 167 bpm, so it was left at the default 120 bpm.
    So, the drums were recorded at the correct 167 bpm, but Logic thinks that those new drum .wav files should be played at 120 bpm, so when I import my drum tracks back into the original file, they do not play correctly at all.
    I could get record it all again, but I wanted to check if there was a way I could salvage what I already have, since my drummer lives about an hour away right now and can't just come over whenever he wants.
    Thanks for the help! I really appreciate it.

    Hi,
    First, do not use MP3 in Logic, the sound quality is less than AIFF, WAV or CAF, and Logic has to decode it for playback, making it a heavier burden on the CPU than an uncoded audiofile, such as AIFF, WAV or CAF.
    Secondly, audio files are independent of Logic's tempo. If you bounce down an audio file in any format (other than Apple Loop), it will play back at the same speed, +regardless of Logics' tempo setting+, either at recording or playback. Logic doesn't 'think' anything. The BPM is only important to MIDI tracks, or to the spacing between audio files. The audio files themselves *are not affected* by the tempo setting. If you import an audio file of tempo 167 into a 120 BPM project, the file will still play at 167, only Logic will indicate the wrong bar positions.
    regards, Erik.

  • Full Duplex Lost with Wave Files on SB Live! Value (W

    <SPAN>Following a clean install upgrade from WinME to WinXP SP2 on a Dell Dimension 400 with an OEM-installed SB Li've! Value (WDM) PCI card onboard, full duplex wave audio (recording one wave file while playing back one or more other wave files) ups and disappears ? ME had it, XP doesn?t.<SPAN> The record side of software mixers I use on the XP OS (Quartz AudioMaster, NCH Swift Sound MixPad/WavePad) fail to acquire or record the wave signal(s) being played back by the mixer side of the application.<SPAN> Stand alone recorders (Roxio Easy Audio Capture, HotKey Sound Recorder) also fail to acquire or record the wave signal(s) being played back by the aforementioned mixers.<SPAN> But if I switch the record input to microphone during the record pass (on those apps that permit such midstream switching), the mic records without incident.
    <SPAN>Creative?s Auto Update shows all drivers for the sound card are up to date.<SPAN> Applying Creative?s Knowledge Base Solution ID 645 passes all DXDIAG tests with no problems (text file results available if anyone cares to see them) but the manual test using twin Sound Recorders fails as the second copy (record-designated) Sound Recorder fails to acquire or record a signal from the first copy (playback-designated) Sound Recorder (no error codes display at any time).<SPAN> Clean booting WinXP and running the same record passes doesn?t rectify the problem.
    <SPAN>Anyone know what?s going on here?<SPAN> And how to fix it's<SPAN> I?m stumped.
    <SPAN>TIA . . .

    For benefit of anyone who hits this thread in a search:
    FWIW - Following 5-weeks of troubleshooting this problem with Microsoft Tech Support (including a parallel install of the XP SP2 OS), we reached the following conclusion: <SPAN>Since the OEM sound card (Creative Model CT4780) was known to operate in full-duplex mode without incident under my system's prior ME OS but the same card fails to consistently operate in full-duplex mode while running under a virgin parallel install of the XP OS, the source of my full-duplex problem must lie in the files and drivers resident on the XP OS CDROM and dropped to my system by the OS loader/installer.<SPAN> There really isn't any other plausible explanation.<SPAN> Absent its drivers, a sound card's nati've hardware state is either going to be full-duplex or it isn't - it would never be full-duplex sometimes and half-duplex (or simplex) the rest.
    <SPAN>The problem was resolved when a retail, nearly identical, sound card (Creative <SPAN>Model SB040) and the drivers and files from its CDROM, were installed on the same system.
    <SPAN><SPAN>Perhaps, somewhere, drivers exist that will permit the CT4780 to operate consistently in full-duplex mode on an XP SP2 OS - but neither Microsoft, nor I, had any success in locating them.

  • How to determine time value of a .wav file in real time as it plays?

    Hi all.
    I need to build a vi in which a .wav sound file is represented in a Waveform graph, and at the same time, I want to play that file, and have a vertical cursor line running along the Waveform graph, in order to have a visual representation of where the sound track is, in terms of time.
    Making the .wav file to appear graphicaly on a Waveform graph was an easy task to do, but then, I was´nt able to extract the time information of that .wav file, at the same time that this file is being played.
    This is a very common situation in music players, video players etc, where some kind of graphical artifact, represents in real time where the track is while it plays.

    Hi, this is the first ActiveX control I have played with but its really cool.
    I read this first: -
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/iwmpcontrolsinterface.asp
    Which covers "The IWMPControls interface provides a way to manipulate the playback of a media item."
    Then built the attached sample.
    It should now be straight forward to attach the position information shown to a graph control cursor postion.
    You will need to set a file of your own choosing in the VI first.
    Let us all know if this is what you wanted.
    Attachments:
    mediaplayer current play position demo.vi ‏39 KB

  • ITunes update and WAV files

    I recently updated my iTunes and since then my WAV files playback very distorted. Not being a mac boffin I tried to retrieve my old iTunes through my timemachine. This told me that I didn't have enough privileges with iTunes to carry out the function.....now I can't access my iTunes at all. How can I sort this all out?

    VictorSMiller wrote:
    I have a number of WAV files on my PC (from an Olympus digital recorder). Before iTunes version 8, the played just fine. Starting with version 8, they all play extremely noisy and choppy. I've tried playing selected files on Quicktime and they all play just fine. Clearly some sort of bug was introduced in version 8. Has anyone else encountered this?
    Victor
    Yes, that problem with WAVs from voice recorders has been reported here several times. Haven't seen anything about a fix. Converting the files to MP3 will probably help.

  • WAV file won't replay in LabView or load in WMP, but works in VLC

    I'm creating an audio file for an interview with the code snippet attached (VI is very large and does a lot of unrelated processing).  This audio is recorded in the "interview" subvi.  At completion, this subvi is closed and the "process" subvi is opened.  If this process is followed, labview will open and play the WAV file with no problem.  Alternatively, "process" can be run as a stand-alone.  If this is done, I get the error 4810 at Sound File Read Open (possible reason: cannot recognize sound format).  If I try to open the file in Windows Media Player, the wav will open, but will have a length of 0.  If I open the wav in VLC, it plays with no problem.  I haven't tried saving as a new file, but this is a sortof untenable solution anyway.  For what it's worth, this problem arose when the audio recording was changed to a queue-based process.  I've attached the old (working) code for reference.
    Thanks,
    Brendan
    Solved!
    Go to Solution.
    Attachments:
    interview sound recording.JPG ‏65 KB
    playback audio.JPG ‏21 KB
    old audio storage.JPG ‏94 KB

    I'm also adding a screen cap of the working (right) and non-working (left) headers created by the snippets attached above.  I don't have a lot of experience with this, but it strikes me as curious that the non-working (left) header has no value for what I think should be the File Size (data) section (as referenced here http://www.topherlee.com/software/pcm-tut-wavformat.html).  I note also that the header seems to be 12 bytes longer that most references suggest, but this is the case in both the working and non-working headers (I'm looking specifically at offset 36-47 in both).
    Attachments:
    WAV headers.JPG ‏61 KB

  • WAV files play back too fast

    When I choose File->Open to open an AIFF, MP3 or other file in Audition CS6, it simply plays back at normal speed. However, when I open a WAV file, it plays back at double speed (voices become high-pitched). NOTE: The sample rate (44.1) and bit size settings match exactly. This is not a sample rate issue. The frame rate is NOT set to custom.
    This happens only to WAV files. The platform Mac OS X 10.8.3. Any ideas?

    For some reason the songs seem to play back faster than they should. Any ideas?
    How much faster? Have you timed the playback speed with a stop watch and compared the actual duration with the duration (Time) in the browser?
    If youtube plays back slower, it might be caused by the network.
    I have only seen this on iTunes for Windows so far - you are not by any chance on Windows right now, are you?
    Are you running the latest version of iTunes?
    And do you have any non-standard Audio devices installed - look at System Preferences > Audio > Output ?
    Did you install any Audio Drivers?
    Also look at the Audio Devices in Audio MIDI setup (Applications > Utilities):
    Check the Format for you output device if it is set to 441000 Hz (compare the setting to the sample rate you see on your songs in the iTunes Library).
    If this setting is wrong, iTunes may try to playback at the wrong speed.
    Regards
    Léonie

  • Not enough memory to plot wav. file

    Hello....
    I'm new in LabVIEW and i'm try do a simple v.i. that reads a wav. file and plots it also makes spectrum analyze.
    Because the wav. that i use is ultrasound with a sampling freq. 250KHz,1channel,16bits when i open a 9 second file the V.I. plots it; but when i open an 1 minute duration file i get the "not enought memory" error.
    My system is a laptop pc with 2gb ram.
    I attach the V.I.
    Do anyone know how can i make this work?
    Thnks
    Attachments:
    UltraSound.vi ‏17 KB

    Thnks for the interest.....
    I had read many tutorials that they say that LabVIEW needs contiguous memory but i was wondering if there is any solution.
    With this V.I. when i close all the programs i manage to read and the 1 minute file but the proplem comes when i want to plot bigger files.
    I want to make it atleast to plot 6 minutes files.
    Also this is a part of one project that will records,analyzes and plays those files with the DAQ 6062E hardware.
    I allready manage to modified the standard LabVIEW V.I.'s and make one  that can plays a 6 minutes file but this works only for the playback.
    Now for the analyzing the waveform graph does not like the files.
    Please don't tell me that is an unsolve problem.... :-(
    I attach the V.I. of playback.
    Attachments:
    UltraSoundPlayer.vi ‏41 KB

Maybe you are looking for