For loop don't updates

Hi,
First I'm new at labview ,
I'm trying to read 8 checkboxs vals and for each checkbox I'm queuing a single val witch will be a test.
I have a problem with my for loop it simply won't update and staying at 0 val ( only one iteration ) 
vi is attached , can any one give me some help ?
Kobi Kalif
Software Engineer
Solved!
Go to Solution.
Attachments:
InitToQ.vi ‏47 KB

I cant look at the code right now, dont have LV currently, but it sounds like you're either not looping at all, or not doing what you should inside the loop (but outside).
Could you post a .jpg/png? (usually we ask for the vi's instad )
/Y 
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV

Similar Messages

  • FOR LOOP cursor that updates table A based on a value in table B

    Hi,
    I need a FOR LOOP cursor that scans and updates all pro-rata column in table EMPLOYEE(child) based on what pay classification all employees are on in the CLASSIFICATION(parent) table.
    DECLARE
    BEGIN
    IF employee.emp_type = 'FT' THEN
    UPDATE employee
    SET employee.pro_rata = ((classification.yearly_pay/52)*52)
    WHERE employee.empid = v_empid AND classification.class_id = employee.class_id;
    END IF;
    IF employee.emp_type = 'PT1' THEN
    UPDATE employee
    SET employee.pro_rata = ((classification.yearly_pay/39)*52)
    WHERE employee.empid = v_empid AND classification.class_id = employee.class_id;
    END IF;
    IF employee.emp_type = 'PT2' THEN
    UPDATE employee
    SET employee.pro_rata = ((classification.yearly_pay/21)*52)
    WHERE employee.empid = v_empid AND classification.class_id = employee.class_id;
    END IF;
    END;
    How do I create a cursor that cuts across these two table
    See tables and data
    CREATE TABLE CLASSIFICATION(
    CLASS_ID VARCHAR2(6) NOT NULL,
    CLASS_TYPE VARCHAR2(10),
    DESCRIPTION VARCHAR2(30) NOT NULL,
    YEARLY_PAY NUMBER(8),
    HOURLY_RATE NUMBER,
    WEEKDAY_OVER_TIME NUMBER,
    WEEKEND_OVER_TIME NUMBER,
    CONSTRAINT PK_CLASS_ID PRIMARY KEY (CLASS_ID));
    INSERT INTO CLASSIFICATION VALUES('PR1','PERMANENT','MANAGER',45000,'','',NULL);
    INSERT INTO CLASSIFICATION VALUES('PR2','PERMANENT','ADMIN ASSISTANT',22000,'',1.5,NULL);
    INSERT INTO CLASSIFICATION VALUES('PR3','PERMANENT','CONTROLLER',32000,'',1.5,NULL);
    INSERT INTO CLASSIFICATION VALUES('PR4','PERMANENT','CASH OFFICER',22000,'',1.5,NULL);
    INSERT INTO CLASSIFICATION VALUES('PR5','PERMANENT','CLEANERS',16000,'',1.5,NULL);
    INSERT INTO CLASSIFICATION VALUES('PR6','PERMANENT','ADMIN OFFICER',22000,'',1.5,NULL);
    INSERT INTO CLASSIFICATION VALUES('PR7','PERMANENT','WAREHOUSE ATTENDANT',20000,'',1.5,NULL);
    INSERT INTO CLASSIFICATION VALUES('PR8','PERMANENT','WINDOWS DRESSER',22000,'',1.5,NULL);
    INSERT INTO CLASSIFICATION VALUES('PR9','PERMANENT','DIRECTOR',60000,'','',NULL);
    INSERT INTO CLASSIFICATION VALUES('PR10','PERMANENT','DEPUTY DIRECTOR',52000,'','',NULL);
    INSERT INTO CLASSIFICATION VALUES('PR11','PERMANENT','SALES ASSISTANT',21000,'',1.5,NULL);
    INSERT INTO CLASSIFICATION VALUES('TEMP2','TEMP STAFF','ADMIN ASSISTANT','',16.50,'',NULL);
    INSERT INTO CLASSIFICATION VALUES('TEMP3','TEMP STAFF','CONTROLLER','',29.00,'',NULL);
    INSERT INTO CLASSIFICATION VALUES('TEMP4','TEMP STAFF','CASH OFFICER','',19.00,'',NULL);
    INSERT INTO CLASSIFICATION VALUES('TEMP5','TEMP STAFF','CLEANERS','',10.00,'',NULL);
    INSERT INTO CLASSIFICATION VALUES('TEMP6','TEMP STAFF','ADMIN OFFICER','',20.00,'',NULL);
    INSERT INTO CLASSIFICATION VALUES('TEMP7','TEMP STAFF','WAREHOUSE ATTENDANT','',18.00,'',NULL);
    INSERT INTO CLASSIFICATION VALUES('TEMP8','TEMP STAFF','WINDOWS DRESSER','',18.50,'',NULL);
    INSERT INTO CLASSIFICATION VALUES('TEMP11','TEMP STAFF','SALES ASSISTANT','',16.00,'',NULL);
    CREATE TABLE EMPLOYEE(
    EMPID NUMBER(5) NOT NULL,
    SURNAME VARCHAR2(30) NOT NULL,
    FNAME VARCHAR2(30) NOT NULL,
    GENDER CHAR(1) NOT NULL,
    DOB DATE NOT NULL,
    EMP_TYPE VARCHAR2(20) NOT NULL,
    ANNUAL_WEEKS_REQD NUMBER(2),
    PRO_RATA_WAGES NUMBER(7,2),
    HOLIDAY_ENTLMENT NUMBER(2),
    SICK_LEAVE_ENTLMENT NUMBER(2),
    HIRE_DATE DATE NOT NULL,
    END_DATE DATE,
    ACCNO NUMBER(8) NOT NULL,
    BANKNAME VARCHAR2(20) NOT NULL,
    BRANCH VARCHAR2(20) NOT NULL,
    ACCOUNTNAME VARCHAR2(20),
    CLASS_ID VARCHAR2(6),
    CONSTRAINT CK_HIRE_END CHECK (HIRE_DATE < END_DATE),
    CONSTRAINT CK_HIRE_DOB CHECK (HIRE_DATE >= ADD_MONTHS(DOB, 12 * 18)),
    CONSTRAINT CK_EMP_TYPE CHECK (EMP_TYPE IN ('FT','PT1','PT2','PT3','HOURLY')),
    CONSTRAINT CK_EMP_GENDER CHECK (GENDER IN ('M','F')),
    CONSTRAINT FK_EMP_CLASS FOREIGN KEY (CLASS_ID) REFERENCES CLASSIFICATION(CLASS_ID),
    CONSTRAINT PK_EMP PRIMARY KEY (EMPID));
    CREATE SEQUENCE SEQ_EMPID START WITH 1;
    INSERT INTO EMPLOYEE VALUES(
    SEQ_EMPID.NEXTVAL,'RICHARD','BRANDON','M','25-DEC-1966','FT',52,22000.00,28,14,'10-JAN-2005',NULL,90823227,'NATWEST','BROMLEY','DEPOSIT','PR2');
    INSERT INTO EMPLOYEE VALUES(
    SEQ_EMPID.NEXTVAL,'BOYCE','CODD','M','15-JAN-1972','PT1','','','','','12-JAN-2005',NULL,72444091,'LLOYDS','KENT','CURRENT','PR8');
    INSERT INTO EMPLOYEE VALUES(
    SEQ_EMPID.NEXTVAL,'ALHAJA','BROWN','F','20-MAY-1970','HOURLY','','','','','21-JUN-2000',NULL,09081900,'ABBEY','ESSEX','CURRENT','TEMP2');
    INSERT INTO EMPLOYEE VALUES(
    SEQ_EMPID.NEXTVAL,'RON','ATKINSON','M','10-AUG-1955','PT3','','','','','12-JAN-2005','26-MAR-2006',01009921,'HALIFAX','KENT','SAVINGS','PR6');
    INSERT INTO EMPLOYEE VALUES(
    SEQ_EMPID.NEXTVAL,'CHAMPI','KANE','F','01-JAN-1965','PT2','','','','','12-JAN-2004',NULL,98120989,'HSBC','ILFORD','CURRENT','PR4');
    INSERT INTO EMPLOYEE VALUES(
    SEQ_EMPID.NEXTVAL,'NED','VED','M','15-JAN-1980','HOURLY','','','','','29-DEC-2005',NULL,90812300,'WOOLWICH','LEWISHAM','CURRENT','TEMP6');
    INSERT INTO EMPLOYEE VALUES(
    SEQ_EMPID.NEXTVAL,'JILL','SANDER','F','22-MAR-1971','FT','','','','','30-NOV-2003',NULL,23230099,'BARCLAYS','PENGE','DEPOSIT','PR1');
    Any contribution would be appreciated
    many thanks
    Cube60

    Hi,
    I have triede this cursor procedure but I get an compilation error.
    See first post for tables and data..
    Can someone help me out please.
    SQL> CREATE OR REPLACE PROCEDURE update_employee(
    2 p_empid employee.empid%type,
    3 p_emp_type employee.emp_type%type)
    4 IS
    5 CURSOR c1 is
    6 select e.empid, e.emp_type, c.yearly_pay from employee e, classification c where
    7 c.class_id = e.class_id;
    8 BEGIN
    9 OPEN c1
    10 LOOP
    11 FETCH c1 INTO p_empid, p_emp_type;
    12 exit when c1%notfound;
    13
    14 IF v_emp_type ='PT1' THEN
    15 UPDATE employee SET annual_weeks_reqd = 39, pro_rata_wages = ((v_yearly_pay/52)*39), holiday_en
    tlment=21, sick_leave_entlment = 10.5 WHERE c.class_id = e.class_id;
    16 END IF;
    17 END;
    18 /
    Warning: Procedure created with compilation errors.
    SQL> SHOW ERR;
    Errors for PROCEDURE UPDATE_EMPLOYEE:
    LINE/COL ERROR
    10/1 PLS-00103: Encountered the symbol "LOOP" when expecting one of
    the following:
    . ( % ; for
    The symbol "; was inserted before "LOOP" to continue.
    Many thanks

  • Info records flagged for deletion don't update purchase orders

    Hi, I would like to know how I can customize SAP-MM in order to avoid that the info records flagged for deletion update the purchase orders.
    When I create a PO from a Purchase requisition (which have data with texts like "Vendor material number"), the Info record flagged for deletion update this data.
    Thank you

    Hello
    I think inforecords flagged for deletion is not being considered for PO updation. Could you please check again.
    It might be posible that 'Vendor material number' is spcified in Purchase requisition and when you create PO from Purchase requisition, it is copied from there to PO.
    I hope it will resolve your issue.
    Best regards
    Avinash

  • Why use cursor and for loop?

    Hi All
    So in general why would we use a cursor and a for loop to do update in a stored procedure?
    Why wouldnt we just use a single update statement ?
    is there compelling reason for using a cursor and a for loop: I am reading some code from a co-worker that the business logic for the select (set need to be updated) is complex but the update logic is simple (just set a flag to (0 or 1 or 2 or 3 or 4).
    But eventually the select come down to a key (row_id) so I re-write it using just a single sql statement.
    The size of the main table is about 2.6 to 3million rows
    Any thoughts on that??
    The code below I just do a google for cursor for update example in case for something to play with
    -Thanks for all your input
    create table f (a number, b varchar2(10));
    insert into f values (5,'five');
    insert into f values (6,'six');
    insert into f values (7,'seven');
    insert into f values (8,'eight');
    insert into f values (9,'nine');
    commit;
    create or replace procedure wco as
      cursor c_f is
        select a,b from f where length(b) = 5 for update;
        v_a f.a%type;
        v_b f.b%type;
    begin
      open c_f;
      loop
        fetch c_f into v_a, v_b;
        exit when c_f%notfound;
        update f set a=v_a*v_a where current of c_f;
      end loop;
      close c_f;
    end;
    exec wco;
    select * from f;
    drop table f;
    drop procedure wco;
    Joining multiple tables
    create table numbers_en (
      id_num  number        primary key,
      txt_num varchar2(10)
    insert into numbers_en values (1, 'one'  );
    insert into numbers_en values (2, 'two'  );
    insert into numbers_en values (3, 'three');
    insert into numbers_en values (4, 'four' );
    insert into numbers_en values (5, 'five' );
    insert into numbers_en values (6, 'six'  );
    create table lang (
       id_lang   char(2) primary key,
       txt_lang  varchar2(10)
    insert into lang values ('de', 'german');
    insert into lang values ('fr', 'french');
    insert into lang values ('it', 'italian');
    create table translations (
      id_num    references numbers_en,
      id_lang   references lang,
      txt_trans varchar2(10) not null
    insert into translations values (1, 'de', 'eins'   );
    insert into translations values (1, 'fr', 'un'     );
    insert into translations values (2, 'it', 'duo'    );
    insert into translations values (3, 'de', 'drei'   );
    insert into translations values (3, 'it', 'tre'    );
    insert into translations values (4, 'it', 'quattro');
    insert into translations values (6, 'de', 'sechs'  );
    insert into translations values (6, 'fr', 'six'    );
    declare
      cursor cur is
          select id_num,
                 txt_num,
                 id_lang,
                 txt_lang,
                 txt_trans
            from numbers_en join translations using(id_num)
                       left join lang         using(id_lang)
        for update of translations.txt_trans;
      rec cur%rowtype;
    begin
      for rec in cur loop
        dbms_output.put (
          to_char (rec.id_num         , '999') || ' - ' ||
          rpad    (rec.txt_num        ,   10 ) || ' - ' ||
          rpad(nvl(rec.txt_trans, ' '),   10 ) || ' - ' ||
                   rec.id_lang                 || ' - ' ||
          rpad    (rec.txt_lang       ,   10 )
        if mod(rec.id_num,2) = 0 then
          update translations set txt_trans = upper(txt_trans)
           where current of cur;
           dbms_output.put_line(' updated');
        else
          dbms_output.new_line;
        end if;
      end loop;
    end;
    /Edited by: xwo0owx on Apr 25, 2011 11:23 AM

    Adding my sixpence...
    PL/SQL is not that different from a SQL perspective than any other SQL client language like Java or C# or C/C++. PL/SQL simply integrates the 2 languages a heck of a lot better and far more transparent than the others. But make no mistake in that PL/SQL is also a "client" language from a SQL perspective. The (internal) calls PL/SQL make to the SQL engine, are the same (driver) calls made to the SQL engine when using Java and C and the others.
    So why a cursor and loops in PL/SQL? For the same reason you have cursors and loops in all these other SQL client languages. There are the occasion that you need to pull data from the SQL engine into the local language to perform some very funky and complex processing that is not possible using the SQL language.
    The danger is using client cursor loop processing as the norm - always pulling rows into the client language and crunching it there. This is not very performant. And pretty much impossible to scale. Developers in this case views the SQL language as a mere I/O interface for reading and writing rows. As they would use the standard file I/O read() and write() interface calls.
    Nothing could be further from the truth. SQL is a very advance and sophisticated data processing language. And it will always be faster than having to pull rows to a client language and process them there. However, SQL is not Turing complete. It is not the procedural type language that most other languages we use, are. For that reason there are things that we cannot do in SQL. And that should be the only reason for using the client language, like PL/SQL or the others, to perform row crunching using a client cursor loop.

  • Paralleliz​ed for loop progress bar

    I have a for that takes a long time to execute and enabled parallelism to speed things up. I also want a progress bar. Before enabling parallelism, I simple had an indicator wired to the iteration counter and the array size that is being processed. This gave a good percent complete indicator. With the for loop parallelized, the indicator bounces around depending on which instance of the for loop happens to update the indicator. Is there a way to have an indicator inside a parallelized for loop?
    Solved!
    Go to Solution.

    altenbach wrote:
    A better idea is probably a simple action engine that increments with each call, incrementing an integer in a feedback node, and returns the total count. Since it is not reentrant, it will be shared by all loop instances.
    Here's a very quick draft. See if it works for you. (Warning, only use it in one FOR loop overall).
    Probably needs a few tweaks....
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ParallelProgress.zip ‏14 KB

  • Commit after every three UPDATEs in CURSOR FOR loop

    DB Version: 11g
    I know that experts in here despise the concept of COMMITing inside loop.
    But most of the UPDATEs being fired by the code below are updating around 1 million records and it is breaking our UNDO tablespace.
    begin
    for rec in
          (select owner,table_name,column_name 
          from dba_tab_cols where column_name like 'ABCD%' and owner = p_schema_name)
          loop
            begin
            execute immediate 'update '||rec.owner||'.'||rec.table_name||' set '||rec.column_name|| ' = '''||rec.owner||'';
            end;
          end loop;
    end;We are not expecting ORA-01555 error as these are just batch updates.
    I was thinking of implementing something like
    FOR i IN 1..myarray.count
    LOOP
                             DBMS_OUTPUT.PUT_LINE('event_key at' || i || ' is: ' || myarray(i));
                             INSERT INTO emp
                             empid,
                             event_id,
                             dept,
                             event_key
                             VALUES
                             v_empid,
                             3423,
                             p_dept,
                             myarray(i)
                             if(MOD(i, p_CommitFreq) = 0)  --- When the loop counter becomes fully divisible by p_commit_frequency, it COMMITs
                             then
                                       commit;
                             end if;
    END LOOP;(Found from an OTN thread)
    But i don't know how to access the loop counter value in a CURSOR FOR loop.

    To be fair, what is really despised is code that takes an operation that could have been performed in a single SQL statement and steps through it in the slowest possible way, committing pointlessly as it goes along (exactly like the example you found). Your original version doesn't do that - it looks more like some sort of one-off migration where you have to set every value of every column that matches some naming standard pattern to a constant. If that's the case, and if there are huge volumes involved and you can't simply add a bit more undo, then I don't see much wrong with committing after each update, especially if you track how far you've got so you can restart cleanly if it fails.
    If you really want an incrementing counter in an unnamed cursor, apart from the explicit variable others have suggested, you could add rownum to the cursor (alias it to something that isn't an Oracle keyword), although it could complicate the ORDER BY that you might be considering for the restart logic. You could have that instead of the redundant 'owner' column in your example which is always the same as the constant p_schema_name.
    Another approach would be to keep track of SQL%ROWCOUNT after each update by adding it to a variable, and commit when the total number of rows updated so far reaches, say, a million.
    Could the generated statement use a WHERE clause, or does it really have to update every row in every table it finds?
    Could there be more than one column to update per table? If so it might be worth generating one multi-column update statement per table, although it'll complicate things a bit.
    btw you don't need the inner 'begin' and 'end' keywords, and whoever supplied the MOD example you found should know that three or four spaces usually make a good indent and you don't need brackets around IF conditions.

  • I am done with Verizon for their inability to update Android in a timely manner. When my contract is up, after 10 years, I am gone.

    Verizon,
    Nobody.. and I mean NOBODY is buying your crap. You don't update to the latest software in a timely manner. The entire planet has the KitKat update for Android and you don't under the guise of better experience. That is crap, everyone else can do it but you, you are inept.
    Additionally, you are the most expensive by far and the guise of biggest network. I really don't care about the biggest network, I use a very small percentage of it so this is no excuse.  AND if you are the biggest how come EVERY carrier can beat you on price and get updates out faster?
    Your new tiered plans "Family Share" crap.
    I do how you still charge me for data, voice, and text.. even though at the end of the day these are all just data packets across your network. I love being charged three times for the same service though.
    You want to really be the best, then change your ways.. but I am done waiting around for you.. this contract ends and I am gone.

    After 20 yes TWENTY YEARS being with Verizon I to am done with their cell phone business. I have had nothing but problems with my "new" Droid, which I was "steered" to by a tech who told me what I should have not what I chose, my weakness was to still trust the employee had the best interest of their customer at heart. Brewhahaha! Boy what a error that was on MY part. I got a phone that has been defective from the moment I turned it ON.
    I first had home service with Verizon for many years...then wifi....then the bundle. Great, all I can say is as this company has grown, they have fallen apart on their customer service and their policies. Their nothing more than yet another CORPORATE mentality company whose bottom line is PROFIT.
    My droid arrived, it would not hold a charge...it would not always take a preference I chose...it would change things on preferences on it's own (wondering if my phone is like that car in the movie "CHRISTINE")  and was encouraged to keep using it, I just either didn't understand the "smart phone" ...or my age was allowing them to think I could no longer learn to use anything other than a rotary phone.  One tech actually told me to take the battery out and reset the phone, hmmm...sure right and ruin the phone? RIGHT...who trains these people???
    Verizon is no longer any resemblance of the once good company it just to be.
    Today my day was horrible. (your just lucky I told blab on about the last three months dealing with them!)
    Having just spent the majority of my day being transffered from one department to the next (seems they now have to transfer you if there is something as simple as adding an e mail to the order that was cancelled in error by the way to replace the lousy dysfunctional Droid I got) no one person can do what ever your account needs. Half way through my completely messed up day, I got so tired of this syrupy fake responses telling me to have a wonderful day and enjoy the rest of my day..and it was a pleasure to serve me.... after way to many transfers to other departments...they started sounding like they were recorded bots...or flight attendants. I just had to ask them if they served peanuts and cold drinks. HARD LIQUOR?
    So now I am waiting for my "reburbished" droid. (again)..checked on why I had not gotten it...it was cancelled flagged by "fraud". WHATTT?  Fourth time I have ordered something and this has happened, and no e mail asking me to contact them. I live in a senior gated community and they are trying to tell me "someone in your gated community attempted to commit fraud" so MY order gets flagged. (half the seniors in this gated community are half dead the others are either in Palm Springs or traveling...and the one who are slightly mobile...might not remember how to even get to the mail room .and back to their house..granted UPS requires I SIGN for the phone...but impossible since they flagged and did not send the phone out. So, here I sit, wondering after three months of dealing with these (not so funny) clowns and gain absolutely NO satisfaction, except to say....adios...when my contract ends.  AT&T hopefully is better, but who knows..this phone situation may be the death of me yet..and in the end VERIZON will not longer have to waste their time or mine transferring me to try to get a 1. working phone  2.  my order actually processed correctly  3. have to re-educate their techs.
    I no longer TRUST Verizon, I no longer believe they have the interest of their customers at heart. (what heart?)  and about the only thing I don't understand is they sell me a phone, then a package to buy time...but also $30.00 a month  fee to connect to their lines? Shouldn't that rather come with the package deal??
    Signed..done with Verizon squeezing me two ways to Sunday.  I just hope some other company  comes in with a plan to beat the socks off these top providers of cell services in the states...and I'd like to just sit back and watch the huge exodus  of people leaving. The pickens are ripe to do just that.

  • TS4083 My folders that message rules divert emails to don't update when I open Mail on my iPad or iPhone. Only the inbox does. I have to click on each folder for it to update. Is there a way around this? The folders update on my mac fine when i check mail

    My folders that my message rules on iCloud divert emails to don't update when I open Mail on my iPad or iPhone. Only the inbox does. I have to click on each folder individually for it to update. A real pain as I have about 30 folders. Is there a way around this ? The folders update on my mac fine when i check mail without having to select each one of them. Can the iPad and iPhone do the same thing?

    My Mac has 4 mail accounts coming into it, but you are correct, one of them is a POP account, (and unfortunately it is the main @ account, and is the one associated with my apple id, since we've had it for years).  I couldn't figure out how to replace this with the Imap version, short of deleting that account entirely. 
    Is this what I have to do? 
    Thanks for your help!

  • TS1292 Please help me for, I don't have any code to redeem applications or to update application

    Please help me for I don't have any code to redeem application or update applications

    What 'redeem code' are you expecting, and why do you think that you need one ? iTunes gift cards are country-specific (they can only be redeemed/used in the country in which they were issued), if they aren't available in your country then you won't be able to get one. You shouldn't need a gift code in order to update an app.

  • HT5525 I have been told that it is recommended that I  update i-photo '11 version 9.2.2  and want to publish a book I've been working on for 2 weeks! Will it really be of lesser quality if I don't update i-photo?

    I have been told that it is recommended that I  update i-photo '11 version 9.2.2  and want to publish a book I've been working on for 2 weeks! Will it really be of lesser quality if I don't update i-photo?

    Question
    Will it really be of lesser quality if I don't update i-photo?
    Answer
    NO!
    LN

  • Updating sceen elements in a for loop?

    Hi
    I have a for loop that, among other things, contains an appendText command.  It adds a character to a text box on the screen.
    I notice that rather than append the text on each iteration, it waits until the for loop has finished, and then appends all the characters.
    It's not noticable on short loops, but very noticable on longer ones.
    Is there a way to make flash update the text box as each iteration happens, rather than dump all the appended text at the end?
    Thanks guys.
    Shaun

    Hi Kenneth
    I've been playing around with that this afternoon, and am making progress, but was wondering if you could please explain it a little with regard to my code?
    The function I want to have a graphical progress on is  populateOutputBox().  Basically, it's taking data from an array (songlist), adding text to each array item, appending the result to a text box, and then the save function saves the data from the text box as a txt file.
    It was working fine as a for loop, but as you've shown, no screen updates could happen if a lot of data is being processed.
    So I've changed  populateOutputBox to do one iteration, and on each check if the array has been iterated through.
    Here's that code, followed by the code I've taken from your tut for checking on each frame:
    function  populateOutputBox() {
       //blah blah code for adding text to array items, then...
        p = p + 1;
        if (p == songlist.length)
                saveFunction();   
        else
                populateOutputBox();
    function startFunc() : void {
        addEventListener( Event.ENTER_FRAME, onCycle );
        //populateOutputBox();
    function onCycle( event : Event ) : void {
       var cycle : Boolean = true;
       var startVar : Number = getTimer();
       var milliseconds = 1000 / stage.frameRate - 1;
       while( cycle && (getTimer() - startVar) < milliseconds ) {
           cycle = populateOutputBox();
       if( cycle == false ) {
           removeEventListener( Event.ENTER_FRAME, populateOutputBox );
    As it stands, Flash seems to do nothing when I run it.  Am I supposed to initiate populateOutputBox(); in the startFunc(), or does that happen automatically in the onCycle func?
    Thanks again Kenneth.

  • How do you delete old music that it don't want anymore for the iOS 7 update. It gave me all the music I deleted in the past.

    How do you delete old music that it don't want anymore for the iOS 7 update. It gave me all the music I deleted in the past. I tried going to settings and turning off music from the past and it got rid of my music I recently purchased.

    Hello there, Syd_ma22.
    The answer to how to delete a song on your phone in iOS7 is found on page 62 of the iPhone User's Manual:
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Specifically:
    Remove a song from iPhone. Tap Songs, swipe the song, then tap Delete. The song is deleted from iPhone, but not from your iTunes library on your Mac or PC, or from iCloud.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Real-time updates of an XY graph with a 2D array (x,y) inside a for-loop

    Hi all,
       I am new to this forum, and relatively new to LabView (I've used TestPoint in the past), and I have a question. I have implemented a for-loop to grab data from an LCR meter (via GPIB) which becomes the Y data. The X data is calculated and tunneled into the for loop (although varies with incrementing 'i'). Anyhow, I am trying to store all of the data and keep the user updated throughout the test by plotting the XY Graph each iteration. Right now, the XY Graph plots one point at a time, so somehow the data I am appending to the 2D array (x,y data) is getting overwritten each itteration. How can I make it so that each new point is added to the array, making it bigger so that the data will be saved and so that the user will be able to see all the data in real-time on the graph as the test in running?
    Thanks
    P.S. I would post a screenshot, but I'm not sure how to upload here.

    Hey Mendeleev3104,
    There is an attachment section at the bottom of the post when creating or editing a post. You might want to use that to attach a picture of your code.
    None the less I will give a shot with some suggestions without viewing your code.
    You should look into using shift registers along with the Insert Into Array.vi to build an array of numbers. A good source of information for shift registers can be found in the For Loop and While Loop Structures help.
    Hopefully this helps!!
    Aashish M
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • Hi, Thunderbird just done an update on my computer but now in e mails iv`e lost all my folders I had, For example I had a folder for my receits and other thing

    Thunderbird just done an update on my computer but now in e mails iv`e lost all my folders I had, For example I had a folder for my receits and other e mails I wanted to keep.

    can you provide a bit more info before you do anything.
    I'm presuming this is a pop mail account - please confirm.
    First, make sure hidden files and folders are visible:
    The AppData folder is folder is a hidden folder; to show hidden folders, open a Windows Explorer window and choose "Organize → Folder and Search Options → Folder Options → View (tab) → Show hidden files and folders".
    * Help > Troubleshooting Information
    * click on 'show folder' button
    * click on 'Mail' folder.
    * Please post image of the contents of the 'Mail' folder.
    In thunderbird:
    * right click on mail account name and select 'Settings'
    * Select 'Server Settings' for the mail account
    * Look bottom right for 'Local directory'.
    * Put mouse cursor in the text box, then use keyboard arrow keys to navigate to the far right..some of the directory will be hidden as it does not fit it all in, so keep going to the right until you reach the end.
    * Then left click, hold down and move mouse to the left to highlight the entire entry.
    * Right click on highlighted area and select Copy.
    * Paste info into this question in the forum.

  • Have done all updates on iPad for ios8, video on Facebook and Netflix will not load.

    HAve done all updates on ios8, video will not load from Facebook or Netflix, any suggestions?

    Just did a forced reboot, seems to have fixed the problem.

Maybe you are looking for

  • Report parameters - don't work in portlet mode?

    Hi, Portal 3.0.9 on Solaris. I've a report created using the wizard, based on two tables. On the Customization Form Display Options wizard step I've defined a couple of columns I'd like to see on the parameter form / customization screen. When I run

  • Storage spaces in time capsule

    I am having trouble with time capsule. i bought a 500GB one (the older version one) about a year ago, and until recently had loads of free spaces left (had 300~400GB of free spaces left). But then i realised that after moving to a new house, I barely

  • Why is the itunes store selection different on my mac and apple tv?

    Why is the itunes store selection different on my mac and apple tv. when i browse the documenteries on my apple tv, i can purchase/rent only 3. when i look on the itunes store on my mac, there's a whole page of docs to select from.

  • Help, please. Iphone 4 deleted half of Calendar events

    Hi all, my calendar is synced to yahoo.  About 15 minutes ago I went to check my calendar on my iphone only to discover that half of the events had been deleted in all months. So I went to yahoo online and, thankfully, all my events are there. I lite

  • Posting EDI Order confirmation without message control

    Hi, I would like to post a EDI sales order confirmation without message control through z program. Please let me know how to do this??? thanks in advance Mukund