HT4061 Need help with pass code

my phone is disabled my pass code lock wont work

Disable Find My iPod if Enabled and then Restore your iPod by following the steps mentioned in the link below. To Disable Find My iPod/iPhone /iPad : http://support.apple.com/kb/ph2702
iOS Device Disabled/forgotten passcode : http://support.apple.com/kb/ht1212
Use Recovery Mode to Restore your iPad to factory settings : http://support.apple.com/kb/ht1808
Restore from Backup : http://support.apple.com/kb/ht1766
Downloading Past Purchases : http://support.apple.com/kb/ht2519

Similar Messages

  • I need help with this code error "unreachable statement"

    the error_
    F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
    int index;
    ^
    F:\Java\Projects\Tools.java:71: missing return statement
    }//end delete method
    ^
    F:\Java\Projects\Tools.java:86: missing return statement
    }//end getrecod
    ^
    3 errors
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    public class Tools//tool class
    private int numberOfToolItems;
    private ToolItems[] toolArray = new ToolItems[10];
    public Tools()//array of tool
    numberOfToolItems = 0;
    for(int i = 0; i < toolArray.length; i++)//for loop to create the array tools
    toolArray[i] = new ToolItems();
    }//end for loop
    }//end of array of tools
    public int search(int id)//search mehtod
    int index = 0;
    while (index < numberOfToolItems)//while and if loop search
    if(toolArray[index].getID() == id)
    return index;
    else
    index ++;
    }//en while and if loop
    return -1;
    }//end search method
    public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
    if(numberOfToolItems >= toolArray.length)
    return 0;
    int index;
    index = search(id); <-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------HERE
    if (index == -1)
    toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
    numberInStock ++;
    return 1;
    }//end if index
    }//end if toolitem array
    return -1;
    }//end insert method
    public int delete(/*int id*/)//delete method
    }//end delete method
    public void display()//display method
    for(int i = 0; i < numberOfToolItems; i++)
    //toolArray.display(g,y,x);
    }//end display method
    public String getRecord(int i)//get record method
    // return toolArray[i].getName()+ "ID: "+toolArray[i].getID()
    }//end getrecod
    }//end class
    Edited by: ladsoftware on Oct 9, 2009 6:08 AM
    Edited by: ladsoftware on Oct 9, 2009 6:09 AM
    Edited by: ladsoftware on Oct 9, 2009 6:10 AM
    Edited by: ladsoftware on Oct 9, 2009 6:11 AM

    ladsoftware wrote:
    Subject: Re: I need help with this code error "unreachable statement"
    F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
    int index;
    ^
    F:\Java\Projects\Tools.java:71: missing return statement
    }//end delete method
    ^
    F:\Java\Projects\Tools.java:86: missing return statement
    }//end getrecod
    ^
    3 errorsThe compiler is telling you exactly what the problems are:
    public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
    if(numberOfToolItems >= toolArray.length)
    return 0; // <<== HERE you return, so everyting in the if block after this is unreachable
    int index;
    index = search(id);  //< -----------------------------------------------------------------------------------------------------------------HERE
    if (index == -1)
    toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
    numberInStock ++;
    return 1;
    }//end if index
    }//end if toolitem array
    return -1;
    }//end insert method
    public int delete(/*int id*/)//delete method
    // <<== HERE where is the return statement?
    }//end delete method
    public String getRecord(int i)//get record method
    // return toolArray.getName()+ "ID: "+toolArray[i].getID() <<== HERE you commented out the return statement
    }//end getrecod
    }//end class

  • I need help with my code..

    hi guys. as the subject says I need help with my code
    the Q for my code is :
    write a program that reads a positive integer x and calculates and prints a floating point number y if :
    y = 1 ? 1/2 + 1/3 - ? + 1/x
    and this is my code
       This program that reads a positive integer x and calculates
       and prints a floating point number y if :
                 y = 1 - 1/2 + 1/3 - ? + 1/x
       import java.util.Scanner; // program uses class Scanner
        class Sh7q2
           // main method begins execution of Java application
           public static void main( String args[] )
          // create Scanner to obtain input from command window
             Scanner input = new Scanner( System.in );
             int i = 1; // i is to control the loop
             int n = 2; // n is suppose to control the number sign
             int x; // a positive integer entered by the user
             int m;
             System.out.println("Enter a positive integer");
             x = input.nextInt();
             do
                m = (int) Math.pow( -1, n)/i;
                System.out.println(m);
                   n++;
                   i++;
             while ( m >= 1/x );
          } // end method main
       } // end class Sh7q2 when I compile it there is no error
    but in the run it tells me to enter a positive integer
    suppose i entered 5
    then the result is 1...
    can anyone tell me what's wrong with my code

       This program that reads a positive integer x and calculates
       and prints a floating point number y if :
                 y = 1 - 1/2 + 1/3 - ? + 1/x
       import java.util.Scanner; // program uses class Scanner
        class Sh7q2
           // main method begins execution of Java application
           public static void main( String args[] )
          // create Scanner to obtain input from command window
             Scanner input = new Scanner( System.in );
             int i = 1; // i is to control the loop
             int n = 1; // n is suppose to control the number sign
             int x; // a positive integer entered by the user
             double m;
             int a = 1;
             double sum = 0;
             System.out.println("Enter a positive integer");
             x = input.nextInt();
             for ( i = 1; a <= x; i++)
                m =  Math.pow( -1, n+1)/i;
                sum  = sum + m;
                n++;
                a++;
             System.out.print("y = " + sum);
          } // end method main
       } // end class Sh7q2is it right :S

  • Need help with WMI code that will send output to db

    'm new to WMI code writing, so I need some help with writing code that we can store on our server. I want this code to run when a user logs into their computer
    and talks to our server. I also want the code to:
    * check the users computer and find all installed patches
    * the date the patches were installed
    * the serial number of the users computer
    * the computer name, os version, last boot up time, and mac address
    and then have all this output to a database file. At the command prompt I've tried:
    wmic qfe get description, hotfixid
    This does return the patch information I'm looking for, but how do I combine that line of code with:
    wmic os get version, csname, serialnumber, lastbootuptime
    and
    wmic nicconfig get macaddress
    and then get all this to output to a database file?

    Thank you for the links. I checked out http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx and
    found lots of good information. I also found a good command that will print information to a text file.
    Basically what I'm trying to do is retrieve a list of all installed updates (Windows updates and 3rd party updates). I do like that the below code because it gives me the KB numbers for the Windows updates. I need this information so my IT co-workers &
    I can keep track of which of our user computers need a patch/update installed and preferably which patch/update. The minimum we want to know is which patches / updates have been installed on which computer. If you wondering why we don't have Windows automatic
    updates enable, that's because we are not allowed to.   
    This is my code so far. 
    #if you want the computer name, use this command
    get-content env:computername
    $computer = get-content env:computername
    #list of installed patches
    Get-Hotfix -ComputerName $computer#create a text file listing this information
    Get-Hotfix > 'C:\users\little e\Documents\WMI help\PowerShell\printOutPatchList.txt'
    I know you don't want to tell me the code that will print this out to a database (regardless if it's Access or SQL), and that's find. But maybe you can tell me this. Is it possible to have the results of this sent to a database file or do I need to go into
    SQL and write code for SQL to go out and grab the data from an Excel file or txt file? If I'm understanding this stuff so far, then I suspect that it can be done both ways, but the code needs to be written correctly for this to happen. If it's true, then which
    way is best (code in PowerShell to send information to SQL or SQL go get the information from the text file or Excel file)?

  • Need help with error code 150:30

    need help with finding out what error code 150:30 is and how to fix it

    See the following:
    Error 150:30 - Error "Licensing has stopped working" | Mac OS :
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html

  • HT4061 need help with my iphone 4 i try to update last five  days but after updating to 6.1.2  it says that    We're sorry, we are unable to continue with your activation at this time. Please try again later, or c

    need help with my iphone 4 i try to update last five  days but after updating to 6.1.2  it says that
    We're sorry, we are unable to continue with your activation at this time. Please try again later, or c

    If the iPhone was hacked and unlocked via unofficial means, it has become locked again. Insert original SIM in the phone to activate with iTunes.

  • Noob needs help with this code...

    Hi,
    I found this code in a nice tutorial and I wanna make slight
    adjustments to the code.
    Unfortunately my Action Script skills are very limited... ;)
    This is the code for a 'sliding menue', depending on which
    button u pressed it will 'slide' to the appropriate picture.
    Here's the code:
    var currentPosition:Number = large_pics.pic1._x;
    var startFlag:Boolean = false;
    menuSlide = function (input:MovieClip) {
    if (startFlag == false) {
    startFlag = true;
    var finalDestination:Number = input._x;
    var distanceMoved:Number = 0;
    var distanceToMove:Number =
    Math.abs(finalDestination-currentPosition);
    var finalSpeed:Number = .2;
    var currentSpeed:Number = 0;
    var dir:Number = 1;
    if (currentPosition<=finalDestination) {
    dir = -1;
    } else if (currentPosition>finalDestination) {
    dir = 1;
    this.onEnterFrame = function() {
    currentSpeed =
    Math.round((distanceToMove-distanceMoved+1)*finalSpeed);
    distanceMoved += currentSpeed;
    large_pics._x += dir*currentSpeed;
    if (Math.abs(distanceMoved-distanceToMove)<=1) {
    large_pics._x =
    mask_pics._x-currentPosition+dir*distanceToMove;
    currentPosition = input._x;
    startFlag = false;
    delete this.onEnterFrame;
    b1.onRelease = function() {
    menuSlide(large_pics.pic1);
    b2.onRelease = function() {
    menuSlide(large_pics.pic2);
    b3.onRelease = function() {
    menuSlide(large_pics.pic3);
    b4.onRelease = function() {
    menuSlide(large_pics.pic4);
    I need to adjust five things in this code...
    (1) I want this menue to slide vertically not horizontally.
    I changed the 'x' values in the code to 'y' which I thought
    would make it move vertically, but it doesn't work...
    (2) Is it possible that, whatever the distance is, the
    "sliding" time is always 2.2 sec ?
    (3) I need to implement code that after the final position is
    reached, the timeline jumps to a certain movieclip to a certain
    label - depending on what button was pressed of course...
    I tried to implement this code for button number two...
    b2.onRelease = function() {
    menuSlide(large_pics.pic2);
    if (currentPosition = finalDestination) {
    this.large_pics.pic2.gotoAndPlay("s1");
    --> sliding still works but it doesn't jump to the
    appropriate label...
    (4) I wanna add 'Next' & 'Previous' buttons to the slide
    show - what would be the code in this case scenario ?
    My first thought was something like that Flash checks which
    'pic' movieclip it is showing right now (pic1, pic2, pic3 etc.) and
    depending on what button u pressed u go to the y value of movieclip
    'picX + 1' (Next button) or 'picX - 1' (Previous button)...
    Is that possible ?
    (5) After implementing the Next & Previous buttons I need
    to make sure that when it reached the last pic movieclip it will
    not go further on the y value - because there is no more pic
    movieclip.
    Options are to either slide back to movieclip 'pic1' or
    simply do nothing any more on the next button...
    I know this is probably Kindergarten for you, but I have only
    slight ideas how to do this and no code knowledge to back it up...
    haha
    Thanx a lot for your help in advance !
    Always a pleasure to learn from u guys... ;)
    Mike

    Hi,
    I made some progress with the code thanx to the help of
    Simon, but there are still 2 things that need to be addressed...
    (1) I want the sliding time always to be 2.2 sec...
    here's my approach to it - just a theory but it might work:
    we need a speed that changes dynamically depending on the
    distance we have to travel...
    I don't know if that applies for Action Scrip but I recall
    from 6th grade, that...
    speed = distance / time
    --> we got the time (which is always 2.2 sec)
    --> we got the disctance
    (currentposition-finaldestination)
    --> this should automatically change the speed to the
    appropriate value
    Unfortunately I have no clue how the action script would look
    like (like I said my action script skills are very limited)...
    (2) Also, one other thing I need that is not implemented yet,
    is that when the final destination is reached it jumps to a certain
    label inside a certain movieclip - every time different for each
    button pressed - something like:
    if (currentPosition = finalDestination) {
    this.large_pics.pic2.gotoAndPlay("s1");
    that statement just doesn't work when I put it right under
    the function for each button...
    Thanx again for taking the time !!!
    Mike

  • Need help with HTML5 code

    What is wrong with this code?  It does not play. It should play in Windows-7 and XP with IE8.
    Also, on the screen there is a large white area where the <video> code is.  Why?
    How do I get rid of it?
    Thanks.
    <!DOCTYPE HTML>
    <html>
    <head>
    <title>video testing</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    </head>
    <body>
    <p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.mp4">Download">http://w ww.amelox.com/Media/UX-CT-Tour-Short-1024d12db.mp4">Download mp4 </a> button to start video.</p>
    <p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.webm">Download">http:// www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.webm">Download webm </a> button to start video.</p>
    <p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.ogg">Download">http://w ww.amelox.com/Media/UX-CT-Tour-Short-1024d12db.ogg">Download ogg </a> button to start video.</p>
    <p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.flv">Download">http://w ww.amelox.com/Media/UX-CT-Tour-Short-1024d12db.flv">Download flv </a> button to start video.</p>
    <video width="480" height="270" controls="controls">
    <source media="all" src="rtp:UX-CT-Tour-Short-1024d12db.mp4"  type='video/mp4; codecs="vp8, vorbis"' />
    <source media="all" src="rtp:UX-CT-Tour-Short-1024d12db.webm" type='video/webm; codecs="avc1.42E01E, mp4a.40.2"' />
    <source media="all" src="rtp:UX-CT-Tour-Short-1024d12dB.ogg" type="video/ogv; codecs=&quot;theora, vorbis&quot;" />
    <object data="id=player1" width="480" height="270">
        <param name="classid" value="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" />
        <param name="movie" value="player.swf" />
        <param name="flashvars" value="UX-CT-Tour-Short-1024d12db.flv & autostart=true" />
        <param name="allowfullscreen" value="false" />
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="allowscriptaccess" value="always" />
    <embed flashvars="file=UX-CT-Tour-Short-1024d12db.flv & autostart=true" id="player1" src="player.swf"
    allowfullscreen="true" allowscriptaccess="always" width="480" height="270" />
    </object>
    </video>
    <p>here is some more text</p>
    </body>
    </html>

    Data load? Did it pass a syntax check?
    Anyway, maybe this will help:
    DATA: create_date              TYPE sy-datum,
          update_date              TYPE sy-datum,
          number_of_days_closed(4) TYPE c,
          alert_close_flag(1)      TYPE c,
          result                   LIKE number_of_days_closed.
    IF alert_close_flag EQ 'Y'.
      number_of_days_closed = update_date - create_date .
    ELSE.
      CLEAR number_of_days_closed.
    ENDIF.
    result = number_of_days_closed.
    Rob

  • Beginner needs help with simple code.

    I just statrted learnind java, and I need some help with this simple program. For some reason everytime I enter my Farenheit value, the Celsius conversion returns as 0.0. Would really appreciate the help. Thanks.
    Here's the code:
    public class TempConverter
    public static void main(String[] args)
    double F = Double.parseDouble(args[0]);
    System.out.println("Temperature in Farenheit is: " + F);
    double C = 5 / 9;
    C *= (F - 32);
    System.out.println("Temperature in Celsius is: " + C);
    }

    double C = 5 / 9This considers "5" and "9" to be integers and does an integer division, discarding the remainder. The result of that division is 0. Trydouble C = 5.0/9.0;

  • Need help with my code

    Hi,
    I'm trying to make a driver for an instrument with NAT9914 chipset and I'm having some problems. Sometimes, my Read lost the first character and my Write always get stuck waiting for BO after sending the first character.
    Can somebody points me out what is wrong?
    Here is my code:
    * Initialization
    // enable 9914 chip reset state
    GPIBout(&(hDev->pIo->w.auxcr, 0x1c);
    // disable all interrupts
    GPIBout(&(hDev->pIo->w.imr0, 0);
    GPIBout(&(hDev->pIo->w.imr1, 0);
    // clear status registers by reading
    GPIBin(&(hDev->pIo->r.isr0);
    GPIBin(&(hDev->pIo->r.isr1);
    // set GPIB address;
    GPIBout(&(hDev->pIo->w.adr,(25 & 0x1f));
    // speed is 4Mhz
    GPIBout(&(hDev->pIo->w.accr), 0x0100 );
    // Set T1 Delay to vstdl
    GPIBout(&(hDev->pIo->w.auxcr), 0x97 );
    // release 9914 chip reset state
    GPIBout(&(hDev->pIo->w.auxcr), 0x00);
    * Read
    // Wait to be Active Listener
    while( !((GPIBin(&(hDev->pIo->r.adsr)) & HR_LAPS)) );
    // set and get eos
    ibeos(hDev, (REOS << 8) | '\n');
    eos = bdGetEOS();
    // reading loop
    while(1)
    // send RHDF
    GPIBout(&(hDev->pIo->w.auxcr),AUX_RHDF);
    // wait for BI or stop on end
    while(!((isreg1 = GPIBin(&(hDev->pIo->r.isr0)) & HR_BI) && !(isreg1 & HR_END ) && NotTimedOut());
    // No BI
    if( (isreg1 & HR_END) || TimedOut() )
    break;
    // read byte
    bin[j++] = GPIBin(&(hDev->pIo->r.dir);
    // read last character
    bin[j] = GPIBin(&(hDev->pIo->r.dir));
    // make string readable
    if((eosmodes & REOS) && (bin[j] == eos ))
    bin[j] = '\0';
    else
    bin[j+1] = '\0';
    * Write
    // Wait to be Active Talker
    while( !((GPIBin(&(hDev->pIo->r.adsr)) & HR_TPAS)) );
    // writting loop
    while(i{
    // write byte to register
    GPIBout(&(hDev->pIo->w.cdor), buf[i++]);
    // wait for BO or ERR
    while( !((GPIBin(&(hDev->pIo->r.isr0)) & HR_BO))
    || !((GPIBin(&(hDev->pIo->r.isr1)) & HR_ERR)) )
    // if error, stop
    if((GPIBin(&(hDev->pIo->r.isr1)) & HR_ERR))
    break;
    // if no error, send EOI with last byte
    if(!((GPIBin(&(hDev->pIo->r.isr1)) & HR_ERR)))
    GPIBout(&(hDev->pIo->w.auxcr ), 0x08 );
    GPIBout(&(hDev->pIo->w.cdor), buf[i]);
    Thanks,
    Michael

    Try visiting the NI web site for Registry Level programming. It contains Manuals, Notes, Examples and KB entries that should help with your application:
    ni.com>>Technical Support>>GPIB>>GPIB Register Level Programming

  • Need help with error code 1714!!!!!!!!!!! Please help

    Need help trying to upgrade itunes for windows, i get to a certain point and the following error comes up "ERROR 1714: THE OLD VERSION OF ITUNES CANNOT BE REMOVED CONTACT YOUR TECHNICAL SUPPORT GROUP" i click ok and then another error comes up "ERROR 1603 FATAL ERROR" can anybody help Please!!!!!!!!!!!!!!!!!!!!

    hi wags!
    hmmmm. okay, let's try using the complete uninstallation instructions from the following document to remove your existing itunes and QT:
    Trouble installing iPod, iTunes, or QuickTime software in Windows
    if you do that first, will the new itunes install go through properly?
    if you get an error message on the uninstalls, let us know what it says. include error message numbers if you're getting any.
    love, b

  • Need help with passing a variable in a function

    Hello. I am working on a Flash app that needs to play videos. I have code using netstream that works great for one movie. The problem is I have 3 movies I want to play and I need to figure out how to replace the string variable with the correct path info depending on what button is pushed. I'm thinking this needs to be an array which I have coded but it is not working. Here is the code:
    var buttonArray:Array = [chamber.btnV01,chamber.btnV02];
    var strSource:Array = ["HiFlow_Conventional_4.mp4","Tool_Less_5.mp4"];
    trace (buttonArray)
    for (var i:int = 0; i < buttonArray.length; i++) {
    buttonArray[i].addEventListener(MouseEvent.CLICK, playClicked);
    function playClicked(e:MouseEvent):void {
    // check's, if the flv has already begun
    // to download. if so, resume playback, else
    // load the file
    if(!bolLoaded) {
    var clickedIndex:int = buttonArray.indexOf(event.currentTarget);
    nsStream.play(strSource[clickedIndex]);
    bolLoaded = true;
    trace (strSource)
    else{
    nsStream.resume();
    This is just set for two buttons for testing. I keep getting the "1120: Access of undefined property event." right at the "nsStream.play(strSource[clickedIndex]);" line. The variable strSource is what I am trying to pass different movie paths into, but I am having no luck. Am setting this up right or is there another way to do this? Any help would be much appreciated. Thanks.
    -Shawn

    use:
    var buttonArray:Array = [chamber.btnV01,chamber.btnV02];
    var strSource:Array = ["HiFlow_Conventional_4.mp4","Tool_Less_5.mp4"];
    trace (buttonArray)
    for (var i:int = 0; i < buttonArray.length; i++) {
    buttonArray[i].addEventListener(MouseEvent.CLICK, playClicked);
    function playClicked(e:MouseEvent):void {
    // check's, if the flv has already begun
    // to download. if so, resume playback, else
    // load the file
    if(!bolLoaded) {
    var clickedIndex:int = buttonArray.indexOf(e.currentTarget);
    nsStream.play(strSource[clickedIndex]);
    bolLoaded = true;
    trace (strSource)
    else{
    nsStream.resume();

  • Need help with LabVIEW code for motor control.

    Hi,
    My name is Sasi. I am a BME grad student working on my thesis topic of evaluating spine implants for low back pain. For this I am building a test machine that would apply pure moments to a spine specimen. I am using LabVIEW 8.5 to implement control of a brushless AC servo motor. My requirement is,
    Step 1: Initialize the motor.
    Step 2: Start moving it at a uniform RPM to the right (This RPM value too user can enter).
    Step
    3: While doin Step 2; simultaneously read torque cell data (Using DAQ
    asst.). DAQ o/p is from 0 V to 10 V; 0 V being -10 Nm n
                10 V being  +10 Nm
    Step 4: When Torque value reaches +10 Nm, i.e 10 V, the motor stops.
    Step
    5: From the position where motor stopped (i.e no need to reset to
    initial position) Start moving in the opposite direction at the same
                uniform RPM as in Step 2 while reading torque cell data.
    Step 6: Once again when torque reaches -10 Nm, i.e. 0 V, the motor should stop.
    Step 7: Repeat 'Step 2' to 'Step 6' 3 times.
    Step 8: Reset motor postion.
    Till now I have managed to get the motor to move forward n backward @ a desired vel, accl, n deceleration for 3 cycles. I am attaching my code. I am having problem inserting the code for reading DAQmx amidst all this. Can anyone help me out.
    Thnks,
    Sasi.
    Solved!
    Go to Solution.
    Attachments:
    Test_012609.vi ‏35 KB

    Hi Sasidhar,
    I took a look at your problem and I think I have a workable solution for you.  I definitely agree with Lynn's suggestion of using parallel loops.  This will allow the DAQmx portion to run uninhibited by the motion portion, and vice versa.  Plus, you only need to iterate the motion loop whenever the voltage level crosses a threshold.  So, by iterating on the motion code in the same loop that you are iterating on DAQmx code, you are essentially wasting processor.
    I created a VI that should do what you are wanting.  I tested it out myself and it works great.  You might have a tweak a few things to apply to your system (like motion board ID and DAQmx physical channel, etc.).  I used two parallel loops and event-based programming.  Basically the motion loop starts the motor spinning at the specified velocity.  Once the motor is spinning, it waits for the DAQmx loop to tell it that the voltage value has crossed the threshold.  When the voltage value exceeds the maximum threshold (which I set to a value slightly less than 10 to allow for jitter and saturation), the DAQmx loop signals the motion loop that it can finish its iteration.  The motion loop stops the motion, reverses the direction, and starts the motion again.  Once motion has started, it again waits for the DAQmx loop to tell it that a threshold has occurred, but this time, it is looking for a minimum threshold.  I used "Occurrences" to implement the event-based programming in LabVIEW.
    I have commented the code rather thouroughly, so hopefully the comments will answer any remaining questions.  The benefit of using event-based programming for this is that you save processor time, and your motion is more closely synchonized with the DAQmx.  Instead of iterating the motion loop as fast as you can, checking for updates each time, you just pause it, and wait for the other loop to tell you when to start up again.  In the mean time, the processor doesn't have to worry about iterating that loop over and over again.  Also, when the occurrence does occur, you catch it immediately, instead of having to wait until the next iteration.  Thus, you are more closely synchronized with the DAQmx portion of the code.
    I hope this will help you.  Please post back if you have any questions about the code or its implementation.  Good Luck!
    Message Edited by Wes P on 02-03-2009 05:18 PM
    Wes P
    Certified LabVIEW Developer
    Attachments:
    Motion and DAQ.vi ‏59 KB
    DAQmx Loop.png ‏24 KB
    Motion Loop.png ‏17 KB

  • Need help with Labview code for DAQmx

    I'm currently trying to write Labview code for some thesis research and am having problems.  I'm using the cDAQ 9172 with strain gage modules and two voltage input modules.  I'll be reading/recording a voltage from an external source on one channel, while recording strains and accelerations with the other channels.  I need to do all this simultaneously.
    Everything I've done to this point has been in SignalExpress so I'm not sure how to program any of this.  I also need to be able to calibrate the strain gages prior to each set of recordings.  Any help you guys could offer would be greatly appreciated.  Thanks.

    Hi,
    I'm not sure how much this will help you, but I've attached a screen dump of code from a project I did that sounds pretty similar to what you're working on. The code is from a subVI that I used to create the daqMX measurement task for my data acquisition. I was also using a 9172. This was written in 8.5, but the only thing that you may not have access to is the functions for null offset and shunt cal of the strain gage channels. Hopefully this will at least get you started on your way to setting this up.
    Andrew Carollo
    Attachments:
    create task.jpg ‏208 KB

  • I need help with my code ASAP

    hello i am having difficulties in adding a number to an array. Look......i have done until here but i need to add the number to the array......so when i look at the array.....the array should contain the number i inserted into it.
    int x,y,f=0,z,c,v=0,b,n,m,flag=0;
    String A,B,C,D,E,F,G;
    int sum[]={15,8,7,4,11,2,1,0,0,0};
    BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Please Put The Number That You Want To Add Here!!!");
    C=dataIn.readLine();
    m=Integer.parseInt(C);
    for(n=0; n<sum.length; n++)
    if(v==sum[n])
    m=sum[n];
    System.out.println(m);
    but when i put m=sum[n]; (m is the number i inserted and is making that part of the array equal to the number inserted ) it doesn't work. I't won't change anything. I just want to change a cero from my array with the number i inserted. Please Someone Help Me!!!!!

    This is the code, formatted and fixed. ;-)
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    public class Main {
         public Main() {
         public static void main(String[] args)throws IOException
              int x,y,f=0,z,c,v=0,b,n,m,flag=0;
              String A,B,C,D,E,F,G;
              int sum[]={15,8,7,4,11,2,1,0,0,0};
              System.out.println(" <------------------------Menu------------------------------>");
              System.out.println("Please Select Any Of These Options By Pressing The Corresping Number Of Your equest:");
              System.out.println("1) Display Array");
              System.out.println("2) Search For A Number");
              System.out.println("3) Add A Number");
              System.out.println("4) Delete A Number");
              System.out.println("5) Sort Array");
              System.out.println("6) Exit");
              BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in));
              System.out.println("Please Put A Number Here!!");
              A=dataIn.readLine();
              y=Integer.parseInt(A);
              if(y==1)
                   System.out.println("Displaying Array...");
                   for(b=0; b<sum.length; b++)
                        if(v != sum)
                             System.out.print( sum[b] + " ");
              else if(y==2)
                   System.out.println("Search For A Number Here");
                   B=dataIn.readLine();
                   c=Integer.parseInt(B);
                   for(n=0; n<sum.length; n++)
                        if(c==sum[n])
                             System.out.println(sum[n]);
                        flag=1;
                   if(flag==1)
                        System.out.println("Your Number Is Registered In Our Database");
                   else
                        System.out.println("Your Number Is Not Registered In Our Database");
    //          This is the part i am having trouble with..........i don't know how to deal with it so that it will add the number to the array.
              else if(y==3)
                   System.out.println("Please Put The Number That You Want To Add Here!!!");
                   C=dataIn.readLine();
                   m=Integer.parseInt(C);
                   for(n=0; n<sum.length; n++)
                        if(v==sum[n])
                             sum[n]=m;
                        System.out.println(sum[m]);
              else if(y==4)
                   System.out.println("Delete A Number");
              else if(y==5)
                   System.out.println("Sort Array");
              else if(y==6)
                   System.out.println("You Just Exited The Prgoram");
                   System.out.print("Have A Nice Day!");
              else
                   System.out.print("Please type In A Number Between 1 and 6");
    //          TODO code application logic here

Maybe you are looking for

  • Exportação Plano de Contas

    Pessoal, bom dia.      Alguém sabe me informar se é possível importar o plano de contas de uma base e importar em outra, utilizando outra forma sem ser gerar um script do banco de dados e executar na outra base. Obrigado.

  • Linking Video in Indesign CS5.5

    Hello, I'm getting an error message of "The URL must reference a file that is compliant with flash player when trying to incorporate a linked video into Indesign CS 5.5. Why am I getting this error message? I would like to export the file as an inter

  • TSV_TNEW_BLOCKS_NO_ROLL_MEMORY or TSV_TNEW_PAGE_ALLOC_FAILED

    Hi; Our SAP servers run on Windows Server 2003 Enterprise x64 Edition and Mssql 2005 64 bit. They have 16 Gb Ram and 42 Gb virtual memory. I have to make system measurement by using tcode USMM. Although there is no problem when i run USMM on our test

  • Podcast headers remain after deleting usnig the swip method added in 2.2

    I have a 2nd gen iPod Touch with firmware 2.2 and I am able to delete podcasts with the swip method and it says it deletes them and they are removed from the list. The problem is that if I shut the touch off and turn it back on, all of the podcasts I

  • Set Key Photo on MacBook Pro, not reflecting on devices - 10.10.3

    I know this hasn't worked previously, but I was hoping for the new updates to Photos (10.10.3 update) and iOS 8.3 that the Key Photos would work better.  I've selected the Key Photo on the Events album on the MacBook, shows correctly no problem.  Whe