Problem with avi recording and parallel while loops

Hi,
I made a test-VI which captures my webcam and save it to an AVI. (based on a sample I found somewhere)
This works pretty fine so far (except the fact that the "frames per second"-constant has no effect and I am not able to change the resolution, but that's not the problem).
I have a VI which controls some hardware and I want to record this with the webcam. For testing I made a dummy-VI which should run in parallel with the VI above:
The 1st while loop should capture the webcam.
In the 2nd while loop is a dummy-VI which generates some random values and waits 5000ms (to simulate the hardware).
The problem is that those while loops do not work in parallel. When the execution is finished I get an AVI-file which is about 100ms long (so I guess it captures just 1 frame).
If I replace that whole dummy-VI thing with a stop button it works nicely, but if I try to use a "Wait (ms) Function" or a "Wait Until Next ms Multiple Function" the video is always just about 100ms.
Any idea how to implement multitasking or maybe even multithreading ?
Attachments:
lv_avi-recording.png ‏23 KB

Hi Chris3,
Just a random suggestion but have you tried removing the sequence structure? You can wire the error cluster from the IMAQdx Configure Grab.vi to both of the VIs for it to start parallely. 
If you put it in a sequence like that, it is most likely that the middle sequence has to complete execution before it can go to the next sequence but it couldn't because of the wait.
Let me know how it goes.
Warmest regards,
Lennard.C
Learning new things everyday...

Similar Messages

  • HT1338 problems with time  machine and parallels desktop,  mac osx mountain lion 10.8

    have a good day, i have been problems with time  machine and parallels desktop, dont work in mac osx 10.8, i upgrate two mac´s (macbook air, imac), in the two machines shows problems, could you help me please.
    two machines have good ram memory (macbook air 11.1 2010 early , imac 2009 late).
    i am waiting for your help.
    thanks.
    Jesus.

    Take a look here:
    http://pondini.org/TM/Troubleshooting.html
    Specifically, you'll probably want to try item #A5 on that page, but there's a lot of other info there that may be useful.

  • Anyone else having crash problems with mountain lion and parallels 8.0?

    Anyone else having crash problems running Mountain Lion and Parallels 8.0 ?

    Works OK so far for me. Take you issues to their forums for more direct help. These forums do not provide suport for Parallels.

  • PE7 problem with AVI recorded with Camstudio

    The AVI looks bad when opened in PE7. I search and found the follow discussion:
    http://www.adobeforums.com/webx/.59b73c31/0
    I cannot follow the suggestion because the DV-AVI in Microsoft Movie Maker can only do 720x480. I need 1280x720! However it seems PE7 handles WMV fine so I first run it through MMM to create WMV then import into PE7.
    My questions are:
    1) Any better solution available now?
    2) Can we expect Adobe to fix PE7? It shouldn't be technically difficult since the same AVI works fine in MMM. Both programs should have access to the codec (Camstudio lossless codec v1.4) installed.
    3) Can Premiere Pro handle the non-standard AVI?
    Thanks.
    Max

    Hi Steve,
    I thought I was quite clear. I use CamStudio to capture screen activity to create tutorial videos. I want to record at 1280x720 and make video that is sharp at 720p HD resolution so the text on the screen is clearly visible.
    CamStudio allows me to capture the AVI at this resolution using its loss-less codec. The resulting file is very small! The files can be played fine in Windows Media Player and edited smoothly in Windows Movie Maker. The final output of WMV files are also very small.
    If you want to see an example, here is a youtube video:
    http://www.youtube.com/watch?v=HX7rkXEVskQ
    There are some limitations in Movie Maker so I wanted to try PE7. Until last night I was still struggling with get the AVI in PE7 to look normal. Somehow PE7 just cannot handle the file even thought the Movie Maker can.
    After some deeper search, I found another codec Lagirith for Camstudio seems to work for PE7. I am trying it now.
    http://lags.leetcode.net/codec.html
    Thanks.
    Max

  • Problems with installing Recorder and LiveDrvUni-P

    I have a Sound Blaster Li've! dri've and was running the driver from the Li'veDrvPack_Patch. I have recently bought a turntable with an amp that has RCA cables. I hooked it up to my Li've! dri've and could not get it to play (the Aux 2 port did not show up in any of my software). To remedy the problem, I completely uninstalled my drivers and all SB ap
    ps.
    After that, I installed the Li'veDrvUni-Pack. I can now play from the Aux 2 input! Yay, one problem solved.
    Now, I cannot record anything. The Recorder app I used to have was uninstalled. I tried to re-install it by downloading it from the Creative website but it looks like that is just a patch and not the complete app. It won't install for me because I don't already have an earlier version installed. I took out my old SB Li've! driver and application CDs. I found the Recorder application on the driver CD. However, when I try to run the setup, I cannot install Recorder without installing the old drivers. I need the Li'veDrvUni-Pack version of drivers because my turntable won't work with it so I do not want to install these old drivers as I'd have to update it with the Li'veDrvPack_Patch instead. Is there anything I can do to remedy this or am I screwed? If the latter, any recommendations on recording software? I prefer free of course but reasonably priced is ok as long as it's not bloated.
    Thanks!

    Download the recorder app from the website. 'tis a self-extracting archi've which can be unzipped into a folder on yer hard disk. Unzip and go two levels down the directory tree and run the setup.exe in there. That should install it for you.

  • Problem with fixing pagerdeluxe and progressbar while using jsf-ibm.jar

    hi,
    I am having a jsf data table with <hx:pagerdeluxe> to navigate, and i am using (jsf-ibm-unknown-vers.jar) jar, this works fine. I need to insert a progress bar in my jsf and used <hx:progressBar> but this was not available in the old jar, So i upgraded my jar to jsf-ibm.jar when i ran this progress bar works fine but he pager deluxe shrinks and unable to navigate.. I am using jboss server .... Can any one help me out about regarding this. So that both works fine
    Thanks.
    Rakesh M

    This is not related to Sun JSF. You might have more luck if you ask component library specific questions at the website/forum/mailinglist of the component manfacturer.

  • Problem with two parallel While loops

    I have a serious problem with controlling two parallel While Loop. Here is the deal:
    I have written a VI to send a series of commands called Cycle through Serial Port to a custom hardware. One of these commands is setting motor pressure by sending it's command and changing it's voltage. After setting desired pressure I have to read and control motor pressure, again through serial port in a parallel loop. There is a Pressure Sensor in system and I can obtain current's motor pressure by sending a command and receiving pressure value. In the first While loop I send some commands to hardware including Pressure Setting Command trough a state machine. In the second While Loop I read pressure value and then decide to increase motor voltage or decrease  it. Now the problem is in communicating these two loops. In cycle after "Init" state when state reaches "Pressure 2 Bar" motor voltage will increase. Meanwhile I have to control this voltage in parallel While Loop. As you can see I used Local Variable to communicate between these two loops. The problem is that loops are not synchronized. Specially when I switch to "Pressure 3.8 Bar" state during cycle running control loop (second while) is still working based on "Pressure 2 Bar" state not 3.8 bar. Because of this motor pressure goes to 3.8 bar for a sec (becuase of  "Pressure 3.8 Bar" state) and comes back to 2 bar (because the second while still has not gotten that new state,most probably cause of all the delays in the loop)  and after couple seconds it goes back to 3.8 bar.
    I really don’t know what to do. Is there a way to fix this? Or I should consider a better way to do this?
    I went through Occurrence Palette but couldnt figure out how to embed that in the VI. 
    Sorry for my poor English. I attached VI and it's subVIs as a LLB file. I can explain more details if somebody wants. 
    Attachments:
    QuickStartCycle.llb ‏197 KB

    I make it a point to NEVER have a WAIT function inside a state machine.
    It sort of defeats the purpose, which I define as "Examine current state; decide whether you've met the conditions to advance to another state, then get out".
    For example, I have a single state machine VI controlling four identical instruments, via TCP connections.
    For some functions, that means issuing a command, waiting 60 seconds, then reading results.
    If I waited INSIDE the state machine, then it's tied up waiting on one device and cannot handle any others.
    Not a good plan.
    To handle this, I have a loop which calls the state machine.  After issuing the command, the state goes to "Waiting on Response", and there is a target time of 60 seconds from now.
    It's called over and over in that state, and each time merely compares NOW to the target time.  If NOW is past the target, then we read the results.
    the state machine can tell the caller when to call back; that's how I distinguish between an urgent need and nothing-to-do.
    By having the CALLER do the waiting, instead of the state machine itself, the state machine is free to handle another device, or do something else on the same device.
    You should be calling the state machine over and over and over anyway.  So, have the state machine "control the pressure" on every call, and THEN examine whatever state it's in.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I am having problems with my outlook 2011. While i am able to check and SEND email on all my other devices ( Ipad, iphone, Macbook), I am unable to do so with my iMac. This problem started suddenly and the error message i get is error 5.7.8. Please Help

    I  am having problems with my outlook 2011. While i am able to check and SEND email on all my other devices ( Ipad, iphone, Macbook), I am unablesend any email with my iMac ( i can recieve email) . This problem started suddenly and the error message i get is error 5.7.8. I have read the threads on line and went into settings, even created a new profile, nothing helps...Please advice..is this something to do with my keychain Access?

    As Outlook is not an Apple product, you will find more helpers familiar with Outlook here:
    Office for Mac forums

  • Hi guys, problem with grey screen and flashing question mark. on top of it while in utility, i'm unable to verify, verify disc permission or repair disc0 which is obviously my main hd. any ideas where to go from here? tried to reistall osx but no luck.

    hi guys, problem with grey screen and flashing question mark. should be straight forward affair but on top of it while in disc utility, i'm unable to verify, verify disc permission, repair or even erase disc0 which is obviously my main hd. any ideas where to go from here? tried to reinstall osx but no luck, stucked when asked to chose location to install osx. would really apreciate any kind of help with this cause i'm quite new mac user. ty

    If you don't have a backup, read this:
    https://discussions.apple.com/docs/DOC-1689

  • Problems with 1.5 and vista - audio recording

    Hello.  I have PP 1.5.  I have an Audio Techinca AT2020USB microphone.  I have a couple different computers running 1.5 - The one that has XP as an OS, I can use the mic to record audio.  On the computer that runs Vista, I can not.  Is anyone aware of any patch or anything that will allow me to make this work?
    Please, advise.  Thank you.
    bobhugejunk

    YOU ARE THE MAN!!!!  It took a little bit of working the configurations, but I got it to work....oh, me so happy...oh, oh, me so happy
    Thank you!
    Make sure you visit www.bobhughesmichigan.com for my music samples, schedule and video information!
    Date: Wed, 21 Oct 2009 19:34:20 -0600
    From: [email protected]
    To: [email protected]
    Subject: Problems with 1.5 and vista - audio recording
    As Jim points out, CS3 was the first Vista-certified version, though many did get PrPro 2.0 to run on it.
    Now, if PrPro 1.5 is running otherwise, you might have some luck with http://www.asio4all.com You'll need to download this freeware, install it, and then point PrPro to it in Edit>Preferences>Audio Hardware>Asio Settings for input and output.
    Good luck,
    Hunt
    >

  • How to start/stop 2 parallel while loops

    My question might be simple to answer for experts, but as a Labview beginner would be great to receive your help:
    I hav a VI with two parallel while loops. The first loop runs in a tact of 100 ms to aquire voltage, speed and to output a speed setpoint for a motor in the same tact, read from a table.
    Finally all values are written to a log-file.
    The question: As soon as I run my VI, data logging starts too and my motor runs. How can I implement a button to start all loops parallel, and how can they be parallel be stopped too if I want to stop measurement? Tryed to set a local variable for both stop buttons but it didn´t work.
    Thanx to all, Markus
    Attachments:
    screenshot.JPG ‏74 KB
    Measure and log data.vi ‏147 KB

    SnowMule wrote:
    Starting the two is easy; use the error cluster to enforce dataflow.
    Stopping them is a little trickier; the code you have now isn't very expandable so I'd recommend finding a different architecture.  A notifier functions like a queue with a size of 1, a queue works well for sending commands/data between loops.
    There is one other significant difference between queues and notifiers. A queue can only have one reader. If you have multiple readers of a queue who reads it will be random. A notifier can have multiple listeners. It fact, that is it's purpose.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Problem with cycle recording

    Greetings, folks. I've run into what I think is an odd problem in cycle recording in an audio track. What I wanted to do was to automatically record multiple takes of a guitar solo. Consulting the manual and both the LP7 and Advanced LP7 guides and set up what I thought was the proper configuration for doing that: under File > Song settings > Recording, I checked the "Auto mute" and "Auto Create Tracks in Cycle Record" checkboxes, I defined a cycle region, I defined a shorter autodrop zone within that cycle region, armed the track, then hit record. I thought that Logic would then create a new track with each cycle pass while I was playing, and that those tracks would play through the audio object of the track that had been armed for recording.
    What happened instead was that, after a single pass, recording would switch off (though it would continue to cycle in playback), so that in order to record multiple passes I needed to stop, reset the track to the beginning of the cycle region, and then hit record again. The audio regions I recorded on successive takes also don't display on individual tracks. I'd like to be able to see them all in the arrange window and be able to play them through the original track's audio object for editing purposes, but I can't figure out how to do that either (without creating multiple tracks and then manually dragging each take from the audio window).
    So I guess I have two questions: first, what did I do wrong in attempting to cycle record, and then how can I view all of the individually recorded takes in the arrange window?
    Thanks,
    Trent

    Jord, when I called it a "phenomenon" I did not mean to describe it as a bug or fault - you're right, it is a desireable feature of cycle recording.
    As far as your question goes: Suppose you are recording track-by-track a song with two parts, an acoustic guitar and vocals, and the acoustic guitar part has an intricate eight-bar solo that needs to be redone. The advantage of using cycle recording and autodrop here is that you could define a cycle region giving you a two-bar intro (say) to the part you need to rerecord and a couple of bars of outro, making it easier to accomplish a musical phrasing. For example, say you're a vocalist trying to record a one-octave scale, and your pitch is off on the "fa-so." With cycle recording and autodrop, you could sing along with the "do-re-mi" and settle your pitch before rerecording the notes you flubbed, whereas (as I understand it) if you're just rerecording the "fa-so" in cycle mode, you won't get the "do-re-mi" as an intro after the first pass and would then just hope that you're nailing the notes you need to rerecord cold.
    You can combine cycle recording with autodrop in Midi - why not in audio? It's a desireable feature in both.

  • Problems with Customer Service AND unexplained charges!

    I've been with Verizon for I-don't-know-how-many years, and through the years you are bound to have a few problems here and there but some of the problems are just ridiculous! It's also the same reocurring problem!!!!!!!!!!!!!!!! I was with Alltel first, before it was bought out by Verizon. The years I was with Alltel, I didn't have near as many problems. It seems EVERY time I do the smallest change or something to my phone or bill, I get a ridiculous amount of charges that I was NOT aware of, nor told about... EVEN IF I ask "So this isn't going to change my bill, or there will not be any unexpected/unexplained charges that I don't know about?"... BUT not matter how many times I ask... and NO matter how many times I am told "no"... there always is. For example.... last year, I updated and signed a new 2 year contract and purchased the first Driod. Before, my 30 day warranty was up, I was having problems with my Driod, and decided to send it in and get a new one. Before I did this.. I called customer service to make sure there would be no interuption in my bill, and there wouldn't be any unexpect charges, and there would be no difference in anything. I was told there was not, and once I recieved my new phone, just send it in and nothing would be changed. Of course, when I get my bill.. I see I was charged $500 for the new phone. It was explained to me that my credit card was reimbursed (which I never check that card, because I never used it expect to purchase the phone) and that I was recharged for the new phone, since it was a new phone. So I had to fork out the $500 (on top of my bill) and then wait months to get the $100 rebate card. Months after that, I "assumed liablity of my line" because I was on a plan with my family. I decided to have my own line, so I "assumed liability." I was not told that when I did that, I "renewed" my contract date. So I just added 6 more months to my 2 year contract. Was NOT told about that! Then again...... I was recently having problems with my Driod (the screen went black and would not come back on.) I had to turn on an OLD motorola razor, so I would not be without a phone for two days while I was waiting on my phone to come in. As soon as my phone came in, I had my Droid turned back on. I recieved my bill recently, and my bill was $200 over what it normally should be.... so I called in... apparently, when I had my phone replaced, they dropped off my data package and when I recieved my replacement driod, they never put it back on. So I was being charged for alllll my data usage... again I was NOT told about this. I wasn't even aware that they had dropped off my data package, and when/where did they get the authority to do that??? These are just a FEW of the problems that I have had.................................
    Does anyone have these reoccuring problems!?

    I understand that my bill can be viewed online, and I do view it fairly regularly, so if there are any unexplained charges, I can call Verizon asap. The problem does not come from me not understanding my bill, but from customer service. I have been with Verizon for a very long time, and it is a continuing problem. Where did Verizon get the 'OK' to drop my data package off my plan? Who authorized that?
    After calling Verizon and trying to find out the problem, the gentleman told me that when I activated on old phone while I was waiting on my new Droid to arrive, my data package was dropped off and I "should" have been told about that. When I reactiviated my new Droid, I "should" have called and had them restart my data package. I was not aware that when you activate an old phone that data plan is taken off your plan. In all my years of having cell phones, I never make two years with one phone. I have always, at one point, had to turn on an old phone, and my data package has NEVER changed. Why would I have my data package dropped and why would I have to call Verizon to have it restarted. I would never know to do that unless I was TOLD that my data packaged HAD to be re-added when I recieved my new phone, but I was never told of that.
    All of that is beside the point, the point is, Verizon was never given the authorization to change my plan. Never. My bill was taken care of and readjusted, and I am thankful for that. It does not change the fact it is always a hassle with Verizon Customer Service and I am always the one having to PROVE that I am not at fault, or that I was NEVER told of certian things. EVERY TIME I HAVE CALLED CUSTOMER SERVICE, I AM TOLD "I'M SORRY, THEY SHOULD HAVE TOLD YOU THAT."
    "they should" does not help my bill with the extra armount of charges.

  • Problems with Mail, Safari and iTunes after updating to 10.5.6

    Hi all,
    after installing 10.5.6 I have problems with Mail, Safari and iTunes.
    The time to open mails, websides and iTunes store is increasing dramatically since the update. If I open a webside parallel with Safari and Firefox, Safari needs minimum 15 times longer to open the complete side. Mails containing HTML-code also needs a long time to be opened. Tha same Problem with iTunes store. Connecting to the Store costs at least 30 - 40 seconds. And unfortunately for every iTunes store side I open. Its terrible
    Any idea or workaroung to solve that problem?
    Regards
    Michael

    First, run Disk Utility and repair permissions and then restart.
    I installed the 10.5.6 Combo update. Sometimes things get "lost in the translation" when you use Software Update depending on your installation. Perhaps you can download 10.5.6 Combo from the website and install it from your desktop.

Maybe you are looking for

  • XML Payload

    Hi All! What is the best way to exchange an XML content with FLEX app ? On a server side I have SAX Source, and right now I serialize it and pass it as a string to a FLEX app, that use new XML() to parse it. Is there are the better way to pass XML ?

  • Getting the path of the parent folder of a file?

    How can I get the parent folder/directory of a file? I cant't find any actions i Automator that will give me this. Will I have to do this through AppleScript? If so, then how? Anders

  • Only sound is working on airplay

    I'm trying to watch a movie I've downloaded from iTunes onto my iPad, but only sound is working on airplay,

  • Sequence: possible to use sequence in "Data" tab

    Hello, I have one question concerning the "Data" tab in Developer which makes it possible to enter rows like in an excel sheet. Is it possible to use a sequence in a direct way here? Entering "<sequence_name>".nextval or ""<sequence_name>".currval" j

  • Developing Web Services with TeleAtlas + custom data.

    A client has some TeleAltas data + own data and would like to develop some Web Services. Initially some WMS and WFS, then Geocoding + Inverse and maybe some routing. I see 2 options: 1. Try and get the data into the format required by the Oracle Open