Audio playback from within a state machine without halting execution

I have created a state machine that acquires and analyzes an input signal and transitions states based on triggers detected within that signal.  In one particular state I need to play back a prerecorded file (right now I am just using a .wav file for testing purposes).  I understand that due to the data flow model the state machine hangs up during the playback state until the playback is finished, but I need to find someway around this.  Obviously, whenever the machine hangs up it cannot continue acquiring and analyzing the signal.  How can I start the playback from within the state machine without halting its execution?
Solved!
Go to Solution.

Do you use the sound output VIs? If you do, try this. On the "Play Sound File VI" set the timeout value=0
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)

Similar Messages

  • Attempting to run audio playback bar within Captivate

    I am attempting to place a swf audio playback bar within a
    Captivate slide. It would allow users to play an audio file over
    and over within the same slide. The Captivate slide will not have a
    playback bar at the bottom of it.
    I've attempted to make a swf file with an embedded audio file
    and a playback bar using Flash MX. The swf file works just fine
    when it is played on its own. The playback controls (play, pause,
    rewind) in the bar work just fine, too. However, whenever I attempt
    to insert it within the Captivate 3 slide (as a swf animation), I
    get an error message that states:
    The Adobe Flash file has unresolved dependencies. This might
    cause Adobe Captivate to run incorrectly or stop working. Do you
    want to continue to add this file?
    When I do insert the file, I only get the audio portion of
    the file and not the playback bar. Can anyone help me with this?

    Looks like that's using loadMovie to bring in the audio file
    itself.
    That works fine? It's just the controls that don't appear?
    Paths get all
    whacked out when brought into Captivate as there are now more
    layers on
    top of the SWF you imported. So if the controls are
    referenced by
    anything that relies on an external path, it could be that
    the path is
    now wrong. It may be helpful to search the forum for posts
    with
    something like "_root._root" for examples of how others have
    handled this...
    ...if that's even part of the problem!
    Erik
    Skipthomp wrote:
    > Actually, I created the swf file in Flash MX using the
    following instructions:
    >
    >
    >
    http://www.actionscript.org/resources/articles/167/1/Flash-MX-Audio-Player/Page1
    > .html
    >
    > Other than attempting to create a playback bar in Flash,
    is there another way
    > to do this?
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • ATV (Gen3) Newest updates severely distort audio playback from iTunes. Please Help!!!

    I just updated my iTunes and ATV (Gen3) to the newest versions and immediately noticed severe distortion in audio playback from iTunes library. No hardware changes have been made and yesterday the sound quality was just fine. I have one running an optical cable into a high end receiver and another running off a HDMI cable into the TV with powered Speakers for output. I checked both systems on all inputs and it's only the Apple TV with the distortion. Someone please help as that is the only thing I really use on the device. iTunes version 12.0.1.26

    Weird, I just opened iTunes to add some songs and now its playing fine.
    Though I still can't figure out how to change the columns and having them stick to what I want .

  • No audio playback from timeline in fcp x.

    i have an issue with audio playback from the timeline. i can see it on the VU meter, but i can't hear it. i can hear it in the clip in the event library, but when i drop it to the timeline i hear nothing. i have changed settings in audio setup but nothing seems to work. i use a blackmagic intensity pro card to route audio to external speakers.
    everything works as it should with all other software including fcp 6, itunes etc.
    i also tried some headphones (after setting audio output to headphones) but still could not hear anything.
    what am i doing wrong?

    just tried one more time to re-route audio through line out and it worked!! so changed back to blackmagic card and VIOLA!! there it is.
    this forum is amazing, all you need to do is post a question, you don't even have to wait for an answer.
    cheers and thanks from OZ.

  • Audio Playback from Headphones Only - not speakers (CS6)

    I prefer to work with my USB headphones, but if I need to show someone what I'm working on I'll want to be able to playback a sequence in progress through the speakers.  This used to be a simple matter of unplugging the headphones and it would automatically default back to sending the audio through the speakers.  But at a certain point Adobe Premiere ceased to work that way. I would unplug the headphones and it would playback with no audio. I discovered if I saved my project, closed premiere, then made sure the headphones were unplugged when opening Premiere, it would work through the speakers.  Now, however, even that won't work.  It just simply won't playback through the speakers - ever.  Playback through the headphones continues to work fine.  Audio playback from other programs continue to go through the speakers just fine.
    I've gone into the audio output and output mapping preferences, and although I don't know what I'm doing there I simply tried every single option one at a time to see if it would solve the problem, but nothing changed it.  Any suggestions?

    Dave, I have had this problem on my MacBook Pro for many months. I've tried EVERYTHING Apple suggested - SMC reset, PRAM reset, everything EXCEPT take it in to be serviced by Apple. Here is my solution, which overcomes the hardware failure caused by the headphone jack optical sensor thinking something is plugged in there when there isn't.
    If you do not want to pay Apple to fix your MacBook optical sound jack hardware, you can overcome the problem with this procedure.
    This fix re-routes the output sound to the headphone jack input, and then to the speakers.
    Step 1. Plug headphones in (don’t worry, you won’t use them)
    Step 2. Change System Preferences -> Sound -> Change Internal Speakers to an Input!
    Step 3. Done!

  • Elements 11 won't play audio mp3 from within slide show

    I've created a slide show and have attempted to insert  an audio mp3 file. Audio file shows that it has been added to slide show but it wil not play.
    I've added the mp3 multiple ways, by using the add media -- audio from element organizer as well as by  add media ---audio from file but it won't play
    MP3 plays fine when I click on it from the organizer.
    I've tested the mp3's  that came with elements 11 and they play fine. What's the deal?

    Is it from within the iTunes library? Try deleting album art and then adding the track again.

  • How do I remove an old version of the Apple Software Updater from a Windows XP machine without a software disk?

    How do I remove an old version of the Apple Software Updater program from a Windows XP SP3 machine
    without an Apple Software disk? I keep getting a message saying that I need such a disk to uninstall
    the old program so I can install Itunes software so I can download apps for my new Iphone 5S.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any Apple Software Update entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install using an iTunesSetup.exe (or iTunes64Setup.exe) downloaded from the Apple Website:
    http://www.apple.com/itunes/download/
    Does it go through properly this time?

  • I can't get any audio playback from FCP X (or Premier Pro for that matter)…

    When I playback a clip with audio it shows good level in the meters but I get no sound from any device (internal speakers, USB headphones, 3.5mm Headphones etc etc). If I render out a clip the audio is there and plays back in QuickTIme.app.
    There are a few suspicious things like not being able to adjust the Master level slider in Sound Prefs, it's locked to Max position. I first became aware of this problem when I left After Effect and went to Premiere Pro to do an video comp that AE was choking on. PPro handled it well but no sound. Decided to try doing it in FCP X even though the interface is hard for me to 'get' striaght away I found stuff online about travel mattes but still no sound. Very frustrating I have a deadline — don't we all ;-)
    Any ideas?
    I uninstalled SoundFlower just in case. No difference. In the Audio MIDI Setup Utility.app, PremierPro and After Effexts come up as discrete devices:
    About to try zap the PRAM can't think what else to do although I found an article that says trash the audio prefs one by one.

    Make an appointment to your nearest Apple Genius bar.

  • Playback from within the Windows partition.

    Hi community, I am considering migrating my iTunes library on to the Windows partition so I could play music from the Mac OS as well as from WinXP.
    I wanted to know if there's any drawback to do such a thing.
    Additionally, I just noticed that the entire library would barely (if at all) fit within the empty space of the WinXP partition. Is there any way to break the Library into two, let's say, music only located within Win partition where as the rest within the Mac partition. Or the other way around? I think here I have to note that I like the feature to make iTunes to keep the library organized. What I mean is, I'd like to keep the feature enabled so I didn't need to worry about where I'm keeping what, and yet, I'd like to break the library into two.
    And, being slightly more ambitious. Is there any way to make the division within the music itself? I mean, not just a simple "music and non-music" division.
    Thanks in advance / George...

    Hi,
    Agree with Holger, I check on my Lync Windows Store app and can't find the meeting URL as well.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How do I get the audio playback from the source monitor to work? I have the trial version of the latest premiere and the audio works in that but not cs6

    I have the trial version of the latest premiere and the audio works in that but not cs6

    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    -especially your sound hardware, and the details of your video

  • Changing states from within a component

    Let's say that I have a TileList that is rendering data in a
    VBox. Eventually the TileList fills up and starts scrolling. I want
    to change states when clicking on item in the TileList.
    I don't want to place the click-attribute in the TileList,
    because it will change states when I am scrolling the list without
    actually selecting anything.
    I want to say click="currentState='state2'" inside the VBox,
    but that does not work because state2 is at the root level, and I
    don't know how to get to the root-level (in lack of a better word)
    from withing the component.
    This is not the proper syntax, so misunderstand me the right
    way here... Is there an equivallence to
    click="currentState='_root.state2'" in mxml?
    Thanks for any suggestions or best practices. I want the easy
    way out.
    This is the general structure...
    <mx:Application>
    <mx:states>
    <mx:State id="state1"/>
    <mx:State id="state2"/>
    <mx:State id="state3"/>
    </mx:states>
    <mx:TileList dataprovider="{...}">
    <mx:itemRenderer>
    <mx:component>
    <mx:VBox id="ClickThisBoxToChangeStates">
    <mx:Image/>
    <mx:Label/>
    </mx:Vbox>
    </mx:component>
    </mx:itemRenderer>
    </mx:TileList>
    </mx:Application>

    Your assumption is right.
    It doesn't work because there is no state2-state defined
    within the mx:component.
    In the documentation about changing states it says that I can
    go from application level and change states within a component;
    like this: click="currentState='mycomponent.anotherstate'" but not
    how I can change a state at application level from within a state.
    When I try, it says (at runtime) that the state is not defined.
    So I don't know why <mx:VBox
    click="currentState='state2'"/> doesn't work.
    I apprechiate your expertese a lot.

  • Producer Consumer with a state machine within the consumer

        Hi All,
    I have been trying to develop a data acquisition system with the producer consumer architecture.  To the left of the two main loops I initialize the serial port and any constants and variables im using.  I also have an obtain queue VI needed for enqueue and dequeue. Then in the producer loop i have a state machine.  The first state is where I wait for a button press on the front panel to write a GO signal on the serial line which will tell the device connected to the serial port to begin sampling data.  After this button press I go into the next state which is called my read state.
    In the read state I use a property node to read all of the available bytes at the serial port and then enqueue this collected data into a queue.  The state machine then is directed to continously go to the read state again and collect more data.
    Now this is where my dilemma is......  The consumer loop has the dequeue VI inside it and after this VI i have a state machine (while loop and case structure) which contains the following states
    1.  Build Array - build an array from the dequeue element and if there is any left over data from the parsing states it will build an array with the left over data and the dequeued data
    2.  Determine packet type - this state looks for the packet type byte(not necessarily the first byte in the message) and also check the next byte (packet length) to ensure that I am at the begininng of this chunk of data.  This state may be a little slow because there can be three different packet types and based on this byte and the packet length it may have to search the array several time to find the valid starting point.  This state also determine the next state to go to based on the packet type.
    3 packet type 1 parsing - parse data and store the remaining data it leftOver array.  Go to exit state.
    4 packet type 2 parsing - "" ""
    5 packet type 3 parsing - "" ""
    6 exit - leave this state machine and fall back to the consumer while loop.
    After it exit I think it should fall back to the consumer while loop and dequeue more data and enter the state machine again to build a new array with the dequeued data and leftover data.  It seems to work when I trace the execution using the Highlight execution feature, however when I run this all at full speed, it seems to go into the consumers 1st and 2nd states back and forth and not completely go through the state machine.
    I tried adding in a delay in the producer loop to give the consumer loop time, but I didnt notice any difference.  Is it possible that my dequeue element is retreiving more data while im still in the state machine, causing the execution to leave the state machine before it finished all states?
    Is there a better approach to take to solve this problem. Basically I need to read data at a 1,000,000 baudrate and parse it as quickly as possible so that I can break it up into 3 different packet types, write the data to a file, and graph the actual data (header info removed) in realtime.  I need to also ensure that I am not losing any of the collected data.  Data loss cannnot occur.

    A couple of things more to go along with Ben's pointers:
    You convert your data from a string, to a U8 array, to a Hex string array in the producer loop, then convert back to a integer to determine what to do with it.  In the process, you create two or three copies of your data, slowing yourself down quite a bit.  The code would be quite a bit more efficient if you left the data as a U8 array.  You can change the format of the controls and indicators to show hex values instead of integer by right clicking on them and selecting Format and Precision...
    Your search code is fairly inefficient.  I made a whack at making it a bit better.  See attachment below.
    If you continue to run into race conditions, you can debug them using a calls to the Windows debug write sprinkled liberally about your code.  Check out the post here for more information.
    Don't let your lack of format LabVIEW training stop you.  The biggest thing to get is the data flow paradigm (aka data is wires, not registers).  Once you get past that and learn how to pass data around using shift registers, queues, events, etc, you are most of the way to mastering LabVIEW.  The rest is just learning the plethora of functionality LabVIEW gives you (yes, I have reimplemented LabVIEW native code more than once in the process of learning).
    Let us know if you need more help.
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    serialUtil_V3_DFG.zip ‏137 KB

  • Audio playback delayed thru Firewire monitor - JVC BR-DV3000

    First I apologize for the length of this post, but I want to make sure I've adequately described the problem. For years, I've edited with FCP using a JVC HR-DVS2U (DV/SVHS combo deck) with great results. I use it to capture and output through firewire, also connected is a monitor and a UVW-1600 Beta machine.
    Now a buddy of mine also has a system using a JVC BR-DV3000. When I attempted to set his system up similar to mine, using the DV deck as the conduit for monitoring and recording to beta, he complained about audio dropping out at the beginning of transitions in the timeline. This was the weirdest thing! How does the DV machine know that a transition is taking place?! I thought it was just data out. I finally traded out machines with him and hooked it up to my system. At first, I didn't have any problems. I mainly edit 30-second commercials, so I played back a timeline with three dozen transitions in it without a hitch! So now I'm really confused, until one day I had a 20 minute long timeline of about 20 promos back to back, all digitized from beta. Sure enough there was the audio playback delay. I switched the audio playback from firewire to computer audio out and I did not have the problem, but I could not record out to tape in this configuration. Then I thought maybe it's just the length of the timeline, so I opened up a commercial timeline that plays back fine and pasted one of the beta promos in there. The 30 second spot played back fine and then when it hit the beta vid it had the audio dropout. Now understand, the audio is NOT out of sync, it just drops out for about two seconds when playing back from the timeline. You can watch the VU meter on the deck, it completely loses the audio for two seconds, mostly when you first start the timeline and at most transitions. I now think it may have something to do with the source material. I just digitized some video from DV that was shot on a JVC camera, when most of the stuff I shoot is from a Canon XL1. The JVC camera footage has this dropout issue. Any clues?

    This has happened to me too. The problem is with the firmware in older DV3000 decks. JVC has an update, but you can't do it yourself. JVC or your dealer will have to do it for you. In the meantime there is a workaround. Make sure your DV3000 is powered on FIRST. Then start FCP. That trick always worked for me. Good Luck.

  • State machine VS producer consumer architecture - Time Analysis

    After learning various methods to program efficiently and learn how to use SM and Producer consumer. I built a program to control stepper motor in both these techniques.
    Here is the RESULT. As we can see a simple state machine without any complicated producer consumer technique performs faster than the second one.
    I am not sure which is still the best based on performance and optimization. Please advise which one should I keep and why.
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]

    This is with state machine alone
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]
    Attachments:
    Control 1.ctl ‏6 KB
    Control 2.ctl ‏6 KB
    Motor-UNI_Directiona Dev 3-TIME_ANALYSIS-2.vi ‏54 KB

  • Replacing a state machine?

    I am fairly new to using state machines and am hoping there is a simple solution to this question. I have one state machine that is saved (ie StateMachine1.ctl). I created a new state machine (StateMachine2.ctl) and want to replace all instances of StateMachine1 with StateMachine2 in my VI. Is there a simple way of changing the state machine without losing all the linked instances?
    Thanks.
    LWolfe.
    Solved!
    Go to Solution.

    LWolfe wrote:
    I am fairly new to using state machines and am hoping there is a simple solution to this question. I have one state machine that is saved (ie StateMachine1.ctl). I created a new state machine (StateMachine2.ctl) and want to replace all instances of StateMachine1 with StateMachine2 in my VI. Is there a simple way of changing the state machine without losing all the linked instances?
    Thanks.
    LWolfe.
    Let's make sure we are using the correct terminolgy here.  It seems that what you are calling a "state machine" is really a custom control, probably typedef'd and because it was typedef'd, probably an enum.  I like to make mistakes like that, mistakenly calling something by the name of something else very closely associated with it. 
    So is your question really, "How do I replace one custom control with another?"
    In this case, it might be just easier to modify your first control and forget about using the second.  Assuming again that it is a typedef'd enum control, modifying the typedef'd enum that is already part of your state machine will ensure that the changes are propagated to all the other places.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

Maybe you are looking for

  • Price from PIR instead of PO

    Hi Gurus GR in PO  has been done taken price from PIR instead of PO. Price in PO was correct but PIR was wrong at the momment of the GR posting. This is corrected now, but I would like confirmation of how the systems work when postings goods receptio

  • Bill of Exchange (Hundi)

    I want a list of Bill of Exchange (Hundi) (accepted by vendors) outstanding as on date. How can I get this list. Is there any Configurational requirement? And also can I get any warning message or signal when due date of Bill of Exchange (Hundi) is a

  • Set icon_name for push_button in Block - current row

    Hi all, i've got a little problem: I builded an Block. The Block contains 10 rows with data-columns and a push_button (the push_button is part of the block so there are 10 buttons - each for one row). Now i want to change the icon of the push_button

  • Call manager 5 in cisco phone

    Hello All, Maximum 3 call managers can be added in CM group and one SRST reference. So totally 4 CM servers but why we have CM server 5 in all cisco phones under network configuration. -Murali

  • Can I recover a lost Pages document on my iMac?

    I lost a document that was never saved. Is there any way to get it back? I'm using my iMac (Mac OS X Version 10.6.8) and Pages (Version 4.1 (923))