Combination of the input paths/strings

Hello

I would like to improve my VI. Its something like AB subjective assessment of sound quality. The question is, that the combination od stimuli must be prepaired as pairs. I want to encode Combinatorics in the app itself. If the point is to make the combination of pair of input channels or channels (table) and this combination is no repetition. Mathematicaly for files n n! / 2! *(n-2)!. I started programming in BT, but it was too complex, more than the main VI. I ve been do this for 2 hours and finally I did not accidentally save it. So now I m quite upset. But in any case, this code was stupid. Do you have an idea how to solve this?

Thank you very much!

Try something like this:

(I have generate the indices pair in separate code, so it can later be used on any list (file names, etc.).) This is just a quick draft, many improvements are possible).

Tags: NI Software

Similar Questions

  • Length of the string, excluding the input character/string

    Long story short, I want to replicate the function of the length of the string , but do not include an input the number of characters in string. For example:

    The input string (search) is 'the

    My first string to test is "the big red dog."

    That would mean a 13 string length.

    My second string is "Jumps over the lazy Fox."

    That would mean a length of 21.

    ' Hello World! ' would return 12.

    'The Lion, the Witch and the wardrobe' would return 26.

    I hope that you can see what I want to achieve. How is this possible?

    -James

    (I'm driving Labview 8.5)

    Use the search and replace the string to replace your 'exclusive' with an empty string string.  Use the length of the string on the result string.  Make sure that everything is already set to TRUE.

  • to limit the input in the xcontrol string characters

    Hello

    I followed an example online at deveope an xcontrol for the input string, but limit the input only characters for capital letters from A to Z. I have the main code as follows

    In the key to the bottom of the event, I throw all input character with the ASCII beyond [65, 90]. Sounds works but if I continue to press a prohibited (e.g. %), it will show that the key in the control. So, how can I ban the entry by a long press on a button? Thank you.

    Maybe including an event ' key repeat? It will handle the case when a character is added when the user holds the key. I think that you will just need to copy the code in the event "button down?

    Jeremy P.

  • When I try to open e-mail files a small box opens with the setting or the input string was not good format

    original title: windows live suit

    When I try to open e-mail files a small box opens with the setting or the input string was not good format

    Windows Live Solution Center
    http://windowslivehelp.com/

  • How to use the input as VC Atttibutes string?

    Hello everyone,

    I'm discovering VCO. And I need your help.

    How can I use input string as a VC attributes at the end? Then, use this return as input for another workflow.

    The workflow that I am putting in place is:

    1-name of the VM to search in vCenter: input String (example: 'TOTO')

    2-search 'TOTO' virtual machine in the vCenter, if found then

    3 - use this result to clone a VM TOTO

    For stage 1 and 2, it works, I can search based on the input of the chain and get a result.

    But for step 3, I use another workflow 'Create virtual machine' and we must put a VC:VirtualMachine.

    And it does not work because the type I get to step 2 is not compatible with the entry for step 3.

    Progressive input signal 3 waiting for VC:VirtualMachine

    And the output of step 2 is the table / VC:VirtualMachine.

    I tried to change the input type for step 3 as table / VC:VirtualMachine.

    Whenever I got the error message:

    TypeError: Cannot find the cloneVM_Task function in the DynamicWrapper (Instance) subject: [VcVirtualMachine]-[class com.vmware.vmo.plugin.vi4.model.VimVirtualMachine] - VALUE: VirtualMachine, vm-907 > "LYNC01." (Name of the dynamic Script Module: cloneVM_1 #13)

    I don't want the workflow using the VC search plugin, but I need to set the input parameter.

    If someone has an idea.

    Thank you all.

    Keep the entry for step 3 as VcVirtualmachine (only one), but add an extra step:

    2.5: get the first (or last, should not question: I hope that you will find only one :-)) table.)

    You can do it in Javascript, using the method. pop() from an array.

    var sourceVM = foundVMs.pop () / / sourceVM is of type VcVirtualMachine, foundVMs table/VcVirtualMachine

    See you soon,.

    Joerg

  • User input handling using the GUI resource string...

    I know that I can pass values in the resource string to energize the GUI. I was able to transmit values in and even create loops through several items in a listbox.

    Is it possible to add several EditText boxes to the resource string or I can only pass values to a box of EditText already contained in the resource string? For example: in my code below, I have a "myEditText: EditText {text: 'My text edit'},-" in my groupTwo. Apart from my resolution (resource string) I pass values in the res (see: / / by default). Is it possible for example to create several EditText elements in the Res based on the selection of the users on the drop-down list?

    myScript (this);

    function myScript (thisObj) {}

    var myScriptPalette = myScript_buildUI (thisObj);

    function myScript_buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ("palette", "my window name', undefined, {resizable: true}");

    {//Build GUI

    res = "group {orientation: 'row',------}.

    groupOne: group {orientation: "column,"------}

    MyButton: button {text: 'Name of button'}, \

    myCheckbox: checkbox {text: 'Checkbox'}, \

    myRadioButton: RadioButton {text: 'My Radio button'}, \

    myDropDownList:DropDownList {properties: {items: ["Item1 DD',"DD Item2","DD Item3","DD Item4"]}}, \

    myProgressBar: Progressbar {text: "Progressbar", value: 50}, \

    },\

    groupTwo: group {orientation: "column,"------}

    myIconButton: IconButton {text: 'IconButton' image: ' /Users/design2/Desktop/PanelTutorial/images/AFG.jpg'},\}

    myImage: Image {text: 'Image', image: ' /Users/design2/Desktop/PanelTutorial/images/AFG.jpg'},\}

    myStaticText: StaticText {text: 'My static text'}, \

    myEditText: EditText {text: 'My text edit'}, \

    mySlider: Slider {text: 'My Slider', value: 25}, \

    myScrollbar: scroll bar {text: 'My scroll bar', value: 50}, \

    },\

    }";

    }

    myPanel.grp = myPanel.add (res);

    Default values

    myPanel.grp.groupOne.myCheckbox.value = true;

    myPanel.grp.groupOne.myDropDownList.selection = 0;

    myPanel.grp.groupOne.myProgressBar.value = 20;

    Return myPanel;

    }

    If ((myScriptPalette! = null) & & (myScriptPalette instanceof window)) {}

    myScriptPalette.center ();

    myScriptPalette.show ();

    }

    }

    Hi Shawn, welcome to the forum. I did a little test today after your last email. This is what works to add dynamically to the user interface. The overall user interface must first be resizable with the elements follows the same path, so...

    (1) just above the back line you need to add:

    myPanel.layout.layout (true);

    myPanel.grp.minimumSize = myPanel.grp.size;

    myPanel.layout.resize ();

    myPanel.onResizing = myPanel.onResize = function () {this.layout.resize () ;}

    Return myPanel;

    }

    (2) then for the sake of simplicity we will place the current edittext area in a group...

    groupThree: group {orientation: "column,"------}

    myEditText: EditText {text: 'My text edit'}, \

    },\

    (3) then you will need to determine your list dropdown onChange function. In this case I put it to the top to add an edittext area based on the selection of the index from the drop-down list. This point we create a box, two creates two and so on.

    myPanel.grp.groupOne.myDropDownList.onChange = function() {}

    child var = myPanel.grp.groupTwo.groupThree.children [0] .size;     Grab the first dimensions edittext

    var n = myPanel.grp.groupTwo.groupThree;     Group variable

    var idx = myPanel.grp.groupOne.myDropDownList.selection.index + 1;     Index number of drop-down list selection + 1 offset 0 function array returned value.

    for (var i = 0; i)

    n.Add ('edittext', [0, 0, child.width, child.height], 'Hi');

    }

    n.Layout.Resize ();     Resizes the Group

    myPanel.grp.layout.layout (true);     Updates the layout of the items in the Group

    myPanel.grp.layout.resize ();     Resize the main window of the user interface

    n.Show ();     Reveals results

    }

    (4) I also added a button function to remove editboxes so you can see how it works.

    myPanel.grp.groupOne.myButton.onClick = function() {}

    GRP var = myPanel.grp.groupTwo.groupThree;     Group variable

    var lastKid = grp.children.length - 1;     Last child edittext in the Group

    If (lastKid! = 0) {//Making sure that the last edittext is not the original one source.

    GRP. Remove (BRM. Children [lastKid]);     Remove it

    GRP. Layout.Resize ();

    myPanel.grp.layout.layout (true);

    myPanel.grp.layout.resize ();

    GRP. Show();

    }

    }


  • date format picture ends before converting all of the input string

    In the following query, I get the error: ORA-01830: date format picture ends before converting all of the input string

    Select sum (e.gl_fig) in the rm_gl e where e.as_on_dt < = trunc (to_date('31-Nov-2011'), 'Q')-1

    Hello

    Moreover, how many days are there in November? It IS 30 or 31?

    Please change from 31-Nov-2011 to November 30, 2011, then it works.

    select sum(e.gl_fig) from rm_gl e where e.as_on_dt <= trunc(to_date('30-Nov-2011', 'DD-MON-YYYY'),'Q')- 1
    
  • How to get the full path using HTP. PRINT ("&lt;" input type = "file")...

    Hello everyone,

    I'm working on downloading the page file to another using the package HTP, but whenever I submit the form, it takes only the file name without the full path.
    for example:
    If I sent 'c:\dir\a.txt', the other page receives the parameter file as 'a.txt ".


    the code is here


    Download of the PROCEDURE (appno in varchar2, wsct in varchar2) AS



    l_real_name VARCHAR2 (1000);




    BEGIN




    HTP.htmlopen;
    HTP.headopen;
    HTP.title ("Test Upload'");
    HTP.headclose;
    HTP.bodyopen;
    HTP.header (1, 'Test Upload');
    HTP.print ('< form action = "https://ssltrng.uaeu.ac.ae/trng/document_api.upload1" method = "get" >');
    HTP.print (' download file: < input type = "file" name = "file" >)
    ');
    HTP.print ('< input type = "submit" value = "Upload" >');
    HTP.print ('< activated >');
    HTP.bodyclose;
    HTP.htmlclose;


    Download END;

    the other page see so

    file is "water lilies.jpg".

    Thank you

    Published by: dtabed on March 30, 2011 01:02

    For Internet Explorer 8 and later versions, you must set a security setting to get the full qualified path: see http://msdn.microsoft.com/en-us/library/ms535128.aspx.

    For other browsers, there could be a similar setting.

  • control of the input string to the character to character upcase?

    Is there a property or method in chain control who can change the input character upcase character?

    Try the attached VI.

    Edit: Make sure that the update while typing of property is selected.

  • SQL * more: how string manipulation on the input parameter?

    Hi people,

    I will be grateful if you could help me create a sql (NOT a bash script!) script that uses a substring of the input parameter to a file name that will be rolled up into stuff.

    example:

    -sample.sql

    which can be used as:

    -$ sqlplus/nolog @sample.sql abcd_efgh

    and the script works similar to the pseudo-code below:

    "...

    file_name = 'test_ ' | substr ("& 1 ', 6)

    name of spool file

    ...

    spool off

    "

    Thank you

    Babak

    Hello

    I found a solution:

    "

    ...

    column new_value filename filename

    Select "test_". filename substr('&1',6)

    Double;

    coil & filename

    ...

    spool off

    ..."

  • using the function - how to use the values of the input variables on the table select statement names

    Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.

    CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    )

    RETURNS INTEGER

    AS

    -Declaring variables

    v_is_true INTEGER.

    BEGIN

    SELECT

    CASE

    WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)

    THEN 1

    ON THE OTHER

    0

    END

    IN

    v_is_true

    Of

    in_schema.in_tablename

    ;

    RETURN v_is_true;

    END;

    /

    When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist

    How to use the values of the input variables on the table select statement names?

    Hello

    Here's a way you can use dynamic SQL statements for this task:

    CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    in_first_date DATE DEFAULT SYSDATE - 1,.

    in_last_date DATE by DEFAULT NULL

    )

    RETURNS INTEGER

    AS

    -IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield

    -contains all the dates in the in_first_date of the range through included in_last_date

    - and it returns 0 if there is no such lines.

    -If in_last_date is omitted, the search only the data on in_first_date.

    -If in_first_date is omitted, it defaults to yesterday.

    -Time parts of the in_first_date and in_last_date are ignored.

    -Declaring variables

    sql_txt VARCHAR2 (1000);

    v_is_true INTEGER.

    BEGIN

    sql_txt: = 'SELECT COUNT (*).

    || 'FROM ' | in_schema | '.' || in_tablename

    || 'WHERE ' | in_datefield | ' > =: d1'

    || «AND» | in_datefield | '< >

    || 'AND ROWNUM = 1';

    dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE");  -For debugging

    Sql_txt EXECUTE IMMEDIATE

    IN v_is_true

    With the HELP of TRUNC (in_first_date) - d1

    TRUNC (NVL (in_last_date

    in_first_date

    )

    ) + 1                -- d2

    ;

    RETURN v_is_true;

    END is_ydaydata_to_table;

    /

    DISPLAY ERRORS

    If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above.  In this way, you can easily see exactly what will be executed.  Comment out the call to dbms_output under test is completed.

    Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future.  For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days.  The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).

  • looking for someone to help me with this problem. "It is no set application to open the document"stream_000b.strings ". "How can I get rid of him. pls help

    I get this message when I turn my macbook pro on "there is no set of application to open the document"stream_000b.strings ". "How can I get rid of him. pls help

    Check preferences system/users and groups to see if this item is in your login items. If so, select it and use the sign less to remove.

    If she is not there, see if you can find the file by using one of these programs. If you go Finder/display/show bar path, it will show you where it is located. You can then remove it.

    EasyFind-replacement of Spotlight

    Find any file

  • Remove the flange in the POSIX path quotes

    Hello

    I use quotes from the POSIX path form for an AppleScript script to move files in arguments to a script shell (a process automator (see automator man)).

    When the process is complete, I would like to pass the result to another action, but the chain is cited like this:

    "(

    \"/Users/conmeubonailleuco/temporaire/converted/01.one way Ticket. mp3\ «»

    \"/Users/conmeubonailleuco/temporaire/converted/02.knockers.mp3\".

    )"

    Instead of:

    (

    "/Users/conmeubonailleuco/Temporaire/converted/01.One way Ticket.mp3."

    "/ Users/conmeubonailleuco/Temporaire/converted/02.Knockers.mp3".

    )

    What is the function to use to do?

    Thx a lot.

    Use code such as:

    points-2 '\"/Users/conmeubonailleuco/Temporaire/converted/01.One Way Ticket.mp3\' 2' as string

    (139074)

  • How to load path names in the following path?

    Attached VI is a routine which is supposed to act as follows:

    (1) open to manipulation and conversion.

    (2) make calculations to calculate the values of speed and displacement accel (this part not shown for simplicity).

    (3) open a new file path dialog box, which is preloaded with the path as well as by default the name of the file (from the name of the input file).

    (4) allow the option to change or add in the name of the output file (this is made possible through the help of a 2nd dialog box).

    (5) add the appropriate file name extensions and save the 3 separate files.

    What I have is a vi that asks for a file name entry, then automatically without user intervention, extensions and it records the output files.

    I need to be able to change the filname (without extension) basis before adding the correct extensions but my program does not produce a dialog box to save time.

    I am convinced that I need to create an another unique dialog for the file output and wire for all three output file writes. I can't find a way to load the default file name in the dialog box, or even install a dialog box that is displayed automatically but not shown on the screen. Vi must be run as a sub vi and be invisible to the user

    except the open file dialog box, which is a control that is passed to the sub. I think it has something to do with the nodes of property but I can't get my hands around it. Could someone help me with this?

    Please forgive the style because it's my first LV program.

    I do not understand why you find it so difficult and how you could possibly interpret my suggestion for a function on a pallet for a front panel control. If you want a single dialog box, call the file dialog box
    I have mentioned two times the function. A front panel control is not a dialog box. There
    a control. A dialog box is exactly the function on the file
    I/O > advanced file palette. If you do not want to use this
    dialog box, create your own. If you don't want to use a dialog box
    stop saying that you do.

    Here is the function dialog box:

  • Scan of the file: path/data not in the format specified in double

    Can you get it someone please let me know why it does not work?

    It's just a piece of sample code, to write data in a txt file and then read it.

    First, if a file already exists when I want to write in it and I chose 'Replace the file', he says stop and double track.

    Second, if I write a new file, it says: error 85: Scan failed. The input string does not contain data in the expected format.

    Attachment VI.

    EDIT: see post.

    Just for reference, I solved it by using the match VI pattern in a loop and then using the table of indexes for individual values.

Maybe you are looking for