manipulation of variables

Hello! I think my problem is very simple, however I can not understand how to solve. That is: I read the output of a millisecond timer that is in a moment of the cycle. What I would do, it is to be able to subtract the new value with the former, keeping a new to do the same in the next cycle. Here is an example:

grade 1: Ms. count = 1000

output = 1000

2nd cycle: Ms. County = 2500

output = 2500-1000 = 1500

cycle 3: Ms. County = 3300

output = 3300-2500 = 800

cycle 4: Ms. County = 4000

output = 4000-3300 = 700

As you can see con seems simple enough, but is not any labview expert... JJE!

Thanks in advance!

Hey,.

You can use shift-registers, as follows:

Christian

Tags: NI Software

Similar Questions

  • Manipulation of variables between Moodle and Captivate?

    What I want:

    -A highscore table that is stored in the SCORM package that I downloaded on Moodle.

    -It sets and gets the variables to and from Moodle (image below).

    scoretestpic2.png

    Problem:
    -Currently, it records the table of scores and is there when I closed and reopened the game.

    -Every person has a different Highscores table. Everyone needs to see the same the highscore table.

    Note:

    -J' use JavaScript to manage the table of scores (set() and get() variables).

    If you know how I could do it, it would be a great help, because I can't find anything on SCORM outside quizzes.

    Thank you in advance.

    There is no way to do with SCORM. You will need to do something like the brothers e-Learning:

    How to create a ranking for e-Learning with Google (part 2)"eLearning brothers

  • Need a MAC interface to resize fonts in the dashboard of thunderbird?

    In this expanding market of Hi-rez and retina display screens a user friendly interface is desperately needed to allow for the expansion of at least the sidebar font size, otherwise the menu s in thunderbird. Not everyone who uses a computer has 20/20 vision and surely after using thunderbird on a 13 "Macbook Pro, it won't be long before you'll need sunglasses!
    Hey Mozilla, this necessary improvement is expected for a long time! Seriously! I was squinting at Tbird for almost 10 years, and now I need glasses thanks to what seems to be the apparent equivalent 8pt text! I really hope that someone to kiss my request before my prescriptions are transformed into coke bottles (a quick google shows that I'm not the only one having this problem)! If the answer to this request is to whip up a quick hack to a file that does not yet exist, you think, well I can tell you that GUI users will not even know on a file name, much less how to handle the details of this stylesheet to MIA cryptic deeply called userChrome.css! Come on, lets get real for a moment...
    If there is someone out there who can get out of an interface module friendly user or an extension which will give the technicians or those of us who don't want to spend 1/2 day learning how and where create this masterpiece and the other 1/2 of the day manipulating its variables, I can assure you, many users of Tbird will be grateful!

    To adjust the fonts in menus, thread pane, folder pane etc. :

    https://addons.Mozilla.org/en-us/Thunderbird/addon/theme-font-size-changer/

    http://KB.mozillazine.org/Bad_Eyesight_-_Thunderbird

  • Navigation/connection

    I'm a newbie using version 5.0 under Windows.  I must be missing something very obvious on the navigation.

    I have 3 slides I want the user to be able to go at any time during my training and then pop back to whence they came (a glossary, a list of reference document and a slide of navigation aid). So, I put 3 buttons on each slide (but those) that go to each of these pages. Then I put a 'back to the last slide' button on each of these 3 slides so that when they are done with that they can continue where they left off.  Everything works well. The problem is that I have included the navigation standard for play/pause, so if the user accesses one of these special pages, and then select the play button instead of the button I created, training will continue the user to the next in the sequence slide only to not whence they came.   Don't I have control over that?

    Either by the way, I've hidden these 3 slides after the first screen startup, but before the rest of the content so that I can easily give up these 3 buttons (those using the "rest of project" click boxes) so I don't have to worry about users sequentially hit more than one of those, thus making the unnecessary ' back' button.

    I haven't used before connection, but it doesn't have the option 'go to last slide visit', so I thought it was a bust.  I tried a bunch of things and other problems, but I stop talking now (; ^) because I guess a solution is obvious for the experts here!

    TIA

    Hello and welcome to the community of Captivate,

    Combination of custom navigation buttons and the PlayBar is not always a good idea. In the case where you want to just hide the reading about these "special blades' bar, this easily by manipulating the variable cpCmndShowPlaybar of system. But be aware that if hide you the PlayBar, you in turn it visible on all other slides because the user can return to one of the slides with jump to the last slide. So, if you want to use this approach:

    • to the special blades, in the properties of the slide, the accordion of the Action Panel, sign for choose
      Assign the cpCmndShowPlaybar with 0
    • for all other slides that the user can return to the same place in the Slide Properties Panel:
      Assign the cpCmndShowPlaybar with 1


    The PlayBar is just acting like the control panel of the video recorder: next to go to the next slide slide, not just follow the branching you set up.

    FYI tips:

    1. You cannot set the time where an interactive object (button, click box, text entry box) to display for the rest of the project, you need an instance with a unique name on each slide where you need
    2. There is an interesting widget included with CP5.0: GoToSlide that might be useful for you. You can specify the 3 special blades in it (label, please) and since this is a static widget, you can even add it to a master that you then apply to all slides slide where you want this feature of navigation; It will save you a lot of time because you don't need to add 3 buttons on each slide
    3. If you want 3 buttons, there is another static widget buttons in CP5.0 that allows to navigate as well. because it is static, yet once you add it to a master slide; I blogged about this widget: using the button widget. Beware if you use CP5.5 something has changed, let me know in this case.

    Lilybiri


  • AS2 swf in as3

    Hello world

    in a first time I´d first I know that many discussions of the forum exists on this topic yet, but its more your experiences or opninions what will I´m to ask...

    for my work I have to maintain a construction of Web site someone else, which is built in as2 and consists of 99% of the time.

    the structure is more or less what follows,

    "layer" 2 = all time edit swf

    "layer" 1 = main menu (all buttons)

    "layer" 0 = BG base with 2 simple buttons (nothing special, almost empty)

    so by clicking on the buttons "Layer1" different swf´s are laoded (and removed of course) on the layer 2

    I have the following problem...

    the menu layer 1 is a total mess and more or less impossibe for me to work with, so I'll have to rewrite...

    Although I ve never really got it to as2.

    all these weird pieces of code anywhere in your document, I do not.

    so I thought lets rewrite this menu in as3

    but after reading stuff on the web, I understand that the combination of different versions of actionscript in one document is not without risk...


    If I just read I ve, I am able to load a swf in as3 "framework/title" as2 but not vice versa. but I also read that it is still not without risk.

    of course I don't want Mayor problems occur on this page.

    think you folks...

    It would work to rewrite the layer 0 and layer 1 in as3 and let all SWFs in layer 2 as they are (written in as2)

    and in this way only load as2 documents on layer 2? or do you think this will create probloems too?

    If you think that it won´t work please let me know, in this case I´ll just once more via as2 evil and redo the menulayer in as2

    Thanks in advance

    Ivo

    I say if you need AS3 file to control some aspects of the AS2 file (or vice versa), you need to watch by using the LocalConnection communication.  This type of communication could involve the manipulation of variables or the execution of functions between different file types.  If AS2 files play as autonomous parts, and the side AS3 just charge and discharge them, then you will should not use LocalConnection.

  • Manipulation of presentation variables

    Is it possible to manipulate the presentation variable. I don't need the exact value selected by the user to be set as the value of the variable presentation, instead of this I need a small modified value. Is this possible.

    Hello
    In the quick Fx you can do this and set the variable presentation, else create a dummy column in the logical layer and use the same

    Thank you
    Saichand.v

  • manipulation of refreshment of the variables within a structure of the event?

    Hi all

    Here I have my problem: I implemented in a data visualization tool, a button to get the updated file.

    But as the mail application provides new files every 2-5 seconds, I wanted to also apply a function to auto-refresh, so that the file is retrieved every XX seconds.

    I've tried several, solution workaround naïve perhaps, but the problem is that when I start the "auto-refresh", I can't handle anything else in the Control Panel, and I can't change the value of the "automatic update control ' because no doubt... He's waiting. Please find attached the photo.

    What Miss me?

    Thanks in advance,

    Edo

    Hey Edo,

    You can use the event to wait for it. Do not use a wait within a structure of the event function.

    Mike

  • Manipulation of a variable javascript in Flash

    The following javascript bit writes and retrieves a cookie that counts visits of users to the page. Then, using swfobject, it incorporates main_banner.swf and passes the value of the cookie 'visit' to it via flashvars. The problem is in the ActionScript below. the vallue is exceeded (that's for sure, because the .swf appears rather than the alternative content) - but the .swf is stuck on the first frame rather than the cookie of processing and sending the user to the appropriate image tag. If anyone has any suggestions on how to write the code of reception, I would certainly appreciate it.

    Thanks, Ryan

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    "< html xmlns ="http://www.w3.org/1999/xhtml"lang ="fr"XML: lang ="fr">"
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    < title > Untitled Document < /title >
    "< script src ="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js "> < / script>"

    < script >

    function createCookie(name,value,days) {}
    expires the var = "";
    {if (Days)}
    var date = new Date();
    date.setTime (date.getTime (+(days*24*60*60*1000)));
    Expires = "; Expires = "+ date.toGMTString ();
    }
    document.cookie = name + '=' + value + expires + ";". " Path = / «;»
    }

    function readCookie (name) {}
    var nameEQ = name + '=';
    var CA = document.cookie.split(';');
    for (var i = 0; i < ca.length; i ++) {}
    var c = ca [i];
    While (c.charAt (0) = ' ') {}
    c = c.substring(1,c.length);
    }
    If (c.indexOf (nameEQ) = 0) {}
    Return c.substring (nameEQ.length, c.length);
    }
    }
    Returns a null value.
    }

    var counter = readCookie ("counter");
    var prior_visits = (counter! == null)? parseInt (counter, 10): 0;
    var current_visit = prior_visits + 1;

    createCookie ("counter", current_visit, 365);

    if(prior_visits === 0) {}
    Alert ("this is your first visit");
    } else {}
    Alert ("this is visit #" + current_visit);
    //}

    var flashvars = {}
    visits: current_visit
    };

    swfobject.embedSWF ("main_banner.swf", "myContent", "189", "151", "9.0.0"", false, flashvars");

    < /script >


    < / head >
    < body >

    < div id = "myContent" >
    content alternative < h1 > < / h1 >
    "< p > < a href ="http://www.adobe.com/go/getflashplayer_fr "" > < img src = "http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt = "Get Adobe Flash player" / > < /a > < /p >
    < / div >
    < / body >
    < / html >

    ACTIONSCRIPT STARTS HERE - It's the first image of a 5 FLA file. The following 4 images are labelled (see below) and have a singular function to load an external .swf

    EX. - loadMovie ("white_papers_banner.swf", "myContainer_mc");
    -This ._lockroot = true;

    -stop();

    visit the var: String = "0,1,2,3;

    If (visits == 0) {}
    this.gotoAndPlay ("investment_focus");
    }

    If (visits == 1) {}
    this.gotoAndPlay ("white_papers");
    }

    If (visits == 2) {}
    this.gotoAndPlay ("portfolio_strategy");
    }

    If (visits == 3) {}
    this.gotoAndPlay ("third_thursday");
    }

    Stop();

    You must defer (try to) run a goto until the required framework is loaded.  That is to say, use code preloader to determine when to perform your goto.

  • Manipulation of data and ReadFile

    Does anyone know a tutorial readFile manipulation and data?

    Utils.blobtoString still not working?

    Hello arqlz,

    The problem described in this article was due to a blobToString method unheeded at the time. This problem has since been apparently corrected. I just tested the following successfully on my PlayBook example.

    Note that before could run this sample, I had to manually create the file expected readme.txt on the PlayBook filesystem under:

    \media\downloads\

    To complete the above, I went in my PlayBook storage and sharing settings and active file sharing, and the sharing of the Wi - Fi (so I could create the live file on my PC). Then, I created the file manually and it filled with the text:

    Hello world!

    My file config.xml looks like this.

    
    http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0">
        Sandbox
        Oros
        
        
    
        
        
    
        
            access_shared
        
    
    

    Most of this is just a standard configuration.

    • The white list is not mandatory, but it is included by habit.
    • Blackberry.io.file feature > me provides access to readFile and saveFile.
    • The blackberry.utils me gives access to the blobToString and stringToBlob methods.
    • Permission to access_shared ensures that you can access the shared folder on the PlayBook.

    My gaze to index.html as follows file.

    
    
        
            
        
        
            

    From top to bottom, a brief description of the main parts:

    • The #log
      take our logging messages so that we can keep track of what's going on.
    • The / * global * / definitions are there just to satisfy JSLint. Basically, he announced that these variables are defined elsewhere.
    • The logarithmic function takes the text and adds in his own
      to #log. Reviews of find a large number of calls to this function scattered throughout the code. Basically, I want to keep track of what's going on. These calls are not necessary.
    • The handleOpenedFile function is called if we execute successfully blackberry.io.file.readFile. This is where we do our manipulation of data read. Manipulation converts the blob to string, inserts the text "update the:" to the chain, and then converts this string to a BLOB that is then saved in our output file: test.txt. "."
    • The ready function is called when the DOMContentLoaded event is raised. We provide our default readme.txt filepath then try to read the data.
    • Finally, outside functions, we record the DOMContentLoaded event to trigger our ready function. We place outside all functions to ensure the event is recorded when the
  • comma delimeted string manipulation

    Three possibilities of decoding where it goes. BB SDK 5. Data GPS are stored in a vector of singleton in the form of a string. Essentially the string looks like this: value1, value2, value3, value4, Value5, Value6,

    There can be more than 1 string in the singleton at some point I want to get a timer task in another thread is so to check each string, divide the data into other variables so that I can create a message that will be sent via an http connection. Bit, I'm glued to the minute tire data back to specific variables... I try to use a cup of the version of http://supportforums.blackberry.com/t5/Java-Development/String-Manipulation-split-replace-replaceAll... because I already know what will be the delimiter and also the amount of the values contained in the string, but I must be missing something here. The code that I need to check the vector and to try and do things variable is therefore:

    for (int i = 0; i)< instance.vector.size();="">
    {
    String elementReturnString = instance.vector.elementAt (i) m:System.NET.SocketAddress.ToString ();
    String strDelimeter = "";
    String results [] = new String [6];
    int iOccurrences = 0;
    int iIndexOfInnerString = 0;
    int iIndexOfDelimiter = 0;
    int iCounter = 0;
                           
    System.out.println ("string delimiter =" + strDelimeter); It appears,
                            
    While ((iIndexOfDelimiter = elementReturnString.indexOf (strDelimiter, iIndexOfInnerString))! = - 1).
    {
    results [iCounter] = elementReturnString.substring (iIndexOfInnerString, iIndexOfDelimiter);
    iIndexOfInnerString = iIndexOfDelimiter + strDelimiter.length ();
    iCounter += 1;
    }
    System.out.println ("# latitude =" + results [0]);  It's never far

    Lat string results = (0);

    Lon string = results [1];

    Line speed = results [2];
    etc etc etc.

    }

    He bombed in the debugger with a number of errors with the first course cannot find symbol on the strDelimeter on while the statement variable. It fails every other time its use, but it displays a comma in the system.out statement. He also says that iIndexOfInnerString = iIndexOfDelimiter + strDelimiter.length (); Cannot be applied to strDelimeter.length.

    ..... Any ideas please? I tested that he can see in the vector information ok.

    You wrote your variable strDelimeter and strDelimiter (note the an i e).

  • Problem with variables not excluding search terms not

    People,

    I'm having a problem with variables, when used in topic titles.

    We produce two distinct versions of a webhelp. The text is almost exactly the same, but the product has a different name in each version. In one version, he is called FLOW; in another, it is called Service generator. We use the user-defined variables to control which name is used to identify the product, when we generate the webhelp.

    So, I have (for example), a subject that begins with the heading:

    Construction of a FLOW script

    where the text occupied by 'FLOW' is provided by a variable with two values - FLOW and Service constructor.

    So when I generate the generator using the web Service version, I put Robohelp using the Service Builder variable defined, and all contained text and the table of positions generate fine; FLOW is nowhere to be seen.

    But when I type "FLOW" in the search box, the system identifies each of the three subjects that are built as in the example above, with a topic title that contains the variable used to set the name of the product. In addition, it displays in the search results using STREAM in the title of the topic, not Service Builder (but when I open the topic, the text in the header is rendered correctly).

    In addition, the system uses the "FLOW" and not "Service Builder" in the headings found by the search, regardless of what research the term is used.

    Everyone comes through this? Nobody knows how to solve this problem, please?

    Thanks in advance,

    NA.

    What version of RoboHelp do you use?

    I use the 2015 Release version. It used to be version 11.

    In the Release version of 2015, my topic Properties dialog box looks like this:

    I think that version 11 may have introduced the possibility of having a variable in the title of the topic. If your version is older and does not seem to offer a way through the dialogue box to deal with this, I was wondering if you could fudge by manipulating the code manually. For example, I see that when I use a variable in a topic title, I end up with this:

    So I was wondering if you could add just in the bit that reads:

    < InsertVariableNameHere >

    Of course, you want to replace the text InsertVariableNameHere with the actual name of your variable.

    It can fail miserably because the process of generation of RoboHelp doesn't know how to cope. But in fact, it might work! You won't know until you try.

    And even if it fails, I may be able to offer another approach that you will overcome the problem.

    See you soon... Rick

  • Export SVG - variable not selected

    Hello

    I try to keep variables when you work in Illustrator as a SVG export. This is so that the text SVG content can be manipulated outside and then brought back to Amnesty International and the variable data update exported as XML.

    I'm scripting the SVG export. First, I created a variable for each piece of text and then export the doc. With property preserveeditability set to false (because it must be for the graphics be handled externally), variables seem to lose their link to object when the re-opening the SVG in artificial intelligence. Inspect the document SVG itself, the variables are indeed still there and remain bound by the relevant XML ID, but when the document is opened, the variables no longer seem to be linked to anything.

    Attempts to manually assign a variable once the SVG was created does not work either. It works fine if the file is always in the format I.

    Does anyone know if this is a bug, or intended behavior? If the latter is at - it workaround to keep variables related to the SVG elements, even when the editable character is not preserved?

    Thank you

    David

    You probably want to put this in the forum script.

    In my opinion, they have just enough resources to make the feature so robust that it preserves the variable features once the file is saved as SVG without editability of kept.

    Not sure what is your goal for this export method, but if you want the graphics to be handled outside while keeping the art related to variables, which does not at the same time as you say, perhaps a workaround might be illustrations not compatible variable SVG export and using another script to open after having been transformed on the outside to match and to visually change the work of the master document HAVE which variables.

    If your master document of AI has a number of ways and forms and changes of external processes, some stroke or fill colors or paths of the form, your 2nd script could simply change the forms and the colors in your document There by opening and reading the transformed or even SVG document using the text in the SVG file to get the properties of the work.

  • Using variables

    How to run a function after several variables have been set. That means, the function will not execute until all variables have been defined. I have a set of 4 question and I want to be able to say, (question 1, 2 and 4 are correct), so if the user clicks on these 3 choices then they will see a well done animation.

    Thank you

    Here's a case.

    (1) on stage, I have this (photo above):

    (2) each rounded rectangle is scripted as above:

    Note: & means and.

    So, there are 2 options.

    • One option: 3 correct answers are required between issues.
    • Another option: 2 specific responses are needed.

    Well, you can choose your option.

    http://API.jQuery.com/category/manipulation/class-attribute/

  • Database inside Openscript data manipulation

    Hi all

    Can someone help me in the manipulation of data within Openscript database.

    Anticipate the early response.

    Hello

    Make use of the following to manipulate the data to a csv file-
    Table table1 = utilities.loadCSV ("path of csv");
    After loading the table, we can use variables to manipulate the data.
    getVariables () .set ("variable name", table1.getRow(row_number).get (column number) ');

    Kind regards
    Rajesh

  • Can I use a variable in a slider?

    Version of DB 10g
    Developer SQL 3.

    Hi once again, everything

    This post is a result of the post previous 'Sequence increment by 2 and not 1.'

    Here's a quick run down of what I do.
    We have historical records dating back decades and decades and decades (1900). Some of the most recent data were recorded in the worksheets. With some manipulation of data, it was possible to reorganize the data in its forms of entry in a flat file. These data were then imported into Access database, then using SQL Developer I made a data base for each access database connection and used copy for Oracle... tool to create a table in my flat file schema. In test data that I have right now that I copied the 5 access to Oracle databases and the results are five paintings called plot_84, plot_151 etc. I created a database that contains four main tables where the data from the flat files must be inserted, to standardize the it (I think the sentence is).

    I with the help of a large number has been able to train the following anonymous block, and it works very well (with the exception of the question of sequencing).

    DECLARE get_plot_measurement_id NUMBER;
    update_plot_measurements VARCHAR2(4000);
    get_tree_id NUMBER;
    get_plot_id NUMBER;
    
    BEGIN
        --1. Initiate insert process by getting PK from psp_plots
        SELECT plot_id INTO get_plot_id FROM psp_plots WHERE plot_name = 84; 
        
        --2. Insert records into psp_plot_measurements and keep relationship with psp_plots with variable get_plot_id.
        --   and get primary key value of psp_plot_measurements to insert into psp_tree_measurements during loop process.
        INSERT INTO psp_plot_measurements (plot_id) VALUES (get_plot_id) RETURNING plot_measurement_id INTO get_plot_measurement_id;    
        
        --3. Update record created at point 2.
        UPDATE psp_plot_measurements
           SET measurement_date    = (SELECT DISTINCT measurement_date FROM plot_84)
             , codominant_height   = (SELECT DISTINCT codominant_height FROM plot_84)
             , assessor            = (SELECT DISTINCT assessor FROM plot_84)
         WHERE plot_measurement_id = get_plot_measurement_id
         ; 
      
        --4. Open cursor to insert rows one at a  time and maintain relationships between related tables.
        FOR c1 IN
          (SELECT tree_number 
             FROM plot_84
          )
          
          LOOP      
        
            --5. Insert record into psp_trees
            --   and get primary key value of psp_trees to insert into psp_tree_measurements
            INSERT INTO psp_trees (plot_id, tree_name) VALUES (get_plot_id, c1.tree_number) RETURNING tree_id INTO get_tree_id;
        
            --6. Insert records into psp_tree_measurements and keep relationship with psp_trees with variable get_tree_id.
            INSERT INTO psp_tree_measurements (plot_measurement_id, tree_id) VALUES (get_plot_measurement_id, get_tree_id);
        
          END LOOP;
    
    END;
    /
    But me being someone who loves jobs mind numbing again and again, and more (about 1000 times x, who knows) still wants something I can preload a list of arrays of flat file (5 in this example) and just not run it.

    The problem is the following:
    Can I use a variable in a cursor, how are hilighted in bold below.

    "BOLD" has not worked is the bit of code FOR c1 IN (SELECT tree_number FROM plot_ | col_name_var) you will see just under point 4 below
    DECLARE p_column_num NUMBER;
    col_name_var VARCHAR2(30);
    type number_ptb IS table OF VARCHAR2(4000);
    p_column_nam number_ptb;    
    get_plot_measurement_id NUMBER;
    update_plot_measurements VARCHAR2(4000);
    get_tree_id NUMBER;
    get_plot_id NUMBER;
    
    BEGIN
    
        p_column_num := 5;
        p_column_nam := number_ptb();
        p_column_nam.extend(6);
    
        p_column_nam(1) := 84;
        p_column_nam(2) := 151;
        p_column_nam(3) := 152;      
        p_column_nam(4) := 214;
        p_column_nam(5) := 283;
    
        FOR loop_int IN 1 .. p_column_num
        LOOP
    
          col_name_var := p_column_nam(loop_int);
    
    --1. Initiate insert process by getting PK from psp_plots
          SELECT plot_id INTO get_plot_id FROM psp_plots WHERE plot_name = col_name_var; 
        
    --2. Insert records into psp_plot_measurements and keep relationship with psp_plots with variable get_plot_id.
    --   and get primary key value of psp_plot_measurements to insert into psp_tree_measurements during loop process.
          INSERT INTO psp_plot_measurements (plot_id) VALUES (get_plot_id) RETURNING plot_measurement_id INTO get_plot_measurement_id;    
        
    --3. Update record created at point 2.
          update_plot_measurements := '
          UPDATE psp_plot_measurements
             SET measurement_date    = (SELECT DISTINCT measurement_date FROM plot_' || col_name_var ||')
               , plot_size_10_30cm   = (SELECT DISTINCT plot_size_10_30cm FROM plot_' || col_name_var ||')
               , plot_size_30_50cm   = (SELECT DISTINCT plot_size_30_50cm FROM plot_' || col_name_var ||')
               , plot_size_50cm      = (SELECT DISTINCT plot_size_50cm FROM plot_' || col_name_var ||')
               , codominant_height   = (SELECT DISTINCT codominant_height FROM plot_' || col_name_var ||')
               , assessor            = (SELECT DISTINCT assessor FROM plot_' || col_name_var ||')
           WHERE plot_measurement_id = ' || get_plot_measurement_id
           ;
     
           EXECUTE IMMEDIATE update_plot_measurements;
      
    --4. Open cursor to insert rows one at a  time and maintain relationships between related tables.
          FOR c1 IN (SELECT tree_number FROM plot_|| col_name_var )   
              LOOP      
        
    --5. Insert record into psp_trees
    --   and get primary key value of psp_trees to insert into psp_tree_measurements
                INSERT INTO psp_trees (plot_id, tree_name) VALUES (get_plot_id, c1.tree_number) RETURNING tree_id INTO get_tree_id;
        
    --6. Insert records into psp_tree_measurements and keep relationship with psp_trees with variable get_tree_id.
                INSERT INTO psp_tree_measurements (plot_measurement_id, tree_id) VALUES (get_plot_measurement_id, get_tree_id);
        
              END LOOP;
      END LOOP;
      
    END;
    /
    Reviews on my welcome code.

    Ben

    Published by: benton on Sep 1, 2011 11:31

    Published by: benton on Sep 1, 2011 11:32

    Published by: benton on Sep 1, 2011 11:34

    with your current model, you need to write once for each table or write dynamic SQL regardless of the bulk of collect. adding most collect simply means you can do all the inserts in a single step and generally average performance benefits (see docco to COLLECT in BULK and for ALL).

    However, it is not really solve your problem.

    can I suggest an ETL step where you move all of the data in a table, then cross and run this function on all resulting?

Maybe you are looking for

  • Apple Watch series 2 GPS 'routing my race. "

    With the new GPS feature on 2 series watch and in order to have the 'road' to appear under the summary of your workout in the application of the activity, you need to carry your iPhone with you on your shopping, walks, hikes, etc.? Series, that I hav

  • with the help of iTFW for the removal of tracks dead

    I prefer to use other software to manage and play my media, but still rely on iTunes for tasks (for example, to manage an iPod).  Therefore, I trust iTFW (record shows iTunes) to keep my iTunes updated library... I had not used iTFW for a long time s

  • Watlow DP front panel

    Hello Can anyone help. I am currently doing a project for College. Basically, my plan is to use labview to control a temp of DP watlow controller to turn on a heater off the coast. I want only basic as set functions of preforms and read the temperatu

  • How can I access a rider in my toshiba portege M205-S810

    I have a Toshiba portage, accidentally, I 4got my password BIOS. Now am able to reset my BIOS by placing a jumper on my motherboard but the problem is that I can locate the jumper on my boredom nor I knew to break. PLS, how can I reset my BIOS passwo

  • HP Support assistant / crashes?

    When I try to "apply the patches and updates" it hangs just at the final fix. There are 4 fixes. 1. define a point of restoration-pass 2 check available disk space 3. connect to servers from hp for new updates and alerts-pass download 4. Setup/applic