Value out from unfinished loop

Hi!
I have a smaller problem. How do I pass out a boolean value from a whileloop
when the loop is running?
See attached file..

Use a local variable !
See your vi, back...
Chilly Charly    (aka CC)
         E-List Master - Kudos glutton - Press the yellow button on the left...        
Attachments:
huvud2.vi ‏27 KB

Similar Messages

  • Problem  in out from for loop

    Here i drew connect four board game which has 6 row and 7 columns . There is an additional row appear . How can i out from loop to not draw seven rows. ??
    import java.awt.Dimension;
    import javax.swing.JFrame;
    public class TestNet extends JFrame {
        private DrawingNet drawingNet;
        public TestNet() {
            drawingNet = new DrawingNet();
            getContentPane().add(drawingNet);
        public static void main(String[] args) {
            TestNet testNet = new TestNet();
            testNet.setDefaultCloseOperation(TestNet.EXIT_ON_CLOSE);
            testNet.setSize(new Dimension(600, 300));
            testNet.setLocationRelativeTo(null);
            testNet.setVisible(true);
            testNet.setExtendedState(MAXIMIZED_BOTH);
    import java.awt.Color;
    import java.awt.Graphics;
    import javax.swing.JPanel;
    class DrawingNet extends JPanel {
        private int X_START = 100, Y_START = 100, DISTANCE = 0;
        private static final int ROW = 6, COL = 7;
      //  private final int[][] arrayNet;
        public DrawingNet() {
        //    arrayNet = new int[ROW][COL];
        @Override
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.setColor(Color.BLACK);
            for (int c = 0; c < COL; c++) {
    //            if (c ==7 ) {
    //                break;
                for (int r = 0; r < ROW; r++) {
    //                if (r == 5) {
    //                    break;
                    g.drawLine(X_START, Y_START + DISTANCE, X_START * COL, Y_START + DISTANCE);
                    g.drawLine(X_START + DISTANCE, Y_START, X_START + DISTANCE, Y_START * ROW);
                DISTANCE += 100;
    }Thanks

    if you compile my code you will see board consist of 6 row and seven column but there is seven row under the board i want not draw this
    how can i stop loop from drawing this row ??
    i do like this but also it is appear:
        @Override
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.setColor(Color.BLACK);
            for (int c = 0; c < COL; c++) {  // col from 0 to 6  (7 columns)
                for (int r = 0; r < ROW; r++) {  // row from 0 to 5  (6 rows)
                    g.drawLine(X_START, Y_START + DISTANCE, X_START * COL, Y_START + DISTANCE);
                    g.drawLine(X_START + DISTANCE, Y_START, X_START + DISTANCE, Y_START * ROW);
                    if (r == 6) {  // the  goal from this to not draw  the seven row
                        continue;
                DISTANCE += 100;
        }Many thanks .
    Edited by: beshoyatefw on Mar 21, 2010 6:18 AM

  • Swing - how to pass selected value out from actionPerformed() inner class?

    Hi all,
    I have a form with JcomboBox and textfields and I have to update the database
    with the submitted values. How can I pass the comboBox value out? I cannot defined boxValue as final outside the inner class.
    JComboBox list1 = new JComboBox (vector1);
    list1.addActionListener ( new ActionListener() {
    public void actionPerformed (ActionEvent ev) {
    boxValue = (String) ((JComboBox) ev.getSource()).getSelectedItem();
    thanks
    andrew

    OK, OK, my bad for not reading the whole post...
    1. Who needs to know the current JComboBox value? If the code that needs to know has access to the JComboBox, it can just get it from there. If the code is invoking the form, it is the responsibility of the form, not the listener, to return the values to the invoker.
    Please give us more information about what you are tryiug to do.

  • I can't pull a value out of a list from CFDIRECTORY.

    I've avoided insanity all these years, but this issue finally has me on the brink.  My institutionalization is in your hands.
    I'm trying to get the name of a specific directory from the list of directories generated by CFDIRECTORY action="list".  But everything I try, fails in one way or another.  Bascially, I can't pull the value out of the structure -- even though the code DOES FIND the value -- because it thinks the value is supposed to be a field or key.  (The server is running CF8.)
    These lines of code work fine:
    <!--- Make and loop through List of local directories. --->
    <CFSET LocalDirectoryList = "">
    <CFDIRECTORY action="list" name="LocalDirectoryList" TYPE="dir" directory="#PathOfLocalFolderToCopyToRemoteFolders#">
    <CFIF IsDefined("LocalDirectoryList.RecordCount") AND LocalDirectoryList.RecordCount GT "0">
    <CFLOOP query="LocalDirectoryList">
    Now comes the killer.  I want to define a variable whose value is the name of the current local directory -- that is, the value of LocalDirectoryList.Name for each loop of the loop.  But if I try to Access LocalDirectoryList.Name as a simple string variable, the way I usually can for a query string variable --
    <CFSET ThisLocalDirectory = LocalDirectoryList.Name>
    -- I get a message, "You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members."
    On the other hand, if I treat "LocalDirectoryList.Name" as a structure, and try to destructure it with any of the following --
    1) <CFSET ThisLocalDirectory = Evaluate(LocalDirectoryList.Name)>
    2) <CFSET ThisLocalDirectory = "#Evaluate(LocalDirectoryList.Name)#">
    3) <CFSET ThisLocalDirectory = "#StructFind(LocalDirectoryList, Name)#">
    4) <CFSET ThisLocalDirectory = StructFind(LocalDirectoryList, Name)>
    5) <CFSET ThisLocalDirectory = "#Evaluate(StructFind(LocalDirectoryList, Name))#">
    I get either "Variable backgrounds is undefined" (for 1 or 2) or  "The specified key, backgrounds, does not exist in the structure" (for 3, 4 or 5) .
    As it happens, the name of that directory is "backgrounds".  So the value I'm looking for DOES EXIST in the structure "LocalDirectoryList".  And the code IS FINDING IT.  But it thinks its the NAME of a key, instead of the VALUE of the key.
    Note:  Adding the attribute, listInfo="Name", to the CFDIRECTORY tag restricts the returned fields, or keys, to "Name", but LocalDirectoryList.Name is still a structure, and I still get the same results.
    Will I be the next cuckoo in the cuckoo's nest?  Or can you save me, and keep me sane?  My fate is in your hands.
    Thank you!

    But it thinks its the NAME of a key, instead of the VALUE of the key.
    Because that what the code is instructing CF to do ;-)
    <CFSET ThisLocalDirectory = StructFind(LocalDirectoryList, Name)>
    If you want to search for the literal string "Name" it must be enclosed in quotes.  Otherwise you are instructing CF to treat it as a variable and to pass its value (ie "backgrounds") into structFind().  The same thing with evaluate().
    <CFIF IsDefined("LocalDirectoryList.RecordCount") AND LocalDirectoryList.RecordCount GT "0">
    However as Michael pointed out, there is rarely a need for evaluate, and under normal circumstances no need for that IsDefined either. The query should always exist and the loop will only execute if the query contains one or more records.  So the code could be reduced to this.
    <CFDIRECTORY action="list"
                    name="LocalDirectoryList"
                    type="dir" 
                    directory="#PathOfLocalFolderToCopyToRemoteFolders#">
    <CFLOOP query="LocalDirectoryList">
             <CFSET ThisLocalDirectory = LocalDirectoryList.Name>
    </CFLOOP>
    Note, there is technically no need to assign #LocalDirectoryList.Name# to another variable either.  It can be used directly.

  • Last value from a loop and values inside the loop

    Hi
    Sorry about the confusing heading above, but its late at night and better words do not occur to me rightaway. Let me explain my situation.
    I have a single instrument (a voltage source) that is being swept from one value to another for an experiment. It has three VI's : 1. enable o/p. 2. Set a voltage output level. 3. diable o/p.
    I am using the error in and error out pins of instrument vis to properly sequence operations. I connect the error out pin of VI 1 to the error in pin of VI 2. Each of these errors is a cluster of three values.
    When I try to wire the error out from VI 2 inside the loop to VI 3 outside the loop, the wiring breaks as I am then trying to connect an array (a 1 dimensional n member array of error outs) to a single error in pin. Trying to connect it to an array outside the loop is obviously the same. (I am making an assumption here - while the loop is running, I do not need to make certain of the sequencing of operations by putting a feedback node on VI 2 - that would mean something quite different in any case.).
    So, how do I pass the last value (in this case, the error out cluster from the last stage) to error in pin of VI 3 ?
    I have read that it might be possible using shift registers. I am quite new to LabVIEW. A somewhat detailed description of what I need to do would be nice.
    Thanks.

    Hello,
    There are basically two options:
    Handle the errors outside the for-loop
    Handle the errors inside the for-loop
    For you solution 1 is the easiest achievable, after the for loop use the 'Merge Errors' VI this will change the 1d-array into a cluster. The downside is that if an error occured later states of the loops don't know this
    Solution 2 uses the shift register you mentioned. To use this you have to right-click on the right hand-side tunnel of the error wire (where it leaves the for-loop) and select shift register, sequentially your mouse pointer changes into an downpointed arrow, click on the entry tunnel on the left of the for-loop. What happens is that an error in the for loop is remembered into the next iteration (use execution highlighting to watch these)
    Here is some code:
    A good start might be:
    The link to the LabVIEW Learning Center is here
    Ton
    Message Edited by TonP on 09-25-2006 08:01 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_BD.png ‏5 KB

  • How to out from infinite while loop in sub VI

    Dear Sir,
    how to out from infinite while loop in sub VI from main VI
    attached photo for solution but I can't understand it and i can't find the function in photo 
    please help
    Attachments:
    stop_subVI_frm_main.JPG ‏36 KB

    Asking how to get out of an infinite loop is like asking how to find the end of a circle. I'm not trying to be sarcastic but by definition, if there is a way out of the loop, then it is not infinite. I think what you are asking is how to avoid creating an infinite loop. Is there something about the suggestions you have been given that you do not like? My favorite suggestion is the notifier but maybe you just need an example. Turn on context help and read about the notifier functions in the code below.
    This is your top level VI
    And this is your subVI
    If this seems too complex then a global variable will work too. But what seems simpler can cause much more complex bugs. You can code fast and spend lots of time debugging or you can code slow and spend less time debugging. Personally I perfer writing productive code than looking for bugs any time.
    =====================
    LabVIEW 2012

  • Passing value change from time out

    hi,
    need help....
    i have a radio button wic change arrouding to the text in the timeout.
    if the text is 0= the radio button value will b = 1
    if the text is 5= the radio button value will b = 2
    and so on...
    in this condition ..let say for my each time out i need to check the text..and if the value is 0/5
    i need to call the " Radio Button :Value Change" event..
    how to do tis pls help. thk u
    Solved!
    Go to Solution.

    Hi Jeyanthi,
    Assuming that the string data is pulled out from a user interface, and is labeled as STRING.
     Add value change event to the STRING. 
    Check your 0/5 condition in new event case
    Now, Instead of calling the value (signalling) property, create a sub VI of the code which executes in value change event of Radio control
    call the same sub VI in STRING value change event.
    its just to delete the code from timeout event.
     Also if the problem is solved, just mark the answer as solved. 
    Message Edited by Vsh on 11-09-2009 01:28 AM

  • [Forum FAQ] How to configure a Data Driven Subscription which get multi-value parameters from one column of a database table?

    Introduction
    In SQL Server Reporting Services, we can define a mapping between the fields that are returned in the query to specific delivery options and to report parameters in a data-driven subscription.
    For a report with a parameter (such as YEAR) that allow multiple values, when creating a data-driven subscription, how can we pass a record like below to show correct data (data for year 2012, 2013 and 2014).
    EmailAddress                             Parameter                      
    Comment
    [email protected]              2012,2013,2014               NULL
    In this article, I will demonstrate how to configure a Data Driven Subscription which get multi-value parameters from one column of a database table
    Workaround
    Generally, if we pass the “Parameter” column to report directly in the step 5 when creating data-driven subscription.
    The value “2012,2013,2014” will be regarded as a single value, Reporting Services will use “2012,2013,2014” to filter data. However, there are no any records that YEAR filed equal to “2012,2013,2014”, and we will get an error when the subscription executed
    on the log. (C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles)
    Microsoft.ReportingServices.Diagnostics.Utilities.InvalidReportParameterException: Default value or value provided for the report parameter 'Name' is not a valid value.
    This means that there is no such a value on parameter’s available value list, this is an invalid parameter value. If we change the parameter records like below.
    EmailAddress                        Parameter             Comment
    [email protected]         2012                     NULL
    [email protected]         2013                     NULL
    [email protected]         2014                     NULL
    In this case, Reporting Services will generate 3 reports for one data-driven subscription. Each report for only one year which cannot fit the requirement obviously.
    Currently, there is no a solution to solve this issue. The workaround for it is that create two report, one is used for view report for end users, another one is used for create data-driven subscription.
    On the report that used create data-driven subscription, uncheck “Allow multiple values” option for the parameter, do not specify and available values and default values for this parameter. Then change the Filter
    From
    Expression:[ParameterName]
    Operator   :In
    Value         :[@ParameterName]
    To
    Expression:[ParameterName]
    Operator   :In
    Value         :Split(Parameters!ParameterName.Value,",")
    In this case, we can specify a value like "2012,2013,2014" from database to the data-driven subscription.
    Applies to
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    Microsoft SQL Server 2008 R2
    Microsoft SQL Server 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    For every Auftrag, there are multiple Position entries.
    Rest of the blocks don't seems to have any relation.
    So you can check this code to see how internal table lt_str is built whose first 3 fields have data contained in Auftrag, and next 3 fields have Position data. The structure is flat, assuming that every Position record is related to preceding Auftrag.
    Try out this snippet.
    DATA lt_data TYPE TABLE OF string.
    DATA lv_data TYPE string.
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename = 'C:\temp\test.txt'
      CHANGING
        data_tab = lt_data
      EXCEPTIONS
        OTHERS   = 19.
    CHECK sy-subrc EQ 0.
    TYPES:
    BEGIN OF ty_str,
      a1 TYPE string,
      a2 TYPE string,
      a3 TYPE string,
      p1 TYPE string,
      p2 TYPE string,
      p3 TYPE string,
    END OF ty_str.
    DATA: lt_str TYPE TABLE OF ty_str,
          ls_str TYPE ty_str,
          lv_block TYPE string,
          lv_flag TYPE boolean.
    LOOP AT lt_data INTO lv_data.
      CASE lv_data.
        WHEN '[Version]' OR '[StdSatz]' OR '[Arbeitstag]' OR '[Pecunia]'
             OR '[Mita]' OR '[Kunde]' OR '[Auftrag]' OR '[Position]'.
          lv_block = lv_data.
          lv_flag = abap_false.
        WHEN OTHERS.
          lv_flag = abap_true.
      ENDCASE.
      CHECK lv_flag EQ abap_true.
      CASE lv_block.
        WHEN '[Auftrag]'.
          SPLIT lv_data AT ';' INTO ls_str-a1 ls_str-a2 ls_str-a3.
        WHEN '[Position]'.
          SPLIT lv_data AT ';' INTO ls_str-p1 ls_str-p2 ls_str-p3.
          APPEND ls_str TO lt_str.
      ENDCASE.
    ENDLOOP.

  • My iPod generation 6 160gb will not sync. iTunes says corrupt, won't restore just errors out and then loops the same messages.

    My iPod is corrupt according to iTunes, however it won't restore through iTunes either.  I've tried to reformat the drive.  Makes no difference.  I've tried to reformat after choosing disk manager, and again the same result.  The iPod takes forever to work through the reformatting process and I get the same message "Itunes has detected an iPod that appears to be corrupted. You may need to restore this iPod before it can be used with iTunes. You may also try disconnecting and reconnecting the iPod" and then my pc tells me to format the disk.
    It's so frustrating, is there a fix to this? It seems like the iPod could still function, but I'm missing the way to get out of this loop, please help me!

    Likely a hard drive fault, see the note that i wrote few years ago, hopefully it helps
    If a sad iPod icon or an exclamation point and folder icon appears on your iPod’s screen, or with sounds of clicking or HD whirring, it is usually the sign of a hard drive problem and you have the power to do something about it now. Your silver bullet of resolving your iPod issue – is to restore your iPod to factory settings.
    http://docs.info.apple.com/article.html?artnum=60983
    If you're having trouble, try these steps at different levels one at a time until the issue is resolved. These steps will often whip your iPod back into shape.
    Make sure you do all the following “TRYs”
    A. Try to wait 30 minutes while iPod is charging.
    B. Try another FireWire or USB through Dock Connector cable.
    C. Try another FireWire or USB port on your computer .
    D. Try to disconnect all devices from your computer's FireWire and USB ports.
    E. Try to download and install the latest version of iPod software and iTunes
    http://www.apple.com/itunes/download/
    For old and other versions of iPod updater for window you can get here
    http://www.ipodwizard.net/showthread.php?t=7369
    F. Try these five steps (known as the five Rs) and it would conquer most iPod issues.
    http://www.apple.com/support/ipod/five_rs/
    G. Try to put the iPod into Disk Mode if it fails to appear on the desktop
    http://docs.info.apple.com/article.html?artnum=93651
    If none of these steps address the issue, you may need to go to Intermediate level listed below in logical order. Check from the top of the lists to see if that is what keeping iPod from appearing on your computer in order for doing the Restore.
    Intermediate Level
    A. Try to connect your iPod with another computer with the iPod updater pre-installed.
    B. Still can’t see your iPod, put it in Disk Mode and connect with a computer, instead of doing a Restore on iPod Updater. Go and format the iPod instead.
    For Mac computer
    1. Open the disk utility, hope your iPod appears there (left hand side), highlight it
    2. Go to Tab “Partition”, click either “Delete” or “Partition”, if fails, skip this step and go to 3
    3. Go to Tab “Erase” , choose Volume Format as “MAC OS Extended (Journaled), and click Erase, again if fails, skip it and go to 4
    4. Same as step 3, but open the “Security Options....” and choose “Zero Out Data” before click Erase. It will take 1 to 2 hours to complete.
    5. Eject your iPod and do a Reset
    6. Open the iTunes 7 and click “Restore”
    For Window computer
    Go to folder “My Computer”
    Hope you can see your iPod there and right click on the iPod
    Choose “Format”. Ensure the settings are at “Default” and that “Quick Format” is not checked
    Now select “Format”
    Eject your iPod and do a Reset
    Open the iTunes 7 and click “Restore”
    In case you do not manage to do a “Format” on a window computer, try to use some 3rd party disk utility software, e.g.“HP USB Disk Storage Format Tool”.
    http://discussions.apple.com/thread.jspa?threadID=501330&tstart=0
    C. Windows users having trouble with their iPods should locate a Mac user. In many cases when an iPod won't show up on a PC that it will show up on the Mac. Then it can be restored. When the PC user returns to his computer the iPod will be recognized by the PC, reformatted for the PC, and usable again. By the way, it works in reverse too. A Mac user often can get his iPod back by connecting it to a PC and restoring it.
    Tips
    a. It does not matter whether the format is completed or not, the key is to erase (or partly) the corrupted firmware files on the Hard Drive of the iPod. After that, when the iPod re-connected with a computer, it will be recognized as an fresh external hard drive, it will show up on the iTunes 7.
    b. It is not a difficult issue for a Mac user to find a window base computer, for a PC user, if they can’t find any Mac user, they can go to a nearest Apple Shop for a favor.
    c. You may need to switch around the PC and Mac, try to do several attempts between “Format” and “Restore”
    http://discussions.apple.com/thread.jspa?messageID=2364921&#2364921
    Advance Level
    A. Diagnostic mode solution
    If you have tried trouble shooting your iPod to no avail after all the steps above, chances are your iPod has a hardware problem. The iPod's built-in Diagnostic Mode is a quick and easy way to determine if you have a "bad" iPod.
    You need to restart your iPod before putting it into Diagnostic Mode. Check that your hold switch is off by sliding the switch away from the headphone jack. Toggle it on and off to be safe.
    Press and hold the following combination of buttons simultaneously for approximately 10 seconds to reset the iPod.
    iPod 1G to 3G: "Menu" and "Play/Pause"
    iPod 4G+ (includes Photo, Nano, Video, and Mini): "Menu" and "Select"
    The Apple logo will appear and you should feel the hard drive spinning up. Press and hold the following sequence of buttons:
    iPod 1G to 3G: "REW", "FFW" and "Select"
    iPod 4G+ (includes Photo, Nano, Video, and Mini): "Back" and "Select"
    You will hear an audible chirp sound (3G models and higher) and the Apple logo should appear backwards. You are now in Diagnostic Mode. Navigate the list of tests using "REW" and "FFW". The scroll wheel will not function while in diagnostic mode. For further details on Diagnostic mode can be found at http://www.methodshop.com/mp3/ipodsupport/diagnosticmode/
    Try to do the 5in1, HDD R/W and HDD scan tests. Some successful cases have been reported after the running the few tests under the Diagnostic mode. In case it does not work in your case, and the scan tests reports show some errors then it proves your iPod has a hardware problem and it needs a repairing service.
    B. Format your iPod with a start disk
    I have not tried this solution myself, I heard that there were few successful cases that the users managed to get their iPod (you must put your iPod in disk mode before connecting with a computer) mounted by the computer, which was booted by a system startup disk. For Mac, you can use the Disk Utility (on the Tiger OS system disk), for PC user, you can use the window OS system disk. Try to find a way to reformat your iPod, again it does not matter which format (FAT32, NTFS or HFS+) you choose, the key is to erase the corrupted system files on the iPod. Then eject your iPod and do a Reset to switch out from Disk Mode. Reboot your computer at the normal way, connect your iPod back with it, open the iPod updater, and hopefully your iPod will appear there for the Restore.
    If none of these steps address the issue, your iPod may need to be repaired.
    Consider setting up a mail-in repair for your iPod http://depot.info.apple.com/ipod/
    Or visit your local Apple Retail Store http://www.apple.com/retail/
    In case your iPod is no longer covered by the warranty and you want to find a second repairing company, you can try iPodResQ or ifixit at your own risk
    http://www.ipodresq.com/index.php
    http://www.ifixit.com/
    Just in case that you are at the following situation
    Your iPod warranty is expired
    You don’t want to pay any service charges
    You are prepared to buy a new one
    You can’t accept the re-sell value of your broken iPod
    Rather than leave your iPod as paper-weight or throw it away.
    You can try the following, but again, only do it as your last resort and at your own risk.
    Warning !!!! – It may or may not manage to solve your problem, and with a risk that you may further damage your iPod, which end up as an expensive paper weight or you need to pay more higher repairing cost. Therefore, please re-consider again whether you want to try the next level
    Last Resort Level
    1. . Disconnecting the Hard Drive and battery inside the iPod – Warning !! Your iPod warranty will be waived once you open the iPod.
    In Hong Kong there are some electronic shops offering an iPod service for Sad iPod, the first thing they do is to open up the iPod’s case and disconnecting the battery and the Hard Drive from the main board of the iPod. Wait for 5-10 minutes and reconnecting them back. The reason behind which I can think of is to do a fully reset of a processor of the iPod. In case you want do it itself and you believe that you are good on fixing the electronics devices and have experience to deal with small bits of electronic parts, then you can read the following of how to open the iPod case for battery and HDD replacement (with Quicktimes)
    http://eshop.macsales.com/tech_center/index.cfm?page=Video/directory.html
    2.Press the reset button on the Hard Drive inside the iPod – Suggestion from Kill8joy
    http://discussions.apple.com/thread.jspa?messageID=2438774#2438774
    Have I tried these myself? No, I am afraid to do it myself as I am squeamish about tinkering inside electronic devices, I have few experiences that either I broke the parts (which are normally tiny or fragile) or failed to put the parts back to the main case. Therefore, I agree with suggestion to have it fixed by a Pro.
    2. Do a search on Google and some topics on this discussion forum about “Sad iPod”
    Exclamation point and folder and nothing else
    Spank your iPod
    http://www.youtube.com/watch?v=3ljPhrFUaOY
    http://discussions.apple.com/thread.jspa?messageID=3597173#3597173
    Exclamation point and folder and nothing else
    http://discussions.apple.com/thread.jspa?messageID=2831962#2831962
    What should I do with my iPod? Send it or keep it?
    http://discussions.apple.com/thread.jspa?threadID=469080&tstart=0
    Strange error on iPod (probably death)
    http://discussions.apple.com/thread.jspa?threadID=435160&start=0&tstart=0
    Sad Face on iPod for no apparent reason
    http://discussions.apple.com/thread.jspa?threadID=336342&start=0&tstart=0
    Meeting the Sad iPod icon
    http://askpang.typepad.com/relevant_history/2004/11/meeting_the_sad.html#comment -10519524
    Sad faced iPod, but my computer won’t recognize it?
    http://discussions.apple.com/thread.jspa?messageID=2236095#2236095
    iPod Photo: unhappy icon + warranty question
    http://discussions.apple.com/thread.jspa?messageID=2233746#2233746
    4th Gen iPod Users - are we all having the same problem?
    http://discussions.apple.com/message.jspa?messageID=2235623#2235623
    Low Battery, and clicking sounds
    http://discussions.apple.com/thread.jspa?messageID=2237714#2237714
    Sad faced iPod, but my computer won’t recognize it
    http://discussions.apple.com/thread.jspa?messageID=2242018#2242018
    Sad iPod solution
    http://discussions.apple.com/thread.jspa?threadID=412033&tstart=0
    Re: try to restore ipod and it says "can't mount ipod"
    http://discussions.apple.com/thread.jspa?threadID=443659&tstart=30
    iPod making clicking noise and is frozen
    http://discussions.apple.com/thread.jspa?messageID=2420150#2420150
    Cant put it into disk mode
    http://discussions.apple.com/thread.jspa?messageID=3786084#3786084
    I think my iPod just died its final death
    http://discussions.apple.com/thread.jspa?messageID=3813051
    Apple logo & monochrome battery stay
    http://discussions.apple.com/thread.jspa?messageID=3827167#3827167
    My iPod ism’t resetting and isn’t being read by my computer
    http://discussions.apple.com/thread.jspa?messageID=4489387#4489387
    I am not suggesting that you should follow as well, but just read them as your reference. You are the person to make the call.
    Finally, I read a fair comments from dwb, regarding of slapping the back of the iPod multiple times
    Quote “This has been discussed numerous times as a 'fix'. It does work, at least for a while. In fact I remember using the same basic trick to revive Seagate and Quantam drives back in the mid to late 1980's. Why these tiny hard drives go bad I don't know - could be the actuator gets stuck in place or misaligned. Could be the platter gets stuck or the motor gets stuck. 'Stiction' was a problem for drives back in the 80's. Unfortunately the fix can cause damage to the platter so we temporarily fix one problem by creating another. But I know of two instances where a little slap onto the table revived the iPods and they are still worked a year or more later.”UnQuote

  • LabVIEW 6.1 If For Loop count terminal is zero then value going through the loop is not passed on to the output of the loop

    Hello, one of our customers just encountered an execution error in a vi running under LabVIEW 6.1, which doesn't exist under LabVIEW 5.1 or 6.01. I have a simple vi that has two encapsulated For Loops. Two string arrays go in, one goes out of the outer loop. Inside the outer loop the first array is indexed. The string which results from this indexing is compared with all other strings from the second string array in the inner loop. If it matches one of the strings of the second array, it is not outputted, otherwise this string goes through the inner For Loop to the output of the inner loop and from there to the output of the outer loop. The count
    terminal of the outer/inner loop is connected to the Array Size of the first/second string array. If the second array is empty, that means that the element in test from the first arry cannot match anything from the second array, so the element in test is send to the output of the inner loop and from there to the output of the outer loop. This works fine in LabVIEW 5.1 and 6.01, but NOT in LabVIEW 6.1. In LabVIEW 6.1 the inner loop is never executed if the count value is zero (which is correct), but the data line running through the loop is not executed either, which is different to what LabVIEW 5.1 and 6.01 do. There, the input string is sent to the output of the inner loop correctly even if the loop counter is zero. The solution is easy - I just have to connect the output of the outer loop to the data line BEFORE it enters the inner loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is supposed to be a feature, but it brings some incompatibility in programming between the
    different LabVIEW versions.
    Best regards,
    Gabsi

    Hi,
    When a for-loop runs zero times, all outputs are 'undefined' (and should
    be).
    Besides, how would LV know what the output of a not executed routine should
    be?
    It might be handled differently in LV5 and LV6, which is unfortunate. In
    both cases, the result is undefined.
    It's not a bug. It's just something that should be avoided in any LV
    version.
    > The solution is easy - I just have to connect the
    > output of the outer loop to the data line BEFORE it enters the inner
    > loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is
    In some cases this does the trick. But if the data is changed in the inner
    loop, this will effect the results if the N is not zero.
    Technically, I think the output in this construction is also 'undefined'.
    But LV handles this as expected / desired.
    Another solution is to use a shift register. If N is zero, the input is
    directly passed through to the output.
    Regards,
    Wiebe.
    "Gabs" wrote in message
    news:[email protected]...
    > LabVIEW 6.1 If For Loop count terminal is zero then value going
    > through the loop is not passed on to the output of the loop
    >
    > Hello, one of our customers just encountered an execution error in a
    > vi running under LabVIEW 6.1, which doesn't exist under LabVIEW 5.1 or
    > 6.01. I have a simple vi that has two encapsulated For Loops. Two
    > string arrays go in, one goes out of the outer loop. Inside the outer
    > loop the first array is indexed. The string which results from this
    > indexing is compared with all other strings from the second string
    > array in the inner loop. If it matches one of the strings of the
    > second array, it is not outputted, otherwise this string goes through
    > the inner For Loop to the output of the inner loop and from there to
    > the output of the outer loop. The count terminal of the outer/inner
    > loop is connected to the Array Size of the first/second string array.
    > If the second array is empty, that means that the element in test from
    > the first arry cannot match anything from the second array, so the
    > element in test is send to the output of the inner loop and from there
    > to the output of the outer loop. This works fine in LabVIEW 5.1 and
    > 6.01, but NOT in LabVIEW 6.1. In LabVIEW 6.1 the inner loop is never
    > executed if the count value is zero (which is correct), but the data
    > line running through the loop is not executed either, which is
    > different to what LabVIEW 5.1 and 6.01 do. There, the input string is
    > sent to the output of the inner loop correctly even if the loop
    > counter is zero. The solution is easy - I just have to connect the
    > output of the outer loop to the data line BEFORE it enters the inner
    > loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is
    > supposed to be a feature, but it brings some incompatibility in
    > programming between the different LabVIEW versions.
    > Best regards,
    > Gabsi

  • CRAXDDRT PrintOutEx method throes 'value out of range' error

    Hi,
    I am using CRAXDDRT.dll for Crystal reports 10 to print a report to a file in afp format.
    The following is the scenario:
    We have to print out the Tax forms of all the accounts. These forms are printed through an AFP printer. We generate the AFP file and push it to the printer for printing. We create the files each containg10000 accounts. So, we create multiple afp files going in a loop in our code, breaking our files to contain 10000 accounts. For writing the report to a file we use the PrintOutEx method of CRAXDDRT.dll which also takes StartPage number and StopPage numbers as parameters. But when either of the parameters exceeds 32000(int) the method fails with a 'value out of range' error. Do we have any hot fix so that the PrintOutEx method accepts StartPageNum and StopPageNum values more than 32000.
    Public crReport As CRAXDDRT.ReportClass
    crReport.PrintOutEx(False, piCopiesToPrinter, True, 33000, 38000, sPortName)
    Thanks.

    CR 10 has been out of patch support since december of 07. See the following for more details:
    Business Objects Product Lifecycles [original link is broken]
    There is no equivalent API to PrintOutEx in the Crystal Reports SDK for .NET. Thus I understand why you need to use the RDC. However, my suggestion of changing your reference to craxDrt.dll as opposed to craxDDrt.dll still stands due to the two reasons I gave in my previous post (licensing and stability).
    I would also consider Don's suggestion re. the 32K limit:
    "Only work around I can think of is to limit the number of pages for your print jobs to 32K and then create multiple print jobs to select the same limit. Using Record Selection formula to set the limit, as for the actual page numbers being printed you will likely have to limit them also to 32k, the field may not be able to hold any page numbers higher than 32k."
    Finally, another suggestion worth investigating is to see if CR XI release 2 with the latest Service Pack has the same issue. CR XI r2 eval can be downloaded from here:
    http://www.businessobjects.com/products/reporting/crystalreports/eval.asp
    The latest Service Pack can be downloaded from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    Ludek

  • How to store a single value embedded in several loops

    I have a situation where I have 3 while loops embedded inside one another and I need to pass a single value obtained from the first iteration of the central loop.  I have thought of a few ways to do this, but I'm not sure which is the best or most efficient.  The two ideas I have are to either use shift registers (which can get messy with 3 loops) to store the value, or to write to a local variable only once and then read it out later.  Right now I'm using a combination of shift registers and auto-indexing, and finding the first value after the loops have completed.  It works, but it doesn't seem very elegant.  I'd love to hear some new suggestions or some thoughts about using local variables vs. shift registers.
    Any help would be appreciated.
    Ken

    halvorka wrote:
    The two ideas I have are to either use shift registers (which can get messy with 3 loops) to store the value,
    Not really that messy . let's assume that the innermost loop sees all iteration (i.e. is not inside a case structure), all you need in an unintialized shift register in the innermost loop as e.g. shown in the figure.
    Message Edited by altenbach on 08-30-2007 01:57 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    FirstInnermost.png ‏7 KB

  • Need help with nested loop (c:forEach) tags. Can I break from inner loop?

    Hi all, I have this annoying problem and I am looking for any suggestions.
    I have 2 select boxes. One is for all available users, and second - for selected users (designated as admins). The list of all users is available in a collection (2 properties userId and userName displayed in the code below). The list of admins contains only userId (as strings).
    I have no problem with populating selected users (admins) list, reusing pretty much the same logic below, but I cannot find a way to break out from the nested loop once the match is found, to avoid repetitions leading to incorrect display of results.
    <select name=available>
    <c:forEach items="${users}" var="user" varStatus="outer">
        <c:forEach items="${adminIds}" var="adminId" varStatus="inner">
            <c:if test="${user.userId!=adminId">
                 <option value="<c:out value="${user.userId}" />"><c:out value="${user.userFullName}"/></option>
            </c:if>
        </c:forEach>
    </c:forEach>
    </select>
    <select name=selected>
    <c:forEach items="${users}" var="user" varStatus="outer">
        <c:forEach items="${adminIds}" var="adminId" varStatus="inner">
            <c:if test="${user.userId==adminId">
                 <option value="<c:out value="${user.userId}" />"><c:out value="${user.userFullName}"/></option>
            </c:if>
        </c:forEach>
    </c:forEach>
    </select>Can anyone help, please? I am also restricted to JSP 1.2

    Double post: http://forum.java.sun.com/thread.jspa?threadID=707950&tstart=0

  • Data coming out of a loop, how can I represent them to be similar like they were in the loop?

    If I link the vi "filter 2 1.03" located in the "analysis" vi (independantly from "analysis") to the "Global" vi located in the "3 dim-graph" vi and the link this to a 3D graph, I get the graph I looking for.
    Here, the "filter 2 1.03" vi is located in the "Analysis" vi and the data traverse a loop before going to the "Global" vi, located in "3 dim graph" vi.
    How can I do to have the data going in the "Global" vi, like if they were just coming out from the "filter 2 1.03" vi?
    Summer
    Attachments:
    Plot_analog.dr.vi ‏118 KB
    Analysis_dr.vi ‏714 KB
    PT_3-dim_Graphics_dr6.vi ‏106 KB

    When I try to open your VIs, they come up broken. You may want to save the VIs as a development library. Open the VI >> file >> save as >> development distribution. I also cannot follow exactly what you need. Would it be possible to simply your code down to the exact problem? This will help us tremendously in giving you a solution.
    Jeremy

  • No sound coming from Audio Loops

    Hi,
    I was in a studio session with an artist today and upon reopening Logic Pro X after a lunch break, the audio loops from the loop library are not playing. I've created a new project and dragged the loops into new tracks and they still won't play. It shows there are levels but no sound is coming out. I tried the same thing with midi loop files and those will play fine with perfect sound. I have double checked my speaker system and restarted Logic and the Computer multiple times but it still won't play any sound for any audio loops. Can anyone help me with finding a solution for this?
    Thanks!

    I had no idea what that was until I searched for it. But I found it and made sure it was set for "Built-in Input" for "Default Input" under System Settings, and also "Built-in Input" by Properties For... then down under Audio Input it has "Line In" as the Source... everything looks fine but I'm still not hearing anything. I even tried adding my mixer as a MIDI device(???), although I've no clue what I'm doing in that area...

Maybe you are looking for

  • Oracle Application Server 10g Release 2 (10.1.2.0.2)  on 64bit RHEL

    HI, EBS-12.1.3 DB 11gR1 I am Facing following Error: while installing Oracle Application Server 10g Release 2 (10.1.2.0.2) on 64bit RHEL pwd pwd /shared/bishiphome/Disk1/install/linux64 [oravis@erptest linux64]$./runInstaller -ignoreSysPreReqs Starti

  • Why cannot I drag and drop songs from one playlist to another?

    Actually I have two questions.  I just updated from Leopard to snow leopard.  Now when I import songs, it says "Do you want to import to burn playlist?"  I click "yes".  Then when it is finished copying, I go to "playlists" on the top of the screen a

  • Photoshop CC 2014 won't open Photos I choose to "Edit in Photoshop CC 2014" in Lightroom

    I just downloaded Photoshop CC 2014 and uninstalled Photoshop CC.  Lightroom is updated as well.  However, now when I try to "Edit in Photoshop CC 2014" from Lightroom, the app will open but it does not load the photos I chose to edit.  How can I fix

  • Printing imported screen shots

    I imported some Word documents into RH 7 which included some general .jpg images and a screen shot taken in Snag It. When printed output was created (doc & pdf formats), both the images and the screen capture were a little distorted and did not print

  • Integrate a search box in Numbers

    Hello! I have a chart whith many cols and rows - just like this: Title Date owner blabla 2007 me aiaiai 2012 you aha 1999 other guy I'd like to integrate a search box in Numbers. Every col should have a search box (A2, B2, C2). By typing "aha" in "A2