Create parameter array

All,

I finally finished a VI that accepts 4 Strings, 1 Bool and 3 floats and calls a STORED PROCEDURE ala MS - SQL 2005 database, with the same interface (the STORED procedure also accepts the same inputs).

The purpose is just to store the values as a record in a table.

I was finally able to get this all working, but when I save the VI and re - open, I lost all the settings in my initial parameter array that is an input required for the 'DB tools create parameter query' except the 0th parameter.

I don't know how to get these persists...  I can go to the front and add them at design time, and they remain there and work perfectly during the execution, but if I close the VI (and save) and re - open, I lose them.

Thank you!

Dave Sell

Go to the Edit menu and select "use current default values. Save the VI. And before you save the VI, get rid of this sequence structure. It does nothing except make the program harder to read. Data flow is to control the order of execution.

Tags: NI Software

Similar Questions

  • Data mining - error on the insertion of the TREE_TERM_MINPCT_MODE value in the parameter array

    Hello

    In Data mining when I tried to insert some values into the parameter array. I get the error by trying to introduce TREE_TERM_MINPCT_MODE in the table.

    The model who was on trial for create was decision tree.

    BEGIN

    INSERT INTO DT_CA_SETTINGS_TEST (SETTING_NAME, SETTING_VALUE) VALUES

    (dbms_data_mining. TREE_TERM_MINPCT_MODE, to_char (1));

    END;

    Error report:

    ORA-06550: line 3, column 22:

    PLS-00302: component 'TREE_TERM_MINPCT_MODE' must be declared.

    ORA-06550: line 3, column 22:

    PL/SQL: ORA-00984: column not allowed here

    ORA-06550: line 2, column 4:

    PL/SQL: SQL statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    * Action:

    Thank you
    Srikanth.

    Hello

    BEGIN

    INSERT INTO DT_CA_SETTINGS_TEST (SETTING_NAME, SETTING_VALUE) VALUES

    (dbms_data_mining. TREE_TERM_MINPCT_NŒUD,to_char (1));

    END;

    This isn't 'Mode' his 'NŒUD '.

    Run now.

    See you soon...

  • Create an array of Boolean 1 d of reference Boolean table 1 d

    Hello

    Any suggestions on how to create an array of Boolean 1 d of reference Boolean table 1 d?

    Thank you for any ideas?

    You can wire the reference to a node value property and get the array of Boolean.

  • easy way to create an array of [1, 2,..., 4956]?

    Y at - it easy and lazy to create an array of [1, 2,..., 4956]?

    Hi Cashany,

    LabVIEW has polymorphic functions and offers several solutions for your task...

  • How to create an array of strings listing by program?

    How to create an array of strings listing by program? I'm trying to programmatically create an Enum containing a list of tests to run, based on the selection of the user.

    My code ranging from control on LAVA has a demo VI to convert an array of strings of an enum.

    Tone

  • How to create dynamic arrays parallel/side-by-side in Adobe cycle

    Is it possible to create dynamic arrays parallel/side-by-side in Adobe cycle?  If so, how?

    Given that the tables have different sizes, in that I am running wrapping issues with running adjustment of Western characters and characters from the pagination with checkpoint.  Any other ideas?

    In fact, I had tried this solution ("wrapping the tables in a subform of position and set to automatically adjust the height and allow page breaks"), but it did not work.  Something to do with nested subforms of position within a subform control flow etc.  So to make it work, I set the page to be a subform of position and the auto-hauteur value and allow page breaks and I unpacked the paintings while they were only 'wrapped up' of the page itself.

  • creating an array of movieclips in AS2 OOP

    Long proceedural timer trying to pass to the OBJECT-oriented programming. Using the book "Object Oriented Actionscript for Flash 8" I created the example of a class with a movieclip that is passed as a parameter. Attempting to expand in an array of clips/classes and without success.

    Here's the class:

    -----------------
    location class extends MovieClip {}

    var targetMC:MovieClip;
    var x: Number;
    var y: Number;

    function {location (x: Number, y: Number, targetMC:MovieClip)}
    this.targetMC = targetMC;
    This.x = x;
    This.y = y;
    moveTo(x,y);
    }

    function moveTo (x: Number, y: Number) {}
    this.targetMC._x = x;
    this.targetMC._y = y;
    }

    }
    ---------------------------
    and for a single clip the following work in the fla

    //----------------------------------------------------------
    attachMovie ("dot", "dot", 1.1, 100);
    var myLocation:Location = new location (dot, 200 300);
    //-------------------------------------------

    However when I try to create a table of 'points' it does not work.

    //-----------------------------------------
    var myLocation:Array = new Array();
    for (x = 0; x < 5; x ++) {}
    attachMovie ("dot", "dot" + x, 1, 1, 100 + x);
    var myLocation [x]: location = new location (_root ["dot" + x], 200, 100 + x * 30);
    }
    //---------------------------------------

    Also how to avoid using _root in this?

    Great, thank you. I thought it was associated with OOP and am happy that it was just As Basic.

  • How to test a procedure that takes a PARAMETER array?

    Oracle 9i

    I created a procedure that takes an ARRAY PARAMETER (essentially a list of the IDS of employees and this procedure is called from the Java side), and the procedure is to remove the employees based on employee ID list.

    I stated that the type employee_id_array is TABLE of NUMBER.

    I want to test this procedure in sqlplus, but how to move this list of 'id table used' to this procedure, so I know it works?

    Thank you.

    Sure.

    satyaki>
    satyaki>select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>create or replace type number_array as table of number;
      2  /
    
    Type created.
    
    Elapsed: 00:00:00.02
    satyaki>
    satyaki>
    satyaki>CREATE OR REPLACE procedure delete_employee(
      2                                               p_employee_id_array in number_array
      3                                             )
      4  as
      5  begin
      6   for i in 1 .. p_employee_id_array.count
      7   loop
      8     --dbms_output.put_line ('this employee idis is: ' || p_query_id_array(i));
      9     delete from emp
     10     where empno in (to_number(p_employee_id_array(i)));
     11   end loop;
     12  end delete_employee;
     13  /
    
    Procedure created.
    
    Elapsed: 00:00:00.13
    satyaki>
    satyaki>
    satyaki>select * from emp;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7777 SOURAV     SLS                  14-SEP-08      45000       3400         10
          7903                                                 1000                    10
          7499 Travor     SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       4450                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       7000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
    
    14 rows selected.
    
    Elapsed: 00:00:00.16
    satyaki>
    satyaki>
    satyaki>
    satyaki>
    satyaki>declare
      2     vv number_array := number_array(7903,7499);
      3  begin
      4    delete_employee(vv);
      5  end;
      6  /
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.15
    satyaki>
    satyaki>select * from emp;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7777 SOURAV     SLS                  14-SEP-08      45000       3400         10
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       4450                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       7000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
    
    12 rows selected.
    
    Elapsed: 00:00:00.16
    satyaki>
    

    Kind regards.

    LOULOU.

  • Problem creating an array of objects

    Hello

    I have a xml.

    I read of the elements by using the loop.

    I want to store string data in an array whose size is not fixed.

    I am currently using vectors for this. But by storing the first sting

    some sort of error occurs and no exception is caught.

    Code:

    Title vector;

    for (int s = 0; s< loop;="" s++)="">

    Node fstNode = nodeLst1.item (s);
                
    If (fstNode.getNodeType () == Node.ELEMENT_NODE) {}
              
    Element fstElmnt = fstNode (element);
    NodeList fstNmElmntLst = fstElmnt.getElementsByTagName ("title");
    Element fstNmElmnt = fstNmElmntLst.item (0) (element);
    NodeList fstNm = fstNmElmnt.getChildNodes ();
    System.out.println ("name:" + ((node) fstNm.item (0)) .getNodeValue ());
                  
    title.insertElementAt (((Node) fstNm.item (0)) .getNodeValue ()), s); ERROR GETTING PRODUCT HERE

    }
                 
    }
    }

    Any help?

    Thank you

    Afonso

    you declare the object without creating the instance of it.

    Use this

    Title vector = new Vector();

    I think that will be resolved.

    ------------------------------------------------------------------------------------
    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

  • the directory path not valid lack Pathé under the parameter array

    I created the directory xyz & data also being developed under the table of privilege.

    But the problem is that how this path of the directory would be added through command in the table of parameters as mentioned.
      select *  from v$parameter where name = 'utl_file_dir';
      
      

    You put the directory path in the directory parameter.

    You have to put the directory it.

     output_file := utl_file.fopen ('XX_HRMS',v_file_name, 'W'); 
    
  • Create an array of strings of names of JPEG in a folder

    I create a dynamic flash Gallery. I have filled external files with thumbnails, which are named descriptive. I was wondering if there was a way to create a string array of the names of JPEG (by file), then use that to drive my charger loop, instead of 'pic' + i + '.jpg', something like picArray [i], or picArray [i] + '.jpg '. I honestly don't want to rename hundreds of files named way descriptive pic1, pic2, etc., that I I want to use descriptive file name in the SWF file. In addition, if the user wants to browse the contents of the file without the SWF, they have an idea of what is the image. Any help is appreciated. Thanks in advance!

    lol you need to use a 3rd party (such as zinc) application or use another application like adobe air.

  • How to create an array of items from the loop.

    I have to get an array of elements obtained from the loop for so that I can use this table later in my program. When using range of table and cluster service arrayVI it gives only the last value generated in the loop. I want that all the values for each iteration to be stored in the table. Please suggest some options

    When a thread stops a loop, by default, it is automatically indexed in a table. Right-click on the tunnel and go back to that.

  • How can I create multidimensional arrays of controls?

    I build a VI that will have hundreds of power keys, 24 on each of the 8 tabs.  I can deal with them programmatically in an array, like this:

    and to find one that was pushed with some XOR'ing:

    But what happens if I want two rows of 12 buttons?  I can make a 2D buttons somehow?  Or a table 1 d of buttons on two lines for aesthetic reasons?

    What happens if I want to put 24 buttons on each of the 8 tabs?  Can I make a table of 24 x 8 controls somehow?  Or a 2 x 12 x 8?

    Thank you

    -Jordan

    Right click on the display of the Index and Add Dimension.

    I would be cautious to put too many buttons. Makes for an awkward interface.

  • Create an array of MovieClips with a statement

    Hello
    I'm trying to create a matrix of MovieClips with a statement, but it does not work.
    The code is the following:

    var PicLoader:MovieClipLoader = new MovieClipLoader();

    function createMovieClips() {}
    var c:Number = 1;
    var Pic1:MovieClip = new MovieClip;
    var Pic2:MovieClip = new MovieClip;
    var Pic3:MovieClip = new MovieClip;
    var Pic4:MovieClip = new MovieClip;
    var Pic5:MovieClip = new MovieClip;
    var Pic6:MovieClip = new MovieClip;
    var Pic7:MovieClip = new MovieClip;
    var Pic8:MovieClip = new MovieClip;
    var Pic9:MovieClip = new MovieClip;
    var Pic10:MovieClip = new MovieClip;
    var Pic11:MovieClip = new MovieClip;
    var Pic12:MovieClip = new MovieClip;
    var Pic13:MovieClip = new MovieClip;
    var Pic14:MovieClip = new MovieClip;
    var Pic15:MovieClip = new MovieClip;
    var Pic16:MovieClip = new MovieClip;
    for (var i: Number = 1; i < = 4; i ++) {}
    for (var j: Number = 1; j < = 4; j ++) {}
    _root.createEmptyMovieClip (eval ("Peak" + c), _root.getNextHighestDepth ()); eval("PIC"_+_C)._x = i * 100; eval("PIC"_+_C)._y = j * 100;
    _root. PicLoader.loadClip ("' http://www.sages.hu/galeria/kepek/kep1.jpg ', eval ("_root."+ eval ("Peak"+ c)));
    c ++ ;
    }
    }
    }


    createMovieClips();

    What I've done wrong?

    It is quite a mess. Try:

  • Create an array of Virtual Machines with an index to allow the selection of the index entry

    I would like to help with the following.

    Using the GET - vm to return all the virtual machines in a table or a table, but with a number of index against each of them. Perhaps even the number of its position in the matrix or $myarray [0]. I am struggling with the best way to go, be it a table to 2 dimensions or an object, but then how do I get the numbers in there.

    The reason for this is to present a list of virtual machines with a number on the side, to which the user then enters the number instead of having to type the name of the virtual machine.

    Ideally resembling:

    vCenter 0

    1 Exchange

    2 FilePrint

    3 SQL

    4 DC

    $vms = $get - vm | Select name

      1. a way to get the number. ##

    $vmsindexed =?

    '' This is the virtual machines to the choice.

    " "

    $vmindexed

    " "

    $selectedNum = read-host "enter the number of the Virtual Machine to power on.

    $selectedVM = $vms [$selectedNum]

    "You have selected Machine virtual $selectedVM.

    " "

    Start-VM - VM $selectedVM

    Thank you in advance, I'm going crazy thinking about it!

    The following script will give you a list of virtual machines with a number on the front, then you can type the number, choose the virtual machine you want to start:

    $VMs = Get-VM
    $VMsArray = @()
    $VMs | ForEach-Object { $VMsArray += $_.Name }
    Write-Output "Here are the virtual machines to choose from"
    Write-Output ""
    For ($i = 0; $i -lt $VMsArray.Length; $i++ ) { Write-Output "$i $($VMsArray[$i])"}
    Write-Output ""
    $SelectedNum = Read-Host "Enter the number of the Virtual Machine to Power On"
    $SelectedVM = $VMsArray[$SelectedNum]
    Write-Output "You have selected Virtual Machine $SelectedVM"
    Write-Output ""
    Start-VM -VM $selectedVM -Confirm
    

    Robert

Maybe you are looking for