Call multiple loops problem?

I noticed a couple of times: if I copy a VI (in windows Explorer) that contains a timed loop, then try to run it, the timed loop will not run if the other VI (and its timed loop) are running. I thought it was because of a conflict in the allocation of the processor, so I put them for processor cores different, but that has not worked. This time, I just wanted something that worked pretty much so I replaced the loop timed in second VI with a while loop and added a "wait until the next ms Multiple" to be closer to what would make the timed loop. For some reason, I decided to return to the timed loop by selecting "Replace with timed loop" and that is, it works now! I wonder if processor assignment was not really updated when I changed the constant cable at the entrance?

If I take a guess, it's probably because you have not changed the name of loop. You can access this by double-clicking on the timed loop itself. When you replace it by a certain time in a loop and then replaced again with a timed loop, it will probably change the name. It is a good observation that should be considered by the R & D.

Tags: NI Software

Similar Questions

  • Acquisition of data from multiple loops

    Hello

    I tried to adopt a program of data acquisition of multiple loops with control of queue, but it does not work as it should. (Or at least the way I think it should) Could you please help me it smooth? I have seen a few screws on the internet with the queue-control and tried their adoption.

    My program should work this way: after you complete the settings, I begin the acquisition of data (an analog output and 2-4 analog inputs), but I only want to save the data acquired when I click on a registration button. (Then these data would go for further analysis). While doing the analysis, the acquisition may be suspended. However, when I click on record I would like to have a feature to instantly restart the recording and to ignore the previously recorded data.

    MainProgram vi is the application itself, with some settings made by the event handlers (now only limited to a selection of signal file and the channel settings). Then the data acquisition can be started by clicking on the button start the Acq.

    And these are my issues: first, sometimes the queue starts, sometimes is not (or at least it does not start the data acquisition). And the main point: I put the sampling frequency, but it is acquired at a slower pace of well (my signal has a delay of 4 seconds, but he needs at least 20 seconds before getting close to finishing). And the strangest: sometimes, especially after some time (about 1-2 min) it freezes and does nothing with the acquisition of data (yet labview seems sensitive, just my program blocks somewhere).

    So now only controlled acquisition is in the problem and firstly I don't like on the transmission data for analysis and recording. (Which seems to be the smallest problem).

    What I am doing wrong? Thanks for your help.

    I join all the files.  (MainProgram is the application itself, MY. SIGNAL is the signal I want to exit.) I use a USB-6211. (for physical work, home a simulated).

    Not directly related to your mistakes but (and here I don't mean to take on you, but...   With an alias as yours, I assume that you have some sense of humor)

    Really?  an event structure single image with only one case of timeout (value 1mSec) with a Dequeue inside element how do you code would work by simply removing the structure of the event entirely

  • Equium M50-244: loop problem internal ati2dvag.dll

    I had a M50-244 XP Home Edition (sp2) who have ATI onboard until I uninstalled it completely. The laptop has become totally useless vomit ati2dvag.dll inner loop problem and nothing seemed to heal so I decided to completely get rid of ATI.

    It started with VGASAVE which, with a few adjustments, work is fine and so my machine now. I disabled the video as controller he kept coming up with "new hardware found" and I didn't load the drivers more who would do what he started crashing again.

    Currently its on 'test' and I'm doing everything possible to see if it will crash once again, I hope not.

    Maybe I need another driver and activate the video controller, but I am hated for doing anything more now that his works normally, finally!

    Some said the installation of the graphics driver on the site omegadrivers.net and improves the performance of the graphics card.
    Maybe an installation of the driver from the site could be useful.

    Check it out

  • What are the Causes of 'loop Hang"problem with file i/o when using timed multiple loops on one OR cRIO-9012?

    Normal 0 false false false fr X-NONE X-NONE / * Style Definitions * / table. MsoNormalTable {mso-style-name : « Table Normal » ; mso-tstyle-rowband-taille : 0 ; mso-tstyle-colband-taille : 0 ; mso-style-noshow:yes ; mso-style-priorité : 99 ; mso-style-qformat:yes ; mso-style-parent : » « ;" mso-rembourrage-alt : 0 à 5.4pt 0 à 5.4pt ; mso-para-marge-top : 0 ; mso-para-marge-droit : 0 ; mso-para-marge-bas : 10.0pt ; mso-para-marge-left : 0 ; ligne-hauteur : 115 % ; mso-pagination : widow-orphelin ; police-taille : 11.0pt ; famille de police : « Calibri », « sans-serif » ; mso-ascii-font-family : Calibri ; mso-ascii-theme-font : minor-latin ; mso-hansi-font-family : Calibri ; mso-hansi-theme-font : minor-latin ;}

    I experienced a problem with an application. I think I've isolated the problem in the "Timed loop question - Source Code.zip" attached source code. A detailed list of my results are in the attached document "Timed loop detailed question - Results.docx.

    Overview - it seems to be closely related to the IO files and the use of "Timed loops" on the OR cRIO-9012

    1. If I activate the e/s in two loops, then two loops crash simultaneously

    2. If I activate only the e/s in a loop, then only this loop crashes

    3. If I activate the e/s in two loops and make a 'While' loop earrings, then it don't crash

    4. If it is wrote nothing in the file I/o, then it don't crash

    5. If the reference to the file is left open instead of opening and closing on each call, so it don't crash

    6. If I try to run it on "My Computer", then it don't crash

    7. If the IO is only activated in a loop and programmed to wait for one second between the file access, then it always crashes

    In my real application, any given row is only writing (at least) once a minute, but I couldn't still my application to plant within a period of 24 hours by writing a single error of a single loop once per minute, with a low CPU use. It was the impulse to test the seventh point above.

    It seems that the best solution was to open the reference to the file and let it open. I think it is a good practice in general and I'll do the update in the application. This should solve the problem, but it is very difficult to verify this due to the sporadic nature of the question. As such, I'd like to understand what was causing the problem so I can verify that it was fixed. So far, my attempts to create a single, coherent theory able to explain all aspects of this issue have failed.

    I just wanted to know at all that there has been a request for corrective action (CAR #214156) has filed for this issue to be fixed in a future release. This seems to be a problem with the VxWorks operating system, we use in real time. We have additional cRIO chassis which have a Pharlap OS where it does not work. For now, you can search for this CAR ID notes to see if this problem has been resolved for publication in the future.

    Currently, there are two solutions, we have identified for this problem:

    1. open the file before the loop and close it after. (recommended)
    2 perform file i/o in a normal loop and transfer data to a queue.

  • multiple inputs and nested loop problem

    Hello world

    I'm using Labview 2009.

    I want to change the value of a variable by using the wheel or keyboard.

    So I downloaded a button and the screws of the keyboard that suits my needs of multi-rotation forum.

    These two screws are running inside a WHILE loop. Because I would be constantly updating the variable I will run my main screw that houses these two screws also looped a WHILE.

    Problem is that while loop within a while loop I couldn't run my main VI because of this problem.

    I tried in 2ways

    1 including them as an auxiliary in my main VI but as the two screws screw contains a few other variables inside of the inside while loop that LabVIEW displays error as auxiliary screws will not work

    2. I also tried to copy paste the two screws as it is in my main screw but could end up only in a lot of errors.

    How to deal with this problem of nested while loops?

    Please guide me.

    Kind regards

    Maury

    You make a mistake of data flow. The outer loop can turn only if all of the code that he has completed. The structure of the event cannot complete because inside while loop has not finished, and if inside so that the loop ends, the loop cannot turn because the structure of the event stalls. You can only go to the next iteration after all both have completed, from the mess.

    All you need to do to incorporate ALL the code inside the structure of the event. Attached, it's a simple project (LV 9.0), modify as necessary.

    See if it makes sense for you. (there are a few minor bugs probably)

  • Phone call dubious on problems on my computer, allegedly of Microsoft Corp.

    Today, I received a phone call from a person who claims to work for Microsoft.  They reported that control of my computer showed errors or multiple infections.  They offered to help me solve this problem.  They gave me several instructions involving open computer management and by looking at the log files.  They then asked me to open the website showmypc.com and run the software on this site.   Subsequently, they asked permission to take control of my computer so that problems could be fixed.  At this point, I refused and ended the phone call.

    Did this phone call actually come from Microsoft Corp.?  Is this some kind of scam?

    Hello

    It's a scam.

    We all errors and warnings in Event Viewer, etc.

    Either these so-called "Microsoft" Tech companies want to sell you a worthless software, or remote access to your computer to try to steal your credit card and bank information and also achieve an identity theft on you.

    You are the only person who knows if you gave them remote access.

    If you had given them remote access and if you do banking over the Internet, here is the advice that we give:

    Contact your bank, explain, and change passwords.

    If you use your online credit card, cancel and get a new one issued to you.

    And the only way you will know that you are free to them is to backup your data and do a clean install of your operating system.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    And Microsoft does not contact you unless YOU have made prior arrangements with them to do.

    There is an article in the link I'm you provide at the end of this one

    Read this Information from Microsoft:

    "Avoid scams to phone for tech support.

    http://www.Microsoft.com/security/online-privacy/avoid-phone-scams.aspx

    Don't be fooled of unsolicited calls. Don't provide personal information.

    Here are some of the organizations that cyber criminals claim to come:

    • Helpdesk Windows

    • Windows repair center

    • Microsoft technical support

    • Microsoft technical support

    • Windows Support Group Technical Department

    • Microsoft Research and Development Team (team of Microsoft R & D)

    See you soon

  • From VO of multiple EO, problem.

    Hi, I have created 3 EO VO

    First VO:
    SELECT Izolati.BEIGU_DATUMS, 
           Izolati.DNS, 
           Izolati.GINTS, 
           Izolati.IZOL_1H_1S, 
           Izolati.IZOLATA_APRAKSTS, 
           Izolati.IZOLATA_NUMURS, 
           Izolati.IZOLATA_PIEDERIBA, 
           Izolati.IZOLATI_ID, 
           Izolati.IZVEID_DATUMS, 
           Izolati.IZZ_MIC_DNS_IZDAL, 
           Izolati.KLASE, 
           Izolati.KOLEKCIJAS_IDENT, 
           Izolati.PARAUGA_ID, 
           Izolati.PIEZIMES, 
           Izolati.RINDA, 
           Izolati.SAGL_H2O, 
           Izolati.SAGL_OMA, 
           Izolati.SAGL_PDA, 
           Izolati.SUGA_IZOLATAM
    FROM IZOLATI Izolati, PARAUGI Paraugi, SAIMNIECIBAS Saimniecibas
    WHERE Izolati.parauga_id = Paraugi.paraugi_id and Paraugi.saimn_nosaukums = Saimniecibas.saimn_nosaukums and Saimniecibas.saimn_nosaukums = :bindSaimn
    Using this VO I can delete rows from table Izolati.

    I have an another OS even VO, but here I can not delete the data in table Izolati:
    SELECT Izolati.BEIGU_DATUMS, 
           Izolati.DNS, 
           Izolati.GINTS, 
           Izolati.IZOL_1H_1S, 
           Izolati.IZOLATA_APRAKSTS, 
           Izolati.IZOLATA_NUMURS, 
           Izolati.IZOLATA_PIEDERIBA, 
           Izolati.IZOLATI_ID, 
           Izolati.IZVEID_DATUMS, 
           Izolati.IZZ_MIC_DNS_IZDAL, 
           Izolati.KLASE, 
           Izolati.KOLEKCIJAS_IDENT, 
           Izolati.PARAUGA_ID, 
           Izolati.PIEZIMES, 
           Izolati.RINDA, 
           Izolati.SAGL_H2O, 
           Izolati.SAGL_OMA, 
           Izolati.SAGL_PDA, 
           Izolati.SUGA_IZOLATAM
    FROM SAIMNIECIBAS Saimniecibas, PARAUGI Paraugi, IZOLATI Izolati
    WHERE Izolati.parauga_id = Paraugi.paraugi_id and Paraugi.saimn_nosaukums = Saimniecibas.saimn_nosaukums and Saimniecibas.saimn_nosaukums = :bindSaimn
    The only thing I see that EO in FROM clause is in different order. Can someone explain my problem, what happens?

    Best regards, Debuger!

    Generally, when you do multiples of the EO VO, only the first is marked as editable and all others are marked as reference (read-only).
    There is also another property called «Enter Delete online» You will need change these properties correspond to your needs.

  • Mail user send 10 times to the CC, I need to mail send only once to CC. Loop problem

    Dear Sir.

    In my application, I created a survey then it goes to HOD HOD assign to the group or Indivitual User.if HOD assign inquiry to ressemelable it to the group. Then send Mail to all users in the Group and send mail to the user who who after investigation.

    Suppose that the Group has 10 users.
    But now my problem is when I select the group then mail send to the group users (10) but 10 send mail to users that query.i Post uses CC who has the Post request.

    I don't need that once mail send to the user who posts this request nothing 10 times.

    It's looped .loop is fire 10 times for the CC, I need fire once for CC.



    How can I do that.

    My Code is.
    DECLARE
    
    l_id number;
    to_add varchar2(1000);
    to_sub_by varchar2(1000);
    from_add varchar2(1000);
    l_body varchar2(4000):=:P33_DESCRIPTION;
    l_sub varchar2(1000):=:P33_SUBJECT;
    I_case varchar2(10):=:P33_CASE_ID;
    I_isue_dte date:=:P33_SUBMITTED_ON;
    l_regd    varchar(100);
    
    
    CURSOR C1 IS SELECT EMAIL_ID,(SELECT EMAIL_ID FROM USER_MAS WHERE USER_ID =:P33_SUBMITTED_BY_ID) AS D FROM USER_MAS WHERE USER_GR_ID=:P33_ASSIGNED_TO_GROUP_ID AND USER_ID NOT IN(:APP_USER);
    
    
    
    BEGIN
    
    if :P33_ASSIGNED_TO_GROUP_ID is not null then
    
    open C1;
    LOOP
    FETCH C1 INTO to_add,to_sub_by;
    EXIT WHEN C1%NOTFOUND;
    
    select email_id,user_name into from_add,l_regd from user_mas where user_id=:app_user;
    
    l_id:=APEX_MAIL.SEND(
            p_to        => to_add, -- change to your email address
            P_cc        => to_sub_by, 
            p_from      => from_add,
            p_body      => 'Issue Information'||''||chr(13)||chr(10)||chr(13)||chr(10)||
                           'www.farhorizonindia.net:7777/crm'||''||chr(13)||
                           'Issue Title'||':'||l_sub||CHR(13)||chr(10)||
                           'Issue Number'||':'||I_case||CHR(13)||
                           'Issue Open Date'||':'||I_isue_dte||''||chr(13)||chr(10)||CHR(13)||chr(10)||
                           'Most Recent Comment'||':'||''||chr(13)||chr(10)||
                           l_body||chr(13)||chr(10)||''||CHR(13)||chr(10)||'Regards'||chr(13)||chr(10)||''||l_regd||CHR(13)||chr(10)||CHR(13)||chr(10)||'Please do not reply to this email.If you wish to update the call.please login to the issue Management.',
          
      P_subj      => I_case ||' Issue '||l_sub);
    
    end loop;
    close C1;
    
    end if;
    
    COMMIT;
    apex_mail.push_queue(
    P_SMTP_HOSTNAME => '102.111.0.9',
    P_SMTP_PORTNO => 25);
    
    commit;
    
    END;
    How to solve it.

    Thank you

    Published by: Sophie on June 22, 2011 05:17

    Published by: Sophie on June 22, 2011 20:57

    Published by: Sophie on June 22, 2011 22:52

    Published by: Sophie on June 23, 2011 12:11 AM

    Published by: Sophie on June 23, 2011 01:15

    Hello

    Maybe like this:

    DECLARE
     l_id number;
     to_add varchar2(1000);
     to_sub_by varchar2(1000);
     from_add varchar2(1000);
     l_body varchar2(4000):=:P33_DESCRIPTION;
     l_sub varchar2(1000):=:P33_SUBJECT;
     I_case varchar2(10):=:P33_CASE_ID;
     I_isue_dte date:=:P33_SUBMITTED_ON;
     l_regd    varchar(100);
    
      CURSOR C1 IS SELECT EMAIL_ID FROM USER_MAS WHERE USER_GR_ID=:P33_ASSIGNED_TO_GROUP_ID AND USER_ID NOT IN(:APP_USER);
    
      BEGIN
         if :P33_ASSIGNED_TO_GROUP_ID is not null
         then
           -- do this query once!
           select email_id,user_name into from_add,l_regd from user_mas where user_id=:app_user;
            -- first send a mail for the CC email
            SELECT EMAIL_ID into to_sub_by FROM USER_MAS WHERE USER_ID =:P33_SUBMITTED_BY_ID;
            --email
            l_id:=APEX_MAIL.SEND(
            p_to        => to_sub_by, -- only the cc email
            p_from      => from_add,
            p_body      => 'Issue Information'||''||chr(13)||chr(10)||chr(13)||chr(10)||
                           'www.farhorizonindia.net:7777/crm'||''||chr(13)||
                           'Issue Title'||':'||l_sub||CHR(13)||chr(10)||
                           'Issue Number'||':'||I_case||CHR(13)||
                           'Issue Open Date'||':'||I_isue_dte||''||chr(13)||chr(10)||CHR(13)||chr(10)||
                           'Most Recent Comment'||':'||''||chr(13)||chr(10)||
                           l_body||chr(13)||chr(10)||''||CHR(13)||chr(10)||'Regards'||chr(13)||chr(10)||''||l_regd||CHR(13)||chr(10)||CHR(13)||chr(10)||'Please do not reply to this email.If you wish to update the call.please login to the issue Management.',
    
      P_subj      => I_case ||' Issue '||l_sub);
    
    -- Now the loop throught the users from the group
      open C1;
      LOOP
         FETCH C1 INTO to_add;
         EXIT WHEN C1%NOTFOUND;
    
    l_id:=APEX_MAIL.SEND(
            p_to        => to_add, -- change to your email address
    --        P_cc        => to_sub_by,  -- no more CC
            p_from      => from_add,
            p_body      => 'Issue Information'||''||chr(13)||chr(10)||chr(13)||chr(10)||
                           'www.farhorizonindia.net:7777/crm'||''||chr(13)||
                           'Issue Title'||':'||l_sub||CHR(13)||chr(10)||
                           'Issue Number'||':'||I_case||CHR(13)||
                           'Issue Open Date'||':'||I_isue_dte||''||chr(13)||chr(10)||CHR(13)||chr(10)||
                           'Most Recent Comment'||':'||''||chr(13)||chr(10)||
                           l_body||chr(13)||chr(10)||''||CHR(13)||chr(10)||'Regards'||chr(13)||chr(10)||''||l_regd||CHR(13)||chr(10)||CHR(13)||chr(10)||'Please do not reply to this email.If you wish to update the call.please login to the issue Management.',
    
      P_subj      => I_case ||' Issue '||l_sub);
    
    end loop;
    close C1;
    
    end if;
    
    COMMIT;
    apex_mail.push_queue(
    P_SMTP_HOSTNAME => '102.111.0.9',
    P_SMTP_PORTNO => 25);
    
    commit;
    
    END;
    

    Herald tiomela
    http://htendam.WordPress.com

  • Tile game loop problem

    Hi all

    I make a game where you place the tiles on a grid. When you place a tile, I need to check the existence of another tile to the left, the right, or above and below, otherwise the tile should not be placed... Here is a function, I thought that would work, which accepts a variable (the position of the tile just as he is about to be placed): -.

    private void checkSurroundingTiles(gridPosition:uint) {}

    var gridPosition = T1 - 12;
    var t2 = gridPosition - 1;
    var T3 = gridPosition + 1;
    var T4 = gridPosition + 12;

    for (i = 0; i < gridRefArray.length; i ++) {}
    var checkTile = gridRefArray [i];

    if(checkTile == T1) {}
    Returns true;

    trace ("tile present above");
    } else if(checkTile == t2) {}
    Returns true;
    trace ("tile this left");
    } else if(checkTile == t3) {}
    Returns true;
    trace ("tile this right");
    } else if(checkTile == t4) {}
    Returns true;
    trace ("tile presents below")
    } else {}
    Returns false;
    }
    }
    }

    This works very well and gives a result... not reliable at 100% yet, but it's a work in progress... the problem I have is that I use a loop to get the position of the mosaic in the grid, and call the function during the loop made my computer hang because I'm checking the surrounding tiles on 132 grid references! Here is my code in a loop, can someone help me either remove the function of the loop or more efficient to find the answer: -.

    private void tileMouseUp(event:MouseEvent):void {}

    event.currentTarget.stopDrag ();

    for (i = 1; i < gridNum; i ++) {}

    If (Event.currentTarget.hitTestObject (gridArray [i]) & & .occupied gridArray [i] == true) {}
    event.currentTarget.x = event.currentTarget.origin.x;
    event.currentTarget.y = event.currentTarget.origin.y;
    } else if (event.currentTarget.hitTestObject (gridArray [i]) & & .occupied gridArray [i]! = true) {}

    checkSurroundingTiles (gridArray [i] .gridRef); That is the problem I think

    event.currentTarget.x = gridArray [i] .x + gamePage.grid.x;
    event.currentTarget.y = there gridArray [i] + gamePage.grid.y;

    gridArray [i] .occupied = true;
    gridRefArray.push (gridArray [i] .gridRef);

    }

    }

    Thanks in advance

    Yep

  • Not A number of loop problem

    Hello
    I have a table and a number of count (don't ask me to make a loop for, because it's already a loop in the fact she calls a function that calls!) to count and display text on the screen, but his does not.  It starts on (good) Up and then freezes, I created an output of the number and I get first freezes "Undefined" then "NaN" to the bottom. Can someone help me?
    Thank you
    S Connah
    PS. Code here:

    stop();
    
    var score=0;
    dave2.text = score;
    
    
    
    function updateScore() {
        dave2.text = ++score;
        con.text=numtodo;
    }
    function reset() {
        var finalscore=dave2.text
        gotoAndPlay(1);
        score=0;
        finalscore=0;
        dave2.text = score;
        
        
    }
    function dotap() {
        var numtodo=1;
        thechase = new Array();
        thechase[1] = 1;
        thechase[2] = 3;
        thechase[3] = 2;
        thechase[4] = 4;
        var mySetting = 4;
        var myTemp=0;
        var totap = 0;
        totap = thechase[numtodo];
        var waittime = 1
        if (totap==1){
            dick2.text = "up";
            timerup = setInterval(checkup, 1000);
        }
        if (totap==2){
            dick2.text = "down";
            timerdown = setInterval(checkdown, 1000);
        }
        if (totap==3){
            dick2.text = "left";
            timerleft = setInterval(checkleft, 1000);
        }
        if (totap==4){
            dick2.text = "right";
            timerright = setInterval(checkright, 1000);
        }
        myTemp = totap;
    }
    function checkright() {
        if (Key.isDown(39)) {
            if(!Key.isDown(38)){
                        if(!Key.isDown(40)){
                                       if(!Key.isDown(37)){
                                           clearInterval(timerright);
             updateScore();
             numtodo=numtodo+1;
             dotap();
                           }}}
        } 
        if(!Key.isDown(39)){
            clearInterval(timerright);
            reset();
    }
    }
    function checkleft() {
        if (Key.isDown(37)) {
            if(!Key.isDown(38)){
                        if(!Key.isDown(40)){
                                       if(!Key.isDown(39)){
                                         clearInterval(timerleft);
             updateScore();
              numtodo=numtodo+1;
             dotap();
                           }}}
        } 
        if(!Key.isDown(37)){
            clearInterval(timerleft);
            reset();
    }
    }
    function checkup() {
        if (Key.isDown(38)) {
            if(!Key.isDown(40)){
                        if(!Key.isDown(37)){
                                       if(!Key.isDown(39)){
                                         clearInterval(timerup);  
                                         
             updateScore();
              numtodo=numtodo+1;
             dotap();
                           }}}
        } 
        if(!Key.isDown(38)){
            clearInterval(timerup);
            reset();
    }
    }
    function checkdown() {
        if (Key.isDown(40)) {
            if(!Key.isDown(38)){
                        if(!Key.isDown(37)){
                                       if(!Key.isDown(39)){
             clearInterval(timerdown);                     
             updateScore();
              numtodo=numtodo+1;
             dotap();
                           }}}
        } 
        if(!Key.isDown(40)){
            clearInterval(timerdown);            
            reset();
    }
    }
    
    dotap();
    
    

    To what whether you try to expand, you have to learn how to use the function trace to your advantage.  The I've main goal is to help solve problems with the State of things.  It allows to see if a value of something is what you expect it to be.  For the code show you, I can guarantee you that at least a value will not...

    You declare the numtodo value in the function dotap

    function dotap() {}
    var numtodo = 1;
    ...

    }

    Which gives it the scope only within this function, it is not available to do anything apart from this feature.

    But in all the functions of the controls, you...

    numtodo = numtodo + 1;

    These functions cannot access numtodo.

  • Dynamics of code in loop problem with event handlers

    Hello

    What I'm trying to do, is to assign dynamically a deployment and behavior pleased each movieclip with a certain name on my stage. I'm a loop through and attach a function to the event of each movieclip. So far, it works. All the clips on roller and more doing something. However the problem I'm having is dynamically changing values in each function for each different movieclip in a loop. For example, I store the clip I'm targeting original X and Y coordinates in an array that I push in the value to each loop. I draw it to test and trace it correctly on each loop of each value of X and Y for this clip. The problem I have is I am tempted to call orgX and orgy to each loop and attach that to each function, but all the clips using the last value in the table. It is not dynamically attaching the new orgX and orgy to each individual event deployment clips. All deployment events and more are called for each clip, but when I try to put any dynamic code in the function he always uses only the last value. Even if I put a trace in the RollOver event and try to find the instance name of movieclip clips all the clips to trace the last name of the clip on working capital. My logic looks OK but it has to do with how flash events attached runtime? How can I solve this problem?

    These tables are not something and orgX and orgy change values with each iteration of the loop for. at the moment where you deploying your movieclip orgX and orgy will be the last value in the loop for.

    to remedy to try:

  • Screen freeze and black screen with multiple windows problems

    Hey all,.
    I have problems with the release of screen when you run multiple windows (Chrome, office etc. etc.). When I try to switch between the windows, I get a gel and I am unable to do anything.
    The cursor can be seen moving around the screen, but has no effect in all areas. The Windows key is not Sleep, nor can I tab into another program.
    If I try to start the Task Manager to see which program is the cause, it will not appear on the arrested image.
    Is there a way to tell, of an event log, this program is a failure?

    in windows 7: Start - Search event Wiever field - Windows logs

  • Stop the multiple loop without delay to the cRIO

    Hi all

    the VI in cRIO has a large loop, it contains 4 small while in parallel to the work loop. In every little while, they have a stacked with a lot of frame sequence.
    I want to stop everything with only one STOP button on my host live. But when I press STOP, I have to wait for all the small loops completed their charge and finally the big one can stop. Is there any solution to immediately end all?

    Thank you very much

    d4nvjpl0ng4n wrote:

    the VI in cRIO has a large loop, it contains 4 small while in parallel to the work loop. In every little while, they have a stacked with a lot of frame sequence.
    I want to stop everything with only one STOP button on my host live. But when I press STOP, I have to wait for all the small loops completed their charge and finally the big one can stop. Is there any solution to immediately end all?

    1. you should not have the large loop.  Which is just to add unnecessary complexity.

    2. you hit the major problem with the Structures of stacked sequence: everything must go before it is complete.  The solution is to use a State Machine.

  • Pressure sensor ground loop problem

    Hello

    I have an interesting problem, I hope someone can help me with.

    I'm measuring pressure with a pressure sensor.  We see a lot of noise with the measure, and I believe that we have a ground loop.  I have checked the noise is 60 Hz.  What is interesting is that the case of the pressure sensor is connected to the Earth.  When we put on the sensor of metal pressure in the booth, we see the noise.  When disconnect us the stand noise pressure sensor disappears.  The stand is connected to the Earth.  I'm feeding the sensor with a 24V power supply which is also connected to the Earth.  I think that this is the ground loop.

    My problem is that the 24V power supply should be grounded for safety and the I cannot isolate the ground pressure sensor.

    I attached how I got the system wired.  How to connect up to my analog input module pressure sensor OR 9215 to break the ground loop?

    Thank you

    Dan

    Ahhhh Yes,

    I have solved this problem.  It is a ground loop.  I had the field related to 2 places.

    We have removed one of the references on the ground and poof everything worked fine.

    One of the problems I've found is a reference of external power supplies and others do not.  If you provide an additional reference to the Earth... Ground loop!

    Ground loops can be mean terrible things.  According to my experience, they are the number one electric goofiness and the noise causes.

    I have compiled some resources on my website to help people

    http://www.autosofttech.NET/resources

    The best is field wiring and considerations of noise for analog signals

    If you want the final word on the subject see this book

    Techniques of reduction of noise in electronic systems

    Hope that helps!

  • Case of Structure / while loop problems

    Hello

    I am trying to write a code that draws a random number whenever a key is pressed.  The chart must be a random number on the y axis and the number of times that the button is pressed on the x-axis.  I want to draw the last twenty random numbers.  I use a while loop and a box structure.  If the button is pressed, the case structure incruments the number of times where the button is pressed and generates a random number.  I'm using shift registers to track the last twenty numbers generated.  When the key not, registers to shift to day values incorrectly.  My code is associated with this issue.

    I know that the last value of the shift registers of wiring to the structure of the case will change the table across the last value when the button is not pressed.  I know what causes the problem, but I don't know how to fix it.  I would appreciate it if you have a look and give me some tips.

    Thanks in advance.

    Your problem is that the loop runs continuously and your values in the shift register are replaced when you do nothing.

    There are a few ways around this.  It would be simpler to use a Structure of the event.  Another option is to simply store your table in the shiftregister.  Use Rotate 1-d Array and replace a subset of table to update your chart.  It is a little more robust and easier to use than using the history of the shift register.

    But the absolute simplest, based only on what you told us, just use a graphic instead of a graph.  A graph keeps a history.  The length of the default history is 1024 samples, then you want to reduce that to 20.  Then you just wire your random number right in the chart, and everything is done for you.

Maybe you are looking for

  • Satellite A200 PSAE6E: Impossible to install the audio drivers after installing Win XP realtek

    Hello... Recently, I repartitioned my laptop HD to install XP and kubuntu (it came with vista)... However, I was not able to install audio drivers for its audio devices... The laptop is a toshiba Satellite A200-PSAE6E and everest indicates the follow

  • Rescue Email/change password

    I need to change my apple ID because my kids pay for things without permission. I don't remember the answer to my security questions and I do not receive an email to the Email address of relief. In my account, it shows the e-mail address of rescue is

  • Custom paper size

    How can I go and change my custom paper size. It is not in my properties. I want to change to 8.5 x 11 in. I have a HP Officejet 6500 has more. I use 64 bit Windows 7

  • Change of e-mail address for e print

    is it possible to change the e-mail address for my printer? and if it is how? I have a photosmart hp 6510

  • ACCOUNT LOCKED PER MINOR CHILD

    MY 12 YEARS OLD CHILD HAS CREATED A USER ACCOUNT ON MY LAPTOP.  SHE ME LOCKED OUT OF WEB SITES, I NEED BECAUSE OF VIOLENCE DOMESTIC AND OTHER PROBLEMS OF COURT.  I WANT TO KNOW NOW HOW TO GET DOWN.