How to create two string of digits of a loop counter I have?

Hello

I have a loop that loops 20 times (1.20) with the numeric variable I.

Now, I want to use this to create a switchingpath - but here I need channel "01" instead of just "1".

So, I can not only use str (i)

How can I create the prefix 0 for i 1.9?

Thank you

Str (Locals.i, "%.2d")

Tags: NI Software

Similar Questions

  • How to create the string of JSON using QVariantMap array?

    Hi all

    How to create sub string of Json using QVariantMap array?

    {
        "Test1": [
            {
                "dataTest1": "0000",
                "dataTest2": 1412,
                "dataTest3": "",
                "dataTest4": "0000",
            }
        ],
        "Test2": {
            "data1": 1412008,
            "data2": "0000",
            "data3": "A",
            "data4": "0000",
        }
    }
    

    Waiting for your answer please reply me as soon as possible.

    JSON array is QVariantList

    JSON object is QVariantMap

    then create a QVariantLsit and insert your QVariantMaps

  • How can I call Adobe? I need to talk about how to create my site and bind it to lightroom. I have creative cloud.

    How can I call Adobe? I need to talk about how to create my site and bind it to lightroom. I have creative cloud.

    The only phone support I know is not for sales, the use of programs

    You will also likely get detailed assistance in the specific forums for the programs you use

    Forum of https://forums.adobe.com/thread/1929760 to find a forum for your program list

  • How to create two independent queries report and templates?

    Hello

    I have a requirement where I have to use two queries in the data model. Now, these queries are not related and I need to display the data of these two queries in my report. Can someone let me know how to do this?

    You can create two independent sql query (Q1, Q2) and put them in the data as a different group model

  • How to compare two strings in PL/SQL

    Hi all
    I need to compare two strings, they are equal or not in PL/SQL. Y at - it a function to compare the strings.

    Yes, the sign =.

    You're after something like:

    IF v_string1 = v_string2 THEN
      ...
    ELSE
      ...
    END IF;
    

    ?

    Published by: Boneist on August 27, 2009 11:41

  • How to create unique variables for... in loop? (AS2)

    Hello

    I have a function onEnterFrame controlling all the movie clips in a table. The movement of each of these clips is controlled by a few variables - speed, acceleration, etc - that are changed on every enterFrame. I can't understand how to create unique variables for each element of the array. Now my variables are the same for all elements, and therefore the proposals of each video clip are the same.

    I used this code to add my video clips in the table:

    for (i = 0; i < starNumber; i ++) {}
    duplicateMovieClip (star, "star" + I, i);
    starArray.push (this ["star" + String (i)]);
    }

    I do a similar thing to create unique variables for each? Or is there something I need to do my loop (myClip in myArray) which is contained in my onEnterFrame function?

    I can post my code if that would help (65 lines).

    Creating unique variables is easy way out. Here's the modified code using unique variables that should solve your problem:

    var i: Number;

    var starArray:Array = [];

    var starArray_X:Array = [];

    var starArray_Y:Array = [];

    var mc:String;

    var scale: number;

    var speedXMod:Number;

    var speedYMod:Number;

    var starNumber:Number = 10;

    var minSize:Number = 15;

    var maxSize:Number = 80;

    var speed: number = 0.2;

    var minSpeed:Number = 0;

    var maxSpeed:Number = 1;

    for (i = 0; i< starnumber;="">

    duplicateMovieClip (star, "star" + I, i);

    starArray.push (this ["star" + String (i)]);

    }

    (MC starArray) {}

    starArray [mc] ._x = (Math.Random () * Stage.width);

    starArray [mc] ._y = (Math.Random () * Stage.height);

    scale = (minSize + (Math.Random () * (maxSize - minSize)));

    ._xscale starArray [mc] = scale;

    starArray [mc] ._yscale = scale;

    var startSpeedX:Number = ((Math.pow (-1, (Math.round (Math.random ())) * (minSpeed + (Math.Random () * (maxSpeed - minSpeed)));)))

    var startSpeedY:Number = ((Math.pow (-1, (Math.round (Math.random ())) * (minSpeed + (Math.Random () * (maxSpeed - minSpeed)));)))

    [mc] starArray_X = startSpeedX;

    [mc] starArray_Y = startSpeedY;

    onEnterFrame = function() {}

    (MC starArray) {}

    speedXMod = ((Math.random () * acceleration)-(0,5 * accélération));

    speedYMod = ((Math.random () * acceleration)-(0,5 * accélération));

    If (((Math.abs (starArray_X [mc] + speedXMod)) < maxspeed)="" &&="" ((math.abs(stararray_x[mc]="" +="" speedxmod))=""> minSpeed)) {}

    [mc] starArray_X += speedXMod;

    } else {}

    [mc] starArray_X = speedXMod;

    }

    If (((Math.abs (starArray_Y [mc] + speedYMod)) < maxspeed)="" &&="" ((math.abs(stararray_y[mc]+="" speedymod))=""> minSpeed)) {}

    [mc] starArray_Y += speedYMod;

    } else {}

    [mc] starArray_Y = speedYMod;

    }

    If (((starArray [mc]._x + starArray_X[mc]) > 0) & ((starArray [mc]._x + starArray_X[mc])))<>

    starArray [mc] ._x += starArray_X [mc];

    } else {}

    starArray_X [mc] * = - 1;

    starArray [mc] ._x += starArray_X [mc];

    }

    If (((starArray [mc]._y + starArray_Y[mc]) > 0) & ((starArray [mc]._y + starArray_Y[mc])))<>

    starArray [mc] ._y += starArray_Y [mc];

    } else {}

    starArray_Y [mc] * = - 1;

    starArray [mc] ._y += starArray_Y [mc];

    }

    }

    }

    }

  • How to create two accounts (different passwords / different e-mail addresses)

    From the outset, does not yet have a Surface, I am seriously considering the purchase of a.
    In fact, I still have donot have a tablet at all :-)

    I heard that - starting from 4.2.2 - Android, it is possible to create multiple accounts.
    This is important to me.

    Would like to know if it is possible with 2 surface. Meaning:
    -Two accounts
    -Two email addresses
    -Two log-in codes, according to the entered login code, either the first or the second account (environment) is launched.

    Where to find the "How to" step by step?

    Thank you!
    =

    Yes, you can add additional accounts to your Surface. You can add additional administrator, child accounts, and user accounts. Details below.

    http://Windows.Microsoft.com/en-us/Windows-8/user-accounts-frequently-asked-questions

    http://www.Microsoft.com/surface/en-us/support/security-sign-in-and-accounts/all-about-accounts

    http://www.Microsoft.com/surface/en-us/support/security-sign-in-and-accounts/sign-in-and-out-of-surface

    Hope that the above is useful.

    Sean

  • How to create two separate networks in ESX that can communicate with each other with 2 x bear?

    Hello
    Just want to know a fundamental question concerning the configuration of my ESX host of singlebox with several vswitch and two teddy bears,
    What is the definition or use of the network Label and ID of Port? Yes VLAN, I know what it's meant for the physical world.
    My goal here is to
    1. create several vSwitch with much 4 VM on the two vswitch and it communicate somehow vswitch0 and vswitch1 happen? I need to plug the switch of pNIC2 for communication can / must travel through the network cable in my ESX?
    2. how to force all traffic Vmthe in a vswitch to enter a virtual machine that runs as a router VM and then talk to the other router vswitch VM? is this possible?
    Thank you.

    I do not know if I understand perfectly, but I often have to create isolated networks.

    In this case, there is only one NETWORK card, but it works with two, one on each switch. vSwitch0 can communicate with the outside world via the vmnic0. vSwitch0 and vSwitch1 are connected by the virtual router of pfsense. The virtual machines on the portgroup private connect to the world outside and any other VM on the portgroup VM network via the pfsense router. To access computers virtual private Portgroup requires a VPN connection via the pfsense router. This is a completely isolated network. With an additional uplink on vSwitch1, you can connect to other physical devices.

  • How to concatenate two strings

    Hi all

    I have two Xml String

    <? REQUISITION_NUMBER? > and <? LINE_NO? > and values like this req_no-13091 and Line_no-2

    So how do you concatenate like this 13091-2

    I tried likethis <? REQUISITION_NUMBER | » -'|| LINE_NO? >

    But it gives error

    Thanks and greetings
    Srikkanth

    You can use

  • How to create two different smart albums with photos with the same date?

    I created a smart album by using 'Date is' and ' keyword is EAA.»  (The photos have a keyword like "EAA" or "Flower".  Photos of keyword EAA & flower have the same date.)  When I use "Corresponding to all" are has no pictures in the album.  When I use "Match any" all the photos are in the album - EAA & flower.  I would like an album with only pictures of CEA for that date and another album with photos of flower with the same date.

    I get the same answer.  I can get the date and to a key word to work with 'all' selected, but not date and keywords.  So you will need two smart albums: one with date and ECA ('all' selected) and the other with date and flowers ('all' selected).

    Use the file menu option ➙ new Smart Album.

    Report the problem to Apple via https://www.apple.com/feedback/photos.html.

  • How to create two columns of data?

    I am a dynamic form and I want my data to appear in two columns. At this moment I have a container subform text value flowed and the West. It contains two subforms instructions and tools side by side. As follows:

    ScreenHunter_02 Oct. 23 09.54.jpg

    The problem is when the data is sent, the instructions are first of all if they are in a column on the left side. Once the instructions are completed, the tools are in a column on the right side. Like this:

    instruction

    instruction

    instruction

    instruction

    tool

    tool

    tool

    tool

    How can I get to shoot at the same time, in two columns-by-side?

    Use a table like the one I showed in my example for you. In fact, you can simply use this form, import your XML code example into a data connection then simply bind the fields and the data together.

    Paul

  • How to create two employees with the same name as the vendor record?

    Hi all

    We must create a vendor for the employee record, so that we can issue pretty invoice for cash payment. If there are 2 employees with the same name, how can we create records of supplier for these 2 employees? The system does not have the name of the provider in duplicate.

    Please notify.

    Kind regards
    HY

    Hello

    In R12, it is possible to create 2 employee with the same name but with a different number.
    And it is also possible to create these 2 employees as suppliers in Payables.

    HTH,
    Vik

  • How to create two small screens on one monitor, to two search boxes different of rperform

    a need to display monitor and research 2 questions side by side almost of half of a screen at 2, as to split through the Middle so to speak... at the same time. to compare my results. Please help... it seems as if it should be pretty simple, but I'm stumpped. (sp)?  It's too late to worry the shell in my words. I hope youall are not too maticulas... hmmmm...

    I did it again!

    Hi Carolmorrow,

    ·         What version of the operating system is installed on the computer?

    If you use Windows 7, then you can use Snap to arrange windows side by side, which can be especially helpful when comparing two documents or when moving files from one place to the other.

    Arrange windows side by side on the desktop using snap

    http://Windows.Microsoft.com/en-us/Windows7/arrange-Windows-side-by-side-on-the-desktop-using-snap

    Hope this information helps.

  • How to get two strings to write to a text file

    As requested above.

    Attached is the peak of the problem I have

    Thank you

    Sorry I'm new to Labview

    Concatenate string

    Please take the free tutorials or categories of LabVIEW (free with purchase). It's Basic.

  • [ADF, JDev12.1.3] master / detail af:tables the link is handled by ExecuteWithParams: how to create a master report / detail in a loop on the lines?

    Hallo,

    I have a page with 2 legs and they both contains an af:table created by dragging an instance of VO in the user interface.

    The 1st tab uses a master VO while the 2nd uses a VO detail.

    Between 2 your, there is not a link of VO master / detail.

    Opening Details tab I update the secondary table by calling the method ExecuteWithParams of the detail VO instance (in a managed bean).

    I would now like to generate a report that loop on the master table and that, for each line of master:

    • He writes in the report;
    • loops of registration of details (which are based on the master record) and also writes the report.


    Could you kindly suggest me which is the best way to achieve that through a code to write in a managed bean?

    Here I am interested how do to loop through the data, not in how to write the report.

    Thank you

    Federico

    Yes it will affect the selected line. If you want to ignore try using this code

        DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("DepartmentsView1Iterator");
        ViewObject vo = iter.getViewObject();
        for (int i = 0; i < vo.getEstimatedRowCount(); i++)
        {
          Row r = vo.getRowAtRangeIndex(i);
          System.out.println("DeptId= " + r.getAttribute("DepartmentId"));
        }
    

Maybe you are looking for

  • Is there a way to avoid downloading the RAW in a pair RAW + Jpeg?

    Hello everyone I love how the pictures (and formerly Aperture) manages the RAW + Jpeg files. I think it is unique and no other software currently does in the same way. For those who do not know how it works: it shows the pair RAW + Jpeg, a single fil

  • How to install W8 in Mode for Lenovo Ideapad Z510 UEFI?

    Hello world I've been struggling with the w8 installation on my laptop Ideapad z510 in UEFI mode, but not I could succeed it or me I found something that might help. I will explain clearly the case. Point 1:As I understand it, for successful installa

  • Driver for HP Color LaserJet MFP Pro M PCL 6

    64-bit driver for HP Color LaserJet Pro MFP M477 PCL 6: I have one of these printers, which is able to print double-sided automatically.  The new driver (64-bit) will not accept when I switched to a new laptop, manual duplex printing.  Does anyone el

  • Problem with the microsoft SQL server installation 2016

    When I'm tryig to install MICROSOFT SQL SERVER MANAGEMENT STUDIO 2016 his watch an error like [8:21 TO 8 19(D)] [2015 12-14 T 13: 46:06] e000: MainViewModel.OnBundleAction: Bundle action failed What to do to solve this problem. ?

  • Remote management

    Remote management function are removed from the EA series Linksys Smart Wi - Fi from the Firmware?