Pause and restarting a waveform.

Hi all,
             Im new to labview and ive only version 6.1 licensed and i cant shift from it for some reasons.
Yesterday i wrote my first simple  program reading from a tutorial , i created a random waveform plotter.But what i want now is that i need to add a pause and continue or restart button to it.
Can some addition to the while loop can do the trick??..i tired a lot but cudnt achieve it...Can some body help??
Im atttaching the VI..
(Note please:-if somebody puts back a vi saved in LV8 or >6 i cant open it here)
Thanking You.
Steve.
Solved!
Go to Solution.
Attachments:
Random waveform plotter.vi ‏23 KB

Hello,
As far as I understood from your post, you need to stop sending data to the chart and then restart doing that.
You can do it in several ways.
The first obvious option is to add a case structure to the random generation and the conection to the chart. Conect a button to the case that will define if new values are added to the chart or not.
This way your while loop will not stop iterating, you just control if you send values to the chart or not.
If you really want to stop the loop from iterating, you can for example add another while loop in a case structure inside that one, so when you press the button you enter the second while loop and only continue iterating the main loop when you stop the second loop. 
I don't have LV6.1 installed, so I attached 2 jpg to show you what I mean.
Keep playing with these stuff, things will become clear with time...
Hope it helps,
Paulo 
Attachments:
1stOption.JPG ‏18 KB
2ndOption.JPG ‏21 KB

Similar Messages

  • Background image vertically distorted -appears ok when paused and restarted

    using 768 x 576 .jpg images as background for a PAL standard idvd:
    - when burned with "PAL"Standard (4:3)" / "professional quality" (movie length is 55 min,)
    - & watching on a laptop/a mac g5 / a windows pc
    the images appeared vertically distorted
    but:
    when pausing and restarting the dvd again the image
    changes to the desired size
    even when i used a quicktime as background movie
    the same problem occurs
    whereas:
    the display on a TV* was fine
    (given that a 4:3 ratio was set for a widescreen tv or using a 4:3 ratio TV)
    when i did not use any image (burning just the movie)
    nothing appeared to be distorted (the movie is not distorted
    neither are the no-images-no-backgrounds-at-all menu screens)
    Is there any specific colour depth or other technical information
    i need to consider to solve this problem?
    ... I noticed that the colour of the image looks significantly different
    on a TV compared to laptop/mac/windows pc
    whereas the movie's colour appears to be quite similar
    on TV/laptop/mac/windows pc ....

    Thank you for trying to help, I really appreciate it.
    It does not matter which option you use. As you know, one would want the background image on each page of a site to be the same size and location to provide a seamless transition from page to page. When using the blank template, the page can have an image put in (using fit, fill, stretch, orig) and be contiguous from page to page. However, when using the Photo template, after clicking on an album image to view larger, the background image unexplicably shifts/distorts downward on the page, and stays that way even upon returning to the album.

  • How to get slideshow to Pause and restart with auto play enabled? all slideshow do not restart!

    How to get slideshow to Pause and restart with auto play enabled? Happening in all slideshow do not restart once one photo is selected

    I agree cwclark, I was going to ask the exact same thing, and yes, the only way to 'restart' the auto play is to reload the page which is frustrating to say the least. Every other site I've seen with this kind of 'auto-play' slide show still auto-plays even after clicking the 'next' or 'previous' buttons. Adobe, you need to get a fix for this ASAP

  • Itunes contstantly pausing and restarting

    My iPhone 3g is constantly pausing and restarting when used in my car connected to an auxiliary input. I am running a simple wire 3.5mm (headphone port) wire from the iphone to another 3.5mm (headphone port) I have built into my car. For whatever reason when using this setup the itunes app in iphone will constantly freeze not allowing me to listen to music. I've tried replacing the cable which allowed it to work briefly but the problem has started again, any thoughts? Does apple offer a standard cable for something like this?

    Hello j0dy77, limeylove88,
    If the issue is present with multiple systems, then it is likely that there is something going on with the iPhone iteslf. The iPod starting up automatically should not happen unless you quit the iPod function by disconnecting the audio cable previously.
    You may want to try restoring the iPhone and setting it up as a new phone per this article:
    http://support.apple.com/kb/HT1414
    Before you restore the iPhone, you will want to follow these steps to preserve the data on your iPhone:
    Open Preferences from the Edit Menu.
    Select the Devices tab.
    Put a check in the "Disable automatic syncing for iPhones and iPods" box.
    Connect your iPhone and sync (this will create a fresh backup file in iTunes for later).
    Once the sync is complete, follow the restore section of the article.
    At the end of the restore process, you are presented with two options - restore from backup or setup as a new phone - choose the new phone option.
    One of the setup screens gives you a list of options regarding what content you want to sync to the "new" iPhone - sync you contacts, calendars and music (leave Applications out for now to eliminate possible issues caused by third party applications).
    Once the sync is complete, test the iPhone with the stereo(s) and headphones.
    If the issue persist, you will want to arrange for service either by calling tech support 1-800-my-iphone, or by making a reservation at your local Apple Retail Store via this link:
    http://www.apple.com/retail/
    Charles H.

  • How to pause and restart a timed loop in Labview

    I am trying to pause and then restart a timed process (series of stepd that happen at precise times), which is implemented using a timed loop.
    I was wondering if anybody out there can give me a hint.
    Thanks

    Roxanne,
    Well, it's not exactly a "pause", but here's a way to stop and re-start your Timed Loop.
    See the attached example in LV2010.
    A While Loop and a Queue are used to allow you to start and re-start the Timed Loop.
    The "Stop Timed Structure" vi is used to stop the Timed Loop.
    Releasing the Queue stops the While Loop when you end the program.
    Note that the example is very similar to the NI template "Producer/Consumer Design Pattern (Events)". (File>>New)
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    timed loop.vi ‏39 KB

  • Pause and restart while loop after defined time

    Hello,
    What I need is to find a way to run a while loop that is acquiring and analysing a movie, to pause this while loop for a time I specify, and re-run it after that time has passed.
    I'm attaching a picture of the relevant parts of my VI. In the case structure of the "true" or "false", the program is checking, online, if the eye (my camera is focusing on the eye) is open above some threshold and for a certain duration of time. When "condition to start" is met, two things happen: one, the case structure changes to "false" and waits for some time; second, the loop of my state machine is triggered. Problem is, because I'm not really pausing my while loop (it's still running even when it's the "false" case), my state machine runs really slowly - for example, I have a part of video acquisition in my state machine, and saving the frames to avi takes forever. 
    Does anyone have any idea of how I could stop the while loop for x time?
    Thanks in advance!
    Attachments:
    help_pauseWhileLoop.png ‏112 KB

    Hi,
    I'm attaching (hopefully) better pics, if you still can't see let me know and I'll attach the code. About the frame saving and acquistion, I'm already doing that in a separate loop - you can't see my entire code in the pics, but what I have is a state machine that works as a producer loop and then a consumer loop, where video acquisition is happening. Now I'm working on a third loop (the one in the picture), that starts before the others and where I don't even want to save the movies - I just want it to check, online, if the condition is met (e g, the eye is open for a specified time) and if so, start the state machine and stop running, until the state machine has finished running. Then do the same, after waiting a specified time. I know that the problem is that the while loop keeps running after triggering the state machine, because if I remove that part and trigger it manually, the VI runs just fine and really fast. So how can I run, stop and restart the while loop?
    Attachments:
    help_pauseWhileLoop1.png ‏56 KB
    help_pauseWhileLoop2.png ‏32 KB

  • Can I pause and restart a streaming album?

    If I stream an album on the iTunes store, then pause it just before it ends, can I restart it without it re-downloading, or will it download again when I restart?
    The album in question is John Mayer's Paradise Valley.
    Just wondering because I absolutely love this album and can't stop listening to it but I don't want to overload our data cap.

    Ideally, redoing the code with a state machine would be the best way to go, if only so that you can add this powerful tool to your toolbox. That being said, wrapping your existing code in a while loop, with its own stop button to stop the program, will work if executing the entire sequence is ok. Where you might run into problems with this is if there is a step in the sequence that shouldn't be executed again, then it would require wrapping that sequence frame's code in a case statement that executes only the first time through. If you have the time, learning how to use a state machine would be a real benefit, really taking your LabVIEW knowledge to the next step, if you pardon the pun.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • ITunes pauses and restarts

    While playing a song iTunes often pauses the song for a split second and then stars again with no intervention from me, it's very weird, I've tried restarting the imac, repairing disk permissions both to no avail. It's driving me nuts, please help or post here if you have the same problem.
    My music is stored on an external USB drive
    It happens randomly, when I hear a pause I can rewind the track and it doesn't pause in the same position I have tried playing the music on my ps3 just to check it wasn't a problem with the song files, it isn't they all play fine.
    I think this started to happen after the 10.5.7 update or the itunes 8.1.1 update. I can't pinpoint it to either one, before the updates all was hunky dory.

    Check where your library is located. If you have a shared library between multiple user on your iMac and/or your iTune library is in a shared or public folder, this may happen due to this. Many use an external drive or wireless HDD to access and playback their songs via multiple desktops or laptops, they might be facing this problem as well.
    The solution could be, to have entire library on the main music folder on each user. Pros: it will not pause often and will play flawlessly. Cons: if copied library on each user, it may use lot space on hard drive.
    Unless someone have better idea.
    Hope this helps.

  • Initial Print jobs 'communication error with device'. Pause and restart job

    So, I have an odd variant of the Leopard print problem; on 3 separate systems.
    When I print to an HP Photosmart C7180, which setup fine, which I can scan to fine, the print job throws an error :error communicating with device, switch on and off' and so forth. It does that from any app, and consistently. I am printing via bonjour, the printer is networked, but on a static IP.
    To fix this EVERY-TIME I PAUSE printer, then start printer again. It immediately starts working, consistently until I sleep, log out, or don't print for a while.
    This seems to be some timeout issue or such. I tried IP printing, but no difference.
    Resetting the print system also did not help.
    It's not catastrophic but sooo annoying. Any input appreciated!
    Thx,
    Dan

    Hello SunnygirlQ. Welcome to the Apple Discussions!
    Unfortunately, not all USB printers are compatible with AirPort base stations. In addition, the AirPort's USB port does not support the "advanced" printer functions, like scanning, copying or faxing, of multi-function printers.
    To see if your printer is compatible, take a look at this iFelix Unofficial AirPort Printer Compatibility link.
    If your printer isn't listed, it doesn't necessarily mean it won't work, but simply that it has not been verified. iFelix also provides the following workaround for printers not on the list that would certainly be worth a try.
    Also you can try this Apple Tech Support article to see if it will help:
    o Printer troubleshooting for AirPort Extreme and AirPort Express
    I assume that this printer works just fine when it is connected directly to your Mac ... correct? If so, has it worked when connected to the AX in the past ... or has it always had this problem? If it did work correctly before, did you do any updates, especially to the AX, recently?

  • Pausing and restarting closed caption and audio

    Can anyone help me with this issue - I have 2 sets of closed captions on one slide with audio that spans the both closed captions. I pause the audio at the end of closed caption one using a click box, when I restart it by clicking on the click box the audio plays the remaining content but the closed caption box will not display the 2nd lot of text????
    Looking for help - please...
    Carl.

    I found a workarround (using the fact that Video Closed Caption is working corect):
    Export the MP3 (from the library)
    Remove slide audio (Audio > remove > Slide)
    Convert MP3 to FLV with Adobe Media Encoder or a similar tool. Make the dimensions as small as possible
    Insert Slide Video (Insert > Slide Video …)
    Add the text for the Closed Captions to the video (Video > Edit Video Timing … > tab Closed Captioning
    Mask the video on the stage with a rectangle (I tried to drag the video from the stage but you won't hear the audio)
    Example on http://www.dorna.nl/?p=659#more-659

  • Can anyone help me with a script to pause and restart an application?

    I am setting up a Mini to control a Canon still camera, using Canons EOS utility app to shoot at a certain interval. However I would like to pause the action during the night. In my dreams I also would like to read the countdown of the EOS app to remotely start a timer that starts and stops a spinning glass (rain deflector), via USB?
    I realize that these are two different tasks, but are they possible?
    To break it down:
    1. At a certain time (8pm) to pause the application, so the result is that the camera stops shooting.
    At 7am the action is to resume.
    I would rather not quit the applications since I would loose my settings, interval and camera settings
    2. The EOS app is counting down towards the next shot. The action I would like is that 1 min, prior to the end of countdown a pulse is given (via USB?) to the relay controlling the rain deflector.
    That relay runs it for 2 mins and then powers down.
    I have this set up analog now, with 2 relays and it works fine, however it would be nice to be able to remotely change the interval setting of the camera and the rain deflector would follow suit.
    Any input would be greatly appreciated.

    I can help you for the future.  Regularly back up your computer to an external hard drive (or cloud alternative).  If you have your library backed up, it could be reinstalled on your new computer.  In your current situation, you will have to reload all of your CDs as syncing of non-iTunes purchased music is only one way (Computer to iPod)

  • I wanted to update my ipod since the new version was out so i did so and then it suddenly stopped updating and when i clicked the play/pause and restart button, a blue screen appeared. what should i do?

    my ipod wont work at all..... the screen is blue!

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • ITunes intermittently pausing and un-pausing

    This behavior just started a few days ago - iTunes randomly starts playing the selected song, and the music starts pausing and restarting, even when I initiate by clicking on the play button. Very strange - It's like an invisible hand is randomly hitting the spacebar, except that it does it even when iTunes isn't the front application. (In fact, it's doing it while I'm typing this message in Safari.) I'm clueless as to what to try. Trash the plist? Anybody out there had a similar problem?

    I think I may have fixed the problem. After trying loads of other ideas (new user account, trashing plists, etc., none of which had any effect) I disconnected all of my USB cables and hubs and reconnected just the essentials. I also unplugged and re-plugged the audio-out cable to my amp/speakers. After this I relaunched iTunes and haven't had a recurrence yet (going on 6 hours.) My fingers are figuratively crossed.

  • Has the new model 160gb classic solved the random pauses and gaps problem?

    Just wondering if the apple morons have solved the problems that the last 2 generation classics had with the random pauses and gaps?
    I binned the first model 160gb that came out 2 years ago and went back to the 5th gen 80gb model which plays perfect.
    If they have finally fixed the problem with the new classics, i'll be picking a new 160gb up, but not until i hear what people who already own them have to say first.

    well your one lucky customer. having bought a 2009 ipod and no hard drive issues. i bought one and i got it to sync music and photos. but than it paused and restarted it and i got the red x. so i returned it and they exchanged it for a brand new still in the sealed box ipod and it was the same thing again. im gonna try sending it in. if it still happens, than im gonna have to refund.

  • OS X Mavericks download has paused and will not restart. How can I get it to restart?

    OS X Mavericks download has paused and will not restart. How can I get it to restart?

    Welcome to Apple Support Communities
    First, see if the download is paused and if you can resume it. To do so, open the Mac App Store, go to Purchases and press "Resume" next to OS X Mavericks.
    If the download does not carry on, I would recommend you to restart and start the download all over again.

Maybe you are looking for