Qsm pc, problem with stop loop

i tested queue producer/consument with event case, but i have problem with stop the both loop, can you help me with attachment ?
queue_mereni_1.zip ‏46 KB
Global_queue.zip ‏3 KB

thanks for your answer,
i had problem with upload *.vi (some mistake), so when a upload *.zip it was ok, but i do not know why..
please, when i put time out constatn, so when i push "stop" then both loops end - it is ok BUT:
when i push "stop 2" button (for the second loop) so there is error (in attachment), please do you know why?
i am sorry for a lot of questions but i try understand it..
thank you
qsm.jpg ‏31 KB

Similar Messages

  • Problems with stopped HP Print Jobs on Mac OS 10.5.

     I have several Mac Stations with different Mac OS X versions (Mac OS X 10.5-10.7) and bought 2 HP Laser Printers:
    - HP LaserJet Pro 400 M401dw
    - HP LaserJet Pro 200 M276nw
    After installing the HP Driver SW on all Mac Stations I changed then on the Printers the dynamic IP address to static ones. The printing didnt work anymore from the Mac Stations. I re-installed all Driver SW on every Mac Station. Then Printing worked on every Mac, except only on the Mac OS X 10.5. Station the Print Jobs were always stopped after any Print attempt.
    This appeared on the Mac OS X 10.5. Machine in the Printer Spooler Job Message Window and within the error_log File content:
    - can't create PictWPSDoc from `/private/var/spool/cups/xxx'.ERROR during execution of pictwpstops. Error number -9783
    As it seems like problems existed with file permissions I ran a complete Disk Utility File Permission Repair. Then another reinstall of the HP Driver Packages. - Still the same failures with stopping Print Jobs.
    Then I read the README file of the Installation Package. And the quite simple solution was:
    DE-INSTALL the HP Driver SW FIRST (with the HP Deinstallator), BEFORE RE-INSTALLING the HP Driver SW again.
    So I did this, then no Print Jobs were stopped anymore and both Printer are happily printing.
    The conclusion is, I guess, Mac 10.6..10.7 does not have problem with multiple re-installation of the HP driver SW. Only the Mac OS 10.5. did NOT work anymore after another reinstall of the Driver SW Package, and without de-installing it properly. The bottom line is to de-install the driver SW (and maybe disk repair) properly BEFORE another insallation wants to be done. This however solved my printing problems on the Mac OS X 10.5. machine.

    Please follow the link below :
    I work for HP but my posts and replies are my own.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • Problem with stop PPC G5 Dual 2GB

    Hi, i m new user. I have a problem with Dual G5 2,0GB. I dont know why my mac when do STOP at apple menu, it die. Dont start again. I tryed to reinstall OSX 10.5 and 10.5.6 But it does the same thing. There is somebody can help me what i do????? Thanks

    Are you saying you can get it to boot from the install disks but not the Hard drive?
    Startup holding down the "C" key on the keyboard. Get to the Utilities folder and use Disk Utilities on the hard drive. Let it fix what ever it finds. Then run permission repair from Disk Utilities. Then go to the install screen (it will come up when you quit disk utilities.
    !) If you have nothing on the Hard drive: do a clean install of the system software. Use the option that writes zeroes on the disk as it's formatting (it will block out any bad sectors) then complete the install.
    2) If you have anything on the disk back it up to an external disk if you can. Instead of doing a clean install try an archive and install.
    Good Luck

  • Problems with stopping dbconsole & iSQL+

    I have 2 databases (10.2.01) on 1 Linux RedHat server. We needed to implement ESRI GIS that’s why we wanted to keep those DB separate – GIS is on 2nd DB.
    I have problem with shutting down dbconsole & iSQL+:
    dbconsole is starting normally, but on shutdown it gives error „Failed to shutdown DBConsole Gracefully”. Not sure if it happens coz of 2 DBs on same server, because I forgot to add something to config files or I 1ce accidentally restarted server while DB was set to shut down normally.
    Reverting GIS DB to backup after making startup/shutdown script 1st box restart, but before box restart mid-normal DB shutdown didn’t change a thing.
    Startup/shutdown script in “/etc/rc.d/init.d”:
    # chkconfig: 345 99 10
    # description: Oracle auto start-stop script.
    # Set ORA_HOME to be equivalent to the $ORACLE_HOME
    # from which you wish to execute dbstart and dbshut;
    # Set ORA_OWNER to the user id of the owner of the
    # Oracle database in ORA_HOME.
    ORA_HOME=<Oracle home dir>
    if [ ! -f $ORA_HOME/bin/dbstart ]
    echo "Oracle startup: cannot start"
    case "$1" in
    # Start the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
    su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
         su - $ORA_OWNER -c "ORACLE_SID=<DB SID>;$ORA_HOME/bin/emctl start dbconsole"
         su - $ORA_OWNER -c "ORACLE_SID=<GIS SID>;$ORA_HOME/bin/emctl start dbconsole"
         su - $ORA_OWNER -c "ORACLE_SID==<DB SID>;$ORA_HOME/bin/isqlplusctl start"
    # Stop the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
         su - $ORA_OWNER -c "ORACLE_SID==<DB SID>;$ORA_HOME/bin/isqlplusctl stop"
         su - $ORA_OWNER -c "ORACLE_SID==<DB SID>;$ORA_HOME/bin/emctl stop dbconsole"
         su - $ORA_OWNER -c "ORACLE_SID==<GIS SID>;$ORA_HOME/bin/emctl stop dbconsole"
    su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
    iSQL+ is also starting normally, but on stopping it gives:
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Stopping iSQL*Plus ...
    Error: Unable to find java:comp/ServerAdministrator: Lookup error: javax.naming.AuthenticationException: Invalid username/password for default (admin); nested exception is: javax.naming.AuthenticationException: Invalid username/password for default (admin)
    iSQL*Plus stopped.
    But it’s still running…
    I only managed to work around dbconsole by editing emctl.pid to match Enterprise Manager Agent Port for respective SID (not sure even if you can call that workaround), but emctl.pid seems to be random on dbconsole start.
    I really don’t want to put any DB updates on until I manage to shutdown dbconsoles & iSQL+ properly… or maybe update IS the solution.
    GIS DB is just created - no data on it. So I can delete it if its gona help, but Id prefer to solve this as experience never hurts (especially if Im gona have 2 DBs on 1 box).
    I’m new to Oracle – been on Administration workshop & backup/recovery courses, but those problems don’t really feel like basic stuff so some tips on this would be welcome.
    Thanks in advance.

    According to my little knowledge - i don't think Oracle is an AIDB. It is only RDBMS or rather you can call it Advanced RDBMS.
    Now, you are thinking that since you have provided the relavant table here - so Oracle should automatically pic the single records. Since you have define every logic including the concept of primary key, foreign key in your table.
    But, question is - did you apply the relationship in your join between the tables.
    What does a primary key, foreign key do inside a table? Is it automatically select the unique rows from the join tables - when you didn't mention the join criterion.
    If you think that - then you are wrong. My advice is - kindly go through the JOIN Concept.
    Then start your coding. This is very dangerous way to start. Learn the basics at least.
    So, what Senti suggested has a very much valid point.
    Satyaki De.

  • Problem with a loop

    Hello All
    I'm working on a Flash Gallery and I'm having some issues
    with a loop and it's probably something simple I don't know so I
    thought I'd see if someone can help me.
    the problem is that once the thumbnail panel is populated the
    image I want to display from a rollover is no longer defined. As I
    mentioned I was hoping someone could shed some light on this.
    // create the thumbnail panel
    var i = -1;
    while(++i<thumbList.length) {
    name = "item"+i;
    this[name]._x = i*spacing;
    this[name].contentPath = "children/" + thumbList
    // show the larger pic on rollover
    this[name].onRollOver = function() {
    picture.contentPath = "children/" + thumblist;
    by using this I get an error of: "error opening

    mark2685 wrote:
    Well, the array of student objects is larger than 2, there are about 6 students so it would have to get the highest from TestScore 1 and the lowests from TestScore 2 out of all of the students, not just those 2. And I want the entire object stored in the chessTeam array. Does this make sense?No you're not reading my code right (BTW - add an open brace on the for loop top and set score2 to 101), or else I'm not understanding you requirements correctly. The student array can hold as many Students as needs be. You stated that you have only two scores that you care about and so that's the 1 and the 2. Based on the Student class you've shown us, this should work, but you'll have to try it before you know.

  • Problem with "stop playing causing camera light to flash

    Since ipgrading to ios 5.1 I se that Apple took away the Sleep ipod opton for the timer and relaced it with "stop playing".  Unfortunately, wen the timer reaches zero, the phone stops playing but the camera flas starts flashing until I unlock the phone.  Besides being annoying, this obviously defeats the purpose of resting the phone and saving battery life.  Any suggestions?  Note: I do have a flaslight app on the phone in case that makes a difference.

    Thanks again
    I have removed the keyframes in frame 2 and 6 on all the layers (please seen new pic below), however the problem still persists.
    Here is my code on my actions layer:
    toolbar.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    function fl_ClickToDrag(event:MouseEvent):void
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    function fl_ReleaseToDrop(event:MouseEvent):void
    about.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_4);
    function fl_ClickToGoToAndPlayFromFrame_4(event:MouseEvent):void
    latestnews.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_6);
    function fl_ClickToGoToAndPlayFromFrame_6(event:MouseEvent):void
    services.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_7);
    function fl_ClickToGoToAndPlayFromFrame_7(event:MouseEvent):void
    portfolio.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_8);
    function fl_ClickToGoToAndPlayFromFrame_8(event:MouseEvent):void
    contact.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_9);
    function fl_ClickToGoToAndPlayFromFrame_9(event:MouseEvent):void
    As you can see the code looks pretty correct to me. Ignore the code at the top, that is just for a draggable graphic on the page.
    Any clues from the code??

  • Probably simple problem with while loops

    I was programming something for a CS class and came across a problem I can't explain with while loops. The condition for the loop is true, but the loop doesn't continue; it terminates after executing once. The actual program was bigger than this, but I isolated my problem to a short loop:
    import java.util.Scanner;
    public class ok {
    public static void main(String[] args){
         Scanner scan = new Scanner(System.in);
         String antlol = "p";
         while(antlol == "p" || antlol == "P"){
              System.out.println("write a P so we can get this over with");
              antlol = scan.nextLine(); 
    //it terminates after this, even if I type "P", which should make the while condition true.

    Thanks, that worked.
    I think my real problem with this program was my CS
    teacher, who never covered how to compare strings,Here's something important.
    This isn't just about comparing Strings. This applies to comparing ANY objects. When you use == that compares to see if two references refer to the same instance. equals compares objects for equality in the sense that equality means they have equal "content" as it were.

  • A problem with for loop..

    i have a problem with this code :
         int [] P = new int [M.length];
         System.out.println(P[0]+" "+P[15]);     
         for (int i = 0 ; i < P.length ; i++){
         for (int j = i + 1 ; j < P.length ; j++){
              if (j == (P.length - 1) && M [ i ] != M [ j ]){
                        P [ i ] = M [ i ] ;
                   else if ( M [ i ] != M [ j ] ) continue ;
                   else break;
         for (int i = 0 ; i < P.length ; i++){
              System.out.println(P [ i ]);
    this code to copy distinct values in array M and print them into array P
    M and P are both of size 16
    the problem is the previous code doesn't work for P[15]
    and i don't know way
    if i have in M {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}
    P will be {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0}
    could any body help ?

    I am sorry, but you are not done. May-be your code does what it is supposed to do but it is hard to understand. An important part of programming is not just to get your code to work, but to write code that is easily maintainable. You are probably quite new programming and I do not want to discourage you. Keep working hard and it will come.
    You almost had the solution a while back:
            int [] P = new int [M.length];
         System.out.println(P[0]+" "+P[M.length]);
            boolean unique;
         for (int i = 0 ; i < P.length ; i++){
             // All non-zero entries in P with index less than i are unique in M.
               unique = true; //Assume M[i] unique until contrary has been proven
            for (int j = 0 ; j < P.length ; j++){
              if (i != j && M[i] == M[j]) { //found another entry in M with the same value as M[i]
               if (unique) { // M[i] is unique in M.
                  P[i] = M;
         for (int i = 0 ; i < P.length ; i++){
              System.out.println(P [ i ]);
         }This code executes in time O(n^2). It is possible to achieve O(nlog(n)) by
    1) copy M into P
    2) sort P
    3) iterate through P and set duplicates to 0.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem with one loop in another one

    When I drag and move cursor, X scale position will be show below. And then I click “add data in array”, the data should be put into array. I can move cursor again to add the second , the third ….into array.
    My problem is:
    In block diagram, once loop2 is outside of loop 1, it works. But I really want loop2 is in loop1 regarding to the rest part of the program. However, we I move loop2 into loop1, when I move cursor, nothing happens.
    Please help to make it work or you have different way to do this job.
    Thank you very much
    yxxx.vi ‏29 KB

    Hey, no need to make it so complicated.  Just add an indicator on the CursLoc.X wire in the  "0 To 5 MHz": Cursor Move  case.
    To answer your questions:
    1) The indicator does not react because you are still within the inner while loop.  It will not change until that loop completes. I.e. the stop button is pressed.
    2) Similarly, the stop 2 button will press, but nothing will happen until the inner loop is done.
    Generally, when I am using an event structure, I try to keep all the changing UI inputs and outputs in the same while loop with the event structure, if not in the event structure itself.  Local variables and property nodes can get the job done, but they are inefficient and can be difficult to debug.  As I am sure you are discovering
    Message Edited by jasonhill on 04-07-2006 12:40 PM
    cursor position indicator.PNG ‏7 KB

  • Problem with multiple loops

    Hi all,
    I recently wrote my first VI for a soil consolidation test, which reads voltage measurements from an LVDT, keeps a moving average, and records the LVDT measurements versus time an XY graph.  Everything is contained in a while loop with a stop button and works just fine.  However,I'm having some trouble scaling this approach up for multiple LVDT measurements at once.  What I want to do is this:
    I have a while loop with a relatively short time delay that reads all channels in my SCC system at once.  My DAQ Express VI is set to acquire 1 data point on demand.  Then I send the dynamic data type wire out of the loop and convert the data for each channel to a different scalar value.
    Next, I have another while loop for EACH channel/consolidation test.  I'm doing this because I want each loop to have the potential cycle at a different rate, depending on the soil type I'm testing on that particular LVDT.  For example, on Test 1, I may want to acquire a point every half second, whereas for Test 2 I only want a point every 5 minutes.  I'd assumed the best way to do that would be to have ONE DAQ VI set to acquire all channels at a relatively high frequency (as I mentioned before), and then have each test go "get" the appropriate reading when it needs one.  I don't think I want to use a queue, because I may be skipping quite a few data points in between the ones I actually care about.
    This is the approach I'd thought up, but the concept could be completely wrong.  To make a long story short, I want to acquire time elapsed/voltage data for 5-6 different channels at different rates.  I want each channel/test to be contained in a different loop so that I can compute individual moving averages for each one.
    My problem is getting the multiple while loops to work with one another.  My 'secondary' loops for the individual channels don't seem to be cycling.  If I put a probe on the data tunnels, I get nothing passing out of the first loop containing the DAQ Express VI.  However, everything within that 'primary' loop works just fine.  If anyone has any suggestions, I'd greatly appreciate it.

    Here's what I had in mind (LabVIEW 7.0).
    Message Edited by altenbach on 04-26-2006 01:25 PM
    LabVIEW Champion . Do more with less code and in less time .
    SampleFewer.vi ‏53 KB
    SampleFewer.png ‏9 KB

  • Problems with adding loops

    Hey I had my Mac for awhile now (Mac Mini) and I just upgraded to Leopard a few day ago. I'm having problems transferring loops onto the loop index..I tried the drag and drop and sometimes only a few get through but not all. And when I try again a prompt comes up saying there is already a folder with that name...etc. Is there a solution to get all of my loops onto the loop index. Im pretty new to GB and I dont know the best way..help plz!

    If you want to record multiple audio tracks, you have to shift-click on each record button and make sure both are on different inputs.

  • Problem with while loops, please help!

    I am having quite a bit of trouble with a program im working on. What i am doing is reading files from a directory in a for loop, in this loop the files are being broken into words and entered into a while loop where they are counted, the problem is i need to count the words in each file seperately and store each count in an array list or something similar. I also want to store the words in each file onto a seperate list
    read in files...
         //Go through each line of the first file
              while(matchLine1.find()) {
                   CharSequence line1 = matchLine1.group();
                   //Get the words in the line
                   String words1[] = wordBreak.split(line1);
                   for (int i1 = 0, n = words1.length; i1 < n; i1++) {
                        if(words1[i1].length() > 0) {
                             int count= 0;
              }This is what i have been doing, but with this method count stores the number of words in all files combined, not each individual file, and similarly list1 stores the words in all the files not in each individual file. Does anybody know how i could change this or what datastructures i could use that would allow me to store each file seperately. I would appreciate any help on this topic, Thanks!

    Don't try to construct complicated nested loops, it makes things a
    tangled mess. You want a collection of words per file. You have at least
    zero files. Given a file (or its name), you want to add a word to a collection
    associated with that file, right?
    A Map is perfect for this, i.e. the file's name can be the key and the
    associated value can be the collection of words. A separate simple class
    can be a 'MapManager' (ahem) that controls the access to this master
    map. This MapManager doesn't know anything about what type of
    collection is supposed to store all those words. Maybe you want to
    store just the unique words, maybe you want to store them all, including
    the duplicates etc. etc. The MapManager depends on a CollectionBuilder,
    i.e. a simple thing that is able to deliver a new collection to be associated
    with a file name. Here's the CollectionBuilder:public interface CollectionBuilder {
       Collection getCollection();
    }Because I'm feeling lazy today, I won't design an interface for a MapManager,
    so I simply make it a class; here it is:public class MapManager {
       private Map map= new HashMap(); // file/words association
       CollectionBuilder cb; // delivers Collections per file
       // constructor
       public MapManager(CollectionBuilder cb) { this.cb= cb; }
       // add a word 'word' given a filename 'name'
       public boolean addWord(String name, String word) {
          Collection c= map.get(name);
          if (c == null) { // nothing found for this file
             c= cb.getCollection(); // get a new collection
             map.put(name, c); // and associate it with the filename
          return c.add(word); // return whatever the collection returns
       // get the collection associated with a filename
       public Collection getCollection(String name) { return map.get(name); }
    }... now simply keep adding words from a file to this MapManager and
    retrieve the collections afterwards.
    kind regards,

  • Problem with animation loop in AS3

    I'm having a problem doing an animation loop (a walk cycle in
    this case) in CS3. I never had this problem in Studio 8 and am
    wondering if I've gone crazy or if something has changed in CS3.
    The animation cycle works fine so long as I have it loop
    without using ActionScript, but when I try to loop it using
    gotoAndPlay it skips the last frame (i.e., the frame that the code
    is on). I tried adding an extra frame at the end and placing the
    code on it... it works a bit better, but there's still a bit of odd
    timing during the looping.
    Interestingly, when I save the fla as a Studio 8 file, it
    works fine (if I include that extra frame at the end). I may be
    misremembering, but it seemed to me that Studio 8 didn't require
    that extra frame before CS3.
    Has anyone else seen this? Anyone have a solution to share
    (I'm planning to use ActionScript3, so saving as Studio 8 won't
    solve my problems)?

    > Interestingly, when I save the fla as a Studio 8 file,
    it works
    > fine (if I include that extra frame at the end). I may
    > misremembering, but it seemed to me that Studio 8 didn't
    > require that extra frame before CS3.
    It shouldn't require that extra frame, but I wonder if
    you've somehow
    configured your FLA's publish settings for a version of
    ActionScript you're
    not actually using.
    > Has anyone else seen this? Anyone have a solution to
    > (I'm planning to use ActionScript3, so saving as Studio
    > won't solve my problems)?
    If your file works fine in Flash 8, then you must be using
    2.0 (or lower) for the time being. Based on what you've
    described, I can't
    imagine what's going awry. Can you make that FLA available
    somewhere? See if you can reproduce this issue with a
    simplified version,
    in case your company's policies (or whatever reason(s)) keep
    you from
    uploading the real file somewhere.
    I'll take a look.
    David Stiller
    Adobe Community Expert
    Dev blog,
    "Luck is the residue of good design."

  • Problem with BPM loop end condition

    I'm working with PI 7.1 in a BPM process which have a loop. I cant stop this loop in anyway, even, I have put a COUNTER != COUNTER as condition.
    Can someone help me with this issue?
    Alberto Pla.

    The BPM loops are while loop, so it will execute indefinitely if the condition given is true. The condition editor what we have in the BPM is not flexible. Can you just try the drag and drop facility available in the condition editor rather than writing on our own. it should look like this COUNTER!=COUNTER  without any spaces in between.

  • DVD problem with missing loops, instruments

    (trying to get a helpful subject there for those searching for answers)
    the fact that the loops are greyed out and instruments missing in new garagebands is well known. so is the solution of installing from DVD. i cant seem to get that to work for my high school music class.
    back story is that every student has a macbook (yes i know.. amazing). thing is, most students give their macs to the IT department to get their machines 'set up' and the IT department collects their DVDs. i borrowed a bunch of those DVDs from the IT department and inserted the DVD when asked but its just not working..
    any ideas? do i need to get the EXACT DVDs that came with the machine? i doubt that.
    also - why doesnt any of the download options work? does anyone from apple know thats broken?
    lastly - what about instruments? i can get the students some loops by dragging loops of my machine into garageband (using target disk mode), but how do i get instruments? i dont drag them into the loop browser, so where might they get put? should i put them in /Application Support/?
    as we're talking about 37 students (this semster - last semester we had an ugly fix) i thought i'd ask before i did something.
    thanks a bunch..


Maybe you are looking for