Start - save - stop

Hey,
I have created a program which should be able to acquire measurements using DAQmx and display them in a chart.
The program should start logging after pressing the 'START' button.
When the STOP button is pressed, the data logging should be terminated.
When SAVE is pressed, the data has to be saved to a MATLAB file.
When STOP is pressed, the program should end.
I've added the vi in attachment. It seems not to work properly. I know that it has something to do with the inner while loop, but I don't really know how to fix it. I would like to keep using the event structure so I don't know how to program this otherwise.
Also, is there a possibility for the user to choose the amount of channels he is willing to read with the DAQmx system?
 When changing from 2 to 6 channels, there should also be 6 charts displayed on the screen. I tried to do this using the 'visible' property node but it only slows the program down...
Kind regards,
Dries
Attachments:
2Channels.vi ‏75 KB

DriesM wrote:
@altenbach: Could you please explain this a bit more in detail?
"It is not a good idea to trap interactive loops inside an event structure. You can use the outer loop for everything if done right."
I guess if I just take away the inner loop my program won't work anymore, so how exactly can I do it right?
Here's is a very quick draft manipulating the timeout. (LV 8.5)
(Not tested, so there are probably bugs. Modify as needed.)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
2ChannelsMOD.vi ‏58 KB

Similar Messages

  • My ipod nano 7th gen. won't save the changes I make to a song's start and stop time. How do I fix this?

    So I have a few songs that I don't like the intro to or the end of it that I had cut to where I wanted on my previous ipod. When I try to do the ame thing with this one with the start and stop time, it will work for awhile and then randomly start and stop where it had originally. I have done it like 4 times now for some songs and I can't seem to get it to stick. Suggestions?

    If you use the Sync feature in iTunes, then it needs to be done to the song in your Music Library, then synced with the iPod.  If you do not use the Sync feature and are performing the changes to the song on your iPod specifically, then the setting may be getting overwritten when you drag the song that's already on the iPod back onto the iPod.  It will overwrite all local settings for the song on the iPod with the settings in your library. 
    Try performing the changes to the song in your music library, and then dragging it back over to your ipod (or Sync your iPod if you use that feature).  This will make sure that the setting are consistent in both your library and iPod in-case you were to ever overwrite the song once more.

  • START AND STOP

    Hello all,
    I recently updated my Norton Internet Securiy in my system(running Windows XP professional) with Oracle 9i R2 was running fine before the update.
    Now am not able to access my iSQLPlus.I checked Controlpanel services and found Http service is not started.I tried to start then it gives me error as follows.
    ""OracleOraHome92HTTPServer service on local computer started then stopped.SOme services stop automatically if they have no work to do for example Performance Logs and Alerts Service""
    OracleOraHome92Agent service is stopped and i tried it first but failed to start.I went to command line and tried to start the agentctl start it gives me error as follows
    ""-------------- [OracleOraHome92Agent] ------------
    Sending initial service status..
    Commandline is "D:\oracle\ora92\bin\dbsnmpwd.bat" -agent_name OracleOraHome92Agent
    2. WAIT_OBJECT_0: Agent exited with retCode 0.
    Agent failed to startup.
    Check D:\oracle\ora92\network\log\OracleOraHome92Agent.nohup for details
    I would really appreciate if anybody can really help me in this issue ASAP.
    Thanks in advance....
    Sam

    The below workaround may or may not work,
    1). Stop your Agent Service.
    2). Stop the listener
    3). Clean out your agent files>
    From: d:\oracle\ora92\network\agent\
    *.q
    *.ver
    services.ora
    From d:\oracle\ora92\network\admin\
    snmp_ro
    snmp_rw
    Then go to d:\oracle\ora92\network\admin
    Make a text/dat file called: svppcart
    In the file, copy and paste the below exactly as shown:
    NT_OS ALL oravpnt svpxnt
    DBA ALL oravpxdba vpxdba
    EAPACHECART ALL oravpxeap vpxecm
    SQL_SRV ALL oravpsqlsrv vpsqlsrv
    OAFND ALL oravpxoafnd vpxoafnd
    save the file, start the listener, start the agent,

  • Start and stop error for performance counter in Perfmon of Windows server 2008

    Dear All,
    There is a centralized monitoring server to monitor a few Windows server 2003.
    There is a error when I start the performance counter for remote servers.
    But it can be started again after 10 seconds.
    Error:
    When attempting to start the Data Collector Set the following system error occured:
    The process cannot access the file because it is being used by another process.
    Another issue is I cannot start or stop the performance counter in command line (logman.exe) after 1 month.
    The error message is similar to the above, it mentioned something is using the files.
    I have to reboot my server.
    I don't know how can I find out the root cause.
    Please help.
    Regards,
    Tommy Chan

     
    Dear Tommy,
    This issue may be caused by certain programs running in the background.
    If it is convenience for you to restart the server, you can do that and test the result.
    If the issue persists, you can try a Clean Boot.
    Clean boot
    =================
    Let’s disable all startup items and third party services when booting. This method will help us determine if this issue is caused by a loading program or service. Please perform the following steps:
    1. Click the Start Button type "msconfig" (without quotation marks) in the Start Search box, and then press Enter.
    Note: If prompted, please click Continue on the User Account Control (UAC) window.
    2. Click the "Services" tab, check the "Hide All Microsoft Services" box and click "Disable All" (if it is not gray).
    3. Click the "Startup" tab, click "Disable All" and click "OK".
    Then, restart the computer. When the "System Configuration Utility" window appears, please check the "Don't show this message or launch the System Configuration Utility when Windows starts" box and click OK.
    Please test this issue in the Clean Boot environment, if the issue disappears in the Clean Boot environment, we can use a 50/50 approach to quickly narrow down which entry is causing the issue.
    If the issue still occurs, we may need to collect some trace information of the error message by using Process Monitor.
    1. Download process monitor from the link given here:
    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    2. Run the process monitor on the problematic server:
    3. Start Process Monitor. You will see File/Registry activity is being captured.
    4. Press Ctrl+E to stop logging data.
    5. Press Ctrl+X to clear the currently captured data.
    6. Under Process Monitor, press Ctrl+E to start gathering data.
    7. Now try to reproduce the issue: Start or stop the performance counter in command line to let the error message appear again.
    8. Under Process Monitor, Press Ctrl+E to stop capturing.
    9. Please save the captured data from Process Monitor to a file (File->Save) and upload this file to the following site:
    https://sftus.one.microsoft.com/choosetransfer.aspx?key=626b99a0-c31f-4cd9-9fec-5e0597adef20
    Password: i#qil_O$Q[
    Please also collect the Process Explorer log on the problematic client:
    1. Run the process monitor on the problematic client:
    2. Start Process Monitor. You will see File/Registry activity is being captured.
    3. Press Ctrl+E to stop logging data.
    4. Press Ctrl+X to clear the currently captured data.
    5. Under Process Monitor, press Ctrl+E to start gathering data.
    6. Now try to reproduce the issue: Start or stop the performance counter in command line on the server to let the error message appear again.
    7. Under Process Monitor, Press Ctrl+E to stop capturing.
    8. Please save the captured data from Process Monitor to a file (File->Save) and upload it to the above site as well.
    Tim Quan - MSFT

  • Script to auto start and stop an application

    Ok, I'm looking for an easy solution, maybe someone can point me in the right direction:
    I have a security camera program that runs on a Mac Mini that I would like to start and stop at a specific time of day. Is there an easy way to create an Applescript to do that?
    Thanks much in advance.

    Two scripts and iCal can do this for you. However, it assumes that your workstation is always logged into the Finder and that your app can be scripted beyond start and stop.
    --Script 1, launch application
    tell application "name of security app"
    activate
    -- do more stuff here like start capture
    end tell
    --Script 2, quit the application
    tell application "name of security app"
    quit
    end tell
    Save them both as scripts and then use iCal to make two repeating events. One to start the app and the other to stop it. Attach your scripts as event actions. Then sit back and let the iCal schedular the rest.

  • Batch file to start and stop

    Hi All,
    Can we create a batch file to start and stop the services. I need to start all the services like shared, essbase, eas, planning, webanlysis and financial reporting, and at also need to stop them using windows batch file.(Using windows 2003 server....service pack 1). Any help would be appreciated.
    Thanks

    Hi,
    The simplest script would be something like this. Save it as a .bat file, set all your services to manual and then set up a scheduled task to run this script when the computer starts.
    Gee
    ::          Startup Script for Hyperion Services          ::
    date/t >> startup.log
    time/t >> startup.log
    echo "Starting Hyperion Services" >> startup.log
    net start "Hyperion S9 OpenLDAP" >> startup.log
    net start "Hyperion S9 Shared Services" >> startup.log
    :: Insert pause of 5 seconds to ensure HSS has finished starting
    ping localhost -n 6 >nul
    net start "Hyperion S9 BI+ Analytic Services 9.3.1 - Essbase" >> startup.log
    net start "Hyperion S9 Administration Services ATS5" >> startup.log
    net start "HyperionRMIRegistry" >> startup.log
    net start "Hyperion S9 Planning" >> startup.log
    net start "Hyperion S9 Provider Services ATS5" >> startup.log
    net start "Hyperion S9 Apache 2.0" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Core Services 1" >> startup.log
    :: Insert pause of 10 seconds to ensure Core has finished starting
    ping localhost -n 11 >nul
    net start "Hyperion S9 BI+ 9.3 Workspace" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Java RMI Registry" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Print Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Report Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Scheduler Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Web application" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Web Analysis" >> startup.log
    date/t >> startup.log
    time/t >> startup.log
    echo "Finished Starting Hyperion Services" >> startup.log
    echo "###################################################################" >> startup.log

  • Starting and stopping stream capture repeatedly

    Hi,
    I am building a vmail server that captures an incoming, continuous RTP voice stream from a hardware phone and records portions of that stream to disk, based on control messages received (like record/stop buttons for a continuous RTP stream).
    The first time I record, the sound file on the file system is well formatted. Subsequent recordings result in headerless audio files (although the audio data is correctly output to file otherwise).
    The problem is that I need to get header information written to the audio files for subsequent recordings.
    Here is a bit of source code to show how I am starting and stopping recording. At this point, the processor is already created and realized and the MediaLocator is previously initialized:
         MediaLocator recordedML ;
         public void startRecording() {
              try {
                   processor.start();
                   DataSource ds = null;
                   ds = processor.getDataOutput();
                   recordingDataSink = Manager.createDataSink(ds, recordedML);
                   recordingDataSink.open();
                   // starts sticking captured data into a file
                   recordingDataSink.start();
              } catch (IOException e) {
                   e.printStackTrace();
              } catch (NoDataSinkException e) {
                   e.printStackTrace();
         public void stopRecording() {
              try {
                   recordingDataSink.stop();
                   recordingDataSink.close();
                   recordingDataSink = null;
                   processor.stop();
                   processor.deallocate();
              } catch (IOException e) {
                   e.printStackTrace();
    Calling startRecording() and stopRecording() the first time results in a properly formatted sound file on the file system, captured from my incoming RTP stream.
    Calling startRecording() and stopRecording() subsequent times results in headerless audio files.
    So the problem seems to be that subsequent calls to processor.getDataOutput() result in a DataSource that doesn't print a file header.
    What I have tried includes:
    -recreating the processor, but this doesn't work because it seems you can only do this once for a single incoming stream - the processor never reaches the configured state a second time.
    -reconfiguring the processor or re-realizing the processor, which doesn't do what I want either.
    One way that I think this would work would be to write out the audio header manually after the capture is complete, but this seems like a gross hack and I would rather do it through JMF.
    Is there a way to fix this via JMF? Is this a JMF bug or is it intended to work this way?
    Cheers,
    -Jeff

    Hi, I am unfortunately unable to help you but perhaps you could help me. I have a Java GUI that I want to enable to record voice from a mic at the click of a button (stopping automatically if possible) and save to a defined file in the code. Would you be able to help me here? I have tried different source and rejigged things but I cannot seem to get anything working.
    Any help gratefully apreciated.

  • Help! My screen saver stopped working?

    2013 iMac
    3.1 GHz i7
    16 GB DDR3
    OS X 10.9.3 (13D65)
    My screen saver stopped working about a month ago.  I tried resetting the PRAM and it worked for a few minutes, but then it stopped.  I tried using Hot Corners, but it starts and then turns off after a few minutes.  I am able to make it work if I turn Airport OFF and disconnect the computer from the internet.
    What are my recommended next steps to get the screen saver back to normal function?
    Thanks for any and all help.
    Joe in NY

    This worked for me . . .
    ds store At the center of the Dark Zone
    Re: my screen saver on my new mac book pro stopped working.  I have rebooted, changed screen saver mode it still does not work 
    Oct 9, 2012 12:45 PM (in response to cogma)
    We are going to delete a hidden file.
    Finder > Go Menu > Go to Folder and type or paste
    ~/Library/Preferences
    and scroll down until you see
    com.apple.systempreferences.plist
    drag the one you can (may see two) to the Trash, reboot, reset your System Preferences again.

  • Starting and stopping a VI from another VI

    Hello
    I have to write a VI for starting and stopping a vi from another vi. I browsed the forums for an example but couldn't find one. If anyone has an example it would be of great help.
    Thanks
    Ankit

    I may be throwing myself into a pot of boiling water here, but...
    I don't think this method is called dynamically calling a VI. Going through the LabVIEW help says this about dynamically called VIs
    "You can dynamically load VIs instead of using statically linked subVI calls. A statically linked subVI is one you place directly on the block diagram of a caller VI. It loads at the same time the caller VI loads.
    Unlike statically linked subVIs, dynamically loaded VIs do not load until the caller VI loads them with the Open VI Reference. If you have a large caller VI, you can save load time and memory by dynamically loading the VI because the VI does not load until the caller VI needs it, and you can release it from memory after the operation completes. You also can use the VI Call Configuration dialog box to configure when to load the subVI."
    and:
    "Create a strictly typed VI reference to dynamically call a VI using the Call by Reference Node. The strictly typed VI refnum identifies the connector pane of the VI you are calling."
    It seems that the advantage of dynamically calling a VI you can call DIFFERENT VI's with the same function on the block diagram as long as both are strictly typed to have the same connector pane. So say you have a VI that has a voltage input and a time input and calculates the rate of voltage change, could be replaced by a VI that takes the same inputs, but does something else with the data. And both VI's could be called by the same function depending of the reference passed to "Call by Reference."
    I think the method of calling a VI and not caring about when it finishes is just an Invoke Node method.

  • Start or Stop expression at a given frame?

    hello to everyone on the support forum.
    I searched the forum but wasn't able to find anything quite good for resolving the matter.
    This is something that my IT group Charles Stinson, Nick Carangi, and Sandra Connor have been working on fixing for a while.
    I'm getting into expression but the issue is that I am not able to start or stop an expression at a given moment.
    I.E. If i want to wiggle(3, 10) until frame 100.
    How can I set this up?
    Thanks in advance.
    After Effects Cs5.5

    Rick and Dave are correct that it may be easiest to split the layer, but there are examples in After Effects Help for doing this with expressions, here:
    http://helpx.adobe.com/en/after-effects/using/expression-examples.html#expression_example_ start_or_stop_wiggle_at_specific_time

  • Start and Stop Trigger using PXI-6120 and DigitalSta​rtAndStopT​rigger.vi not working :-(

    Hello,
    I've been trying for a while now to get my PXI unit to capture a waveform between a Start and Stop (Reference) Trigger using the NI example DigitalStartAndStopTrigger.vi downloaded from the NI website. However, whilst the start trigger and stop trigger seem to be working i.e. the VI runs and stops at  the correct times there is never any data read from my DAQmx compatible PXI-6120 card. So I can see the VI is running around the aquisition loop but the Property Node AvailSampPerChan is always returning zero... this has me slightly puzzled. I thought this might just be a driver issue so I've updated my box to the following software versions (see below) and installed the latest drivers e.g. DCDNov07.exe (also from the NI site) but nothing has changed.
    my software as of now.
    Labview 7.1 (with the 7.1.1 upgrade applied)
    Max 4.3.0.49152
    DAQmx 8.6.0f12
    Trad DAQ 7.4.4f7
    before I updated I had the same problem but with the following versions:
    Labview 7.1 (with the 7.1.1 upgrade applied)
    Max 4.2.1.3001
    DAQmx 8.5.0f5
    Trad DAQ 6.9.3f4
    So to cut a long story short I still have the same problem with the triggers... does anybody have any ideas what is going wrong?
    To add insult to injury it the traditional DAQ example ai_start-stop_d-trig.vi was almost working correctly before I did the upgrade. It had the strange behaviour of capturing the AI0 channel but on the wrong edges (e.g. if I set Start on Rise and Stop on Fall it would do the opposite, Start on Fall and Stop on Rise).
    I'm going to leave my box doing a mass compile over night but i'd really like it if someone could suggest a solution or point me in the right direction.
    Many thanks,
    Mike

    Hi Graham
    I'm out of the lab today but I'll try and answer your questions as best I can...
    1) What are the values you have set for Buffer size, Rate, samples per read and post trigger Samples?
    At the moment I have all the values (e.g. sample rate, buffer size etc) unchanged apart from the ones I mentioned in my previous post (see above). I have in the past played around with changing the buffer sizes and rates in the example VI but as this appeared to have no effect on the behaviour I now have them setup as in the download.
    2) Does the program end after the stop trigger is implemented?
    Yep, if I toggle the trigger line high then low I see the program exits the read loop and the VI stops running as expected.
    3) Lastly can you give me the details of triggering method. Are you
    using a digital train of users set digital pulses? how long is the
    program running.I'm using the WriteDigChan.vi to manually toggle the first digital line of the PXI-6733 card which is wired directly to PFI0 of the PXI-6120 card. Generally, I just start the VI running  and then toggle the line high, wait a couple of seconds and then toggle it low.
    To me it all looks like it should be acquiring samples but as I said yesterday it just refuses to fill the buffer with any data (and hence no samples are read).
    Any ideas? and thanks for you help,
    Mike

  • I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    You don't need to upgrade your software.  But if you're struggling with Spry, IMO you should cut your losses and switch to something better for the longrun.
    If you have a budget to work with, I highly recommend Project Seven's Pop-Menu Magic 3.  It's easy to use in DW CS4, 5, 6 or CC.  More importantly, it's bullet proof and works in all devices. 
    Pop-Menu  Magic3 by PVII (commercial DW extension)
    http://www.projectseven.com/products/menusystems/pmm3/index.htm
    If you don't have a budget to work with, you can roll your own menus with jQuery plugins.  A bit more effort on your part, but they perform better than Spry.
    jQuery Superfish
    http://users.tpg.com.au/j_birch/plugins/superfish/
    jQuery MegaMenu2
    DEMO:
    http://www.geektantra.com/projects/jquery-megamenu-2/
    DOWNLOAD:
    http://code.google.com/p/jquery-megamenu/
    Nancy O.

  • Need help getting Tomcat 5.0.28 to start (and stop, eventually)

    Hi!
    I am such a newbie to the Terminal and writing scripts, so please forgive my naiveté. I have successfully installed Tomcat in my /usr/local directory, but I am having trouble creating files to start and stop Tomcat, per the instructions on the following page:
    http://developer.apple.com/internet/java/tomcat1.html
    I've followed the directions but continue to get the following error after I execute ~/bin/start_tomcat.
    -bash: start_tomcat: command not found
    My file contains the following code:
    #!/bin/sh /n
    export CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.28 /n
    export JAVA_HOME=/usr /n
    $CATALINA_HOME/bin/startup.sh /n
    If anyone can help me, I would really, really, really appreciate it!
    Thanks!
    PowerBook G4 12"   Mac OS X (10.4.5)  

    Why are there all those "/n" there? Either you or the place you copied from has the wrong slash. But still, it's wronger than that to have them at all: "\n" means a newline (i.e., press "return") not the actual "backslash en" characters. Sometimes people post code with those \n visible: by making it explicit where a line-break should be, one doesn't have as much trouble when a web browser reformats the text and puts line breaks where they don't belong.

  • HP PRO 3400 Series desktop won't boot CPU fan starts and stops , no video, no beeps

    I have the above computer with an i3-2125 CPU, Windows 7 Home Premium 64 bit, and a 300GB Seagate Hard drive.  I've had it for about 2 years and been working fine. It started acting up about 2 months ago.  It would lose the date and time.  I checked the battery, and it was OK, so I kept using the computer.  Then on 9/15/2014 it hung on "Starting Windows", I did the following:
    1.  Ran the built in HP diagnostic on hard drive and memory and they both passed.
    2.  Tried to go to last known good configuration and nothing happened.
    3.  Noticed the date and time were off, replaced the battery, nothing changed.
    4.  Tried another hard drive from another HP PRO 3400 Series and it would boot up but could not set date in bios.
    5.  Tried all kinds of things but could not set date in bios.
          a.  Bios date read 48/00/0048 after removing and replacing battery.
          b,  Tried to reset date to 9/16/2914 and it gets 56/00/0051
    6.  Then it wouldn't boot at all.   So now when you turn on the power, the CPU fan starts and runs for about 1 second, then shuts off for 4 seconds, then starts and runs for another 1 sec and it does this continuously.  There is  no video and no beeps and no difference when all memory is removed.
    7.  I removed the power supply, and checked voltages.  It appears to be OK.
    8.  I removed the motherboard, and inspected it- saw nothing obvious.
    9.  I connected the power supply to the motherboard with nothing else connected to the motherboard, and I get the same thing.  CPU fan starts then stops continuously, no video no beeps.
    10.  I am thinking it is the Motherboard, but I sure could use some suggestions as to what to do next.
    Thanks
    Maxgle from CA

    Maxgle, welcome to the forum.
    I believe that you would get more responses to your problem if you start a thread here.  They are the members who know your computer best.
    Please click the "Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • When I try to buy any app or song from iTunes app or app store on iPhone 5 it seems to start the stops and goes back to baseline in a second or two

    When I try to buy any app or song from iTunes app or app store on iPhone 5 it seems to start the stops and goes back to baseline in a second or two.
    It did it with my old iPhone 4 in last month or so, and it I hoped it would go once I updated to new iPhone 5. The problem has transferred to new phone too.
    I can't sign in to iTunes account on iPhone. It takes the password then resets to baseline. No error message comes up. On the base computer (pc) it will allow me to sign up and buy songs, apps etc. I can then sync the phone and put them on it. It just won't let me buy direct from the .
    As there are no error messages I am at a loss what to do. I have updated the payment details on my account, and my husband has an iPhone 4 and has no such problems. We share the same wifi. I have tried with 3G as well as wifi, with no luck.
    I am pretty much out of ideas, and have tried searching forums but there is so much overlap between queries that I can't find a similar problem from someone else, but I am sure it exists!
    Can anyone please help me?
    Thanks in advance
    Sarah

    I figured it out!
    I read a solution for something that sounded similar.
    Anyone in similar position:
    Open iTunes app on iPhone, and pick an option from bottom, such as music. Then scroll down to bottom of page and where your iTunes ID is, press on it, and pick sign out.
    Then return to home screen, and double press home button and press and hold on first icon showing, until a minus symbol appears in the top left of icons present. Press on each minus symbol on each app in turn, until all app icons have disappeared. Then Restart the phone by pressing and hold the home button and the on/off/standby button at top of phone, until the apple symbol appears in centre of blank screen.
    Swipe to turn phone fully on and open settings and scroll down to iTunes and apps option and tap that. Pick sign in and put in your apple ID, it will accept it and then return to home screen and open iTunes a you'll find it works fine
    Simple really, but some like me won't think f this themselves!
    Hope that helps

Maybe you are looking for