ForLoop

Hello

We can use for loop to run the code.

How the channel names can be assigned to the variable?

Call ChnConcat("[2]/[2]","[1]/[2]")

Call ChnConcat("[2]/[6]","[1]/[2]")

Call ChnConcat("[2]/[10]","[1]/[2]")

Call ChnConcat("[2]/[14]","[1]/[2]")

Call ChnConcat("[2]/[18]","[1]/[2]")

Hi sajessh,

try to use the concatenation of strings in the expression:

for i = 2 to 18 step 4
 
Call ChnConcat ("[2] / [" & I & "]", "[1] / [2]" "" ")
 
Next

It should work.

Tags: NI Software

Similar Questions

  • ForLoop.First does not

    {% if forloop.first  %}
    <div class="item featured">
        <a href="{{url}}">
            <div class="image"><img class="img-responsive" src="/thumbnails/{{url | split:'/' | last}}.jpg
    ?Action=thumbnail&Width=360&Height=247&algorithm=fill_proportional
    " />
            </div>
        </a>
        <div class="content">
            <a href="{{url}}">
                <h1>{{title}}</h1>
            </a>
            <p>{{body | strip_html | replace: ' ', ' '}}</p>
        </div>
        <ul class="list-inline social">
            <li>
                <a href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F&t=" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i>
                </a>
            </li>
            <li>
                <a href="https://twitter.com/intent/tweet?source=http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F&text=:%20http%3A%2F%2Fwww.oneloveallequal.org{{url}}%2F"
                target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i>
                </a>
            </li>
            <li>
                <a href="https://plus.google.com/share?url=http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i>
                </a>
            </li>
            <li>
                <a href="http://www.tumblr.com/share?v=3&u=http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F&t=&s=" target="_blank" title="Post to Tumblr"><i class="fa fa-tumblr-square fa-2x"></i>
                </a>
            </li>
            <li>
                <a href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F&description=" target="_blank" title="Pin it"><i class="fa fa-pinterest-square fa-2x"></i>
                </a>
            </li>
            <li><a href="mailto:?subject=&body=:%20http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F" target="_blank" title="Email"><i class="fa fa-envelope-square fa-2x"></i></a>
            </li>
        </ul>
        
    </div>
    {% else %}
    <div class="item">
        <a href="{{url}}">
            <div class="image"><img class="img-responsive" src="/thumbnails/{{url | split:'/' | last}}.jpg?Action=thumbnail&Width=360&Height=247&algorithm=fill_proportional"
                />
            </div>
        </a>
        <div class="content">
            <a href="{{url}}">
                <h1>{{title}}</h1>
            </a>
            <p>{{body | strip_html | replace: ' ', ' '}}</p>
        </div>
        <ul class="list-inline social">
            <li>
                <a href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F&t=" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i>
                </a>
            </li>
            <li>
                <a href="https://twitter.com/intent/tweet?source=http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F&text=:%20http%3A%2F%2Fwww.oneloveallequal.org{{url}}%2F"
                target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i>
                </a>
            </li>
            <li>
                <a href="https://plus.google.com/share?url=http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i>
                </a>
            </li>
            <li>
                <a href="http://www.tumblr.com/share?v=3&u=http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F&t=&s=" target="_blank" title="Post to Tumblr"><i class="fa fa-tumblr-square fa-2x"></i>
                </a>
            </li>
            <li>
                <a href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F&description=" target="_blank" title="Pin it"><i class="fa fa-pinterest-square fa-2x"></i>
                </a>
            </li>
            <li><a href="mailto:?subject=&body=:%20http%3A%2F%2Fwww.oneloveallequal.org{{url }}%2F" target="_blank" title="Email"><i class="fa fa-envelope-square fa-2x"></i></a>
            </li>
        </ul>
        
    </div>
    
    
    {% endif -%}
    

    Doesn't seem to work - an overview of what I can do. I just want the object class is displayed once.

    IF you want to get the first element of a collection, then you just get the data as...

    {{collection.items [0] .name}}

  • Forlooping AS3 for buttons help

    I can't create a Forloop structure for my lines of code

    Button1.addEventListener (MouseEvent.CLICK, mybtn1);

    function mybtn1(evt:MouseEvent):void

    {

    var theMC:mc1 = new mc1();

    addChild (myMC);

    }

    Button2.addEventListener (MouseEvent.CLICK, mybtn2);

    function mybtn2(evt:MouseEvent):void

    {

    var theMC2:mc2 = new mc2();

    addChild (myMC2);

    }

    Button3.addEventListener (MouseEvent.CLICK, mybtn3);

    function mybtn3(evt:MouseEvent):void

    {

    var theMC3:mc3 = new mc3();

    addChild (myMC3);

    }

    How to forloop these lines of code?

    I tried

    for (var i: int = 0; i < 3: i ++)

    {

    Button (i) .addEventListener (MouseEvent.Click, mybtn (i));

    function mybtn (i) (evt:MoustEvent): void

    {

    var theMC (i): mc (i) = new mc (i);

    addChild (myMC, (i));

    }

    but there are errors

    The code that was provided is very close to work properly.  Try adding "' before the brackets, as in...

    This ["button" + i] .iValue = i;

    This ["Button" + i] .addEventListener (MouseEvent.Click, onClickFunction);

  • To access the ForLoop meter in XSL map?

    Hello

    I use BPEL 2.0 and looking for a way to access my for loop inside XSL counter variable turn card, no idea how I can get?

    Thank you

    Hello

    In the bpel source code follow:

    Ora:doXSLTransformForDoc (' xsl/Transformation_1.xsl', bpws:getVariableData('Variable_1'), 'against', $counter)

    In the XSLT source code add (before the game to model)

    The value of the counter is now available as $counter inside the XSLT...

    See you soon,.

    Vlad

  • ForLoop control

    for (i = 0; i < _root.myArray.length; i ++)
    {
    _root.searchAndDestroy ();
    }

    How to make the loop for continuous only after _root.searchAndDestroy (); has completed its task?

    While you are not using a for loop to do this because there is no break it.  You must build a programmatic loop where this function becomes a part of the loop, somehow trigger itself to be still called function followed some incremented value.

  • XTEA encryption problems

    I'm trying to implement the XTEA encryption for a project, but the values that I receive does not correspond really. Is there a known problem with this implementation

    http://www.NI.com/white-paper/7520/en/

    I managed to solve the problem. The encryt implementation, mentioned in vi is false, and all you have to do is to remove the forloop and send data directly key.

  • filter init/cont for an option several signals

    Hello

    I have a table 2D with signals from a device of data acquisition, now I want to do a high-pass and low-pass filter for all signals, and each signal can have it's own high and low pass filter settings, and I can have any number of signals. When I connect my 2D array in a loop and place a filter inside with the init/cont option to true, it resets every loop pass. When I extracted a single signal and pass through the filter it works fine. But this isn't what I want, I want to have signals more filtered in different ways. I think I understand why he restarts, in the help file for the filter it is said: If set to TRUE, init/cont LabVIEW Initializes internal States for the final States of the previous call to this instance of this VI. So that means that each RollBar to pass, there are different data but the same instance... I wish I had different instances for each (for loop) switch. Records snippets of code and its results:

    Any ideas?

    Best regards

    Thijs

    Hello

    I already solved!

    See VI

    The FilterState must be initialized, or else the forloop does not work...:

  • Exclude an iteration

    Hello.

    I must exclude a value of a forloop, and I did not how to...

    I made an example of what I want to do on the vi that I join

    Explanation:

    When the iteration 5 appears, we go straight to the value 6 without taking care of what we are supposed to do to the value 5.

    Thank you

    Peter Saraiva wrote:

    The Subvi has some settings which is the address of the device. The device at address 6 is missing, so I don't want to call him jump so the #6 iteration.

    Maybe like this?

    Also:

    • Your lower loop consumes 100% CPU while doing nothing. He needs a small wait
    • The sequence of 8 images turn into a state machine.
    • etc.
  • is it posible to get the iteration on a Subvi?

    Hello

    is it possible to get the real iterationcycle of a forloop or whileloop on a Subvi in vi?

    How could I solve this problem?

    Chris

    Everything good?

  • Motor control with time delay


    Hello!

    If I understand you is good, this might help you. It is created in LV2010

    Note that you must put in logic before you run the forloop, since the trip from 0 mm and 0 mm resolution is not a good thing to run.

  • How can I place a structure on another structure while keeping in - and the son intact?

    I would like to cover 2 Structure Structure 1, while all sons- and automatically adjusts and crosses the border of the Structure 2. Is it possible - or what I need to manually remove all the wires, then place the structure 1 inside the Structure 2 and finally thread manually all the wires yet :-(?

    Hello!

    It works for me, LV2011. You must select forloop in your control panel, and then draw it around the forloop you've already got there. Impossible to draw two forloops and then just move on the other. It will not work with the son.

  • How to display different sine waves in a table and do a fft of these and display them in a chart?

    How can I cannect my mathscript output SIgnal of VI entry spectral measures. I have a problem since the release of the mathscript "D" file is 2D DBL. I don't know how to convert such data in order to be logged at the entrance of the signal of the VI of spectral measures. I also want that the waveform graph connected to the output of the VI measures spectral, display the FFT of three sine waves in a chart.

    Do not connect. Just go to Forloop.

  • How can I change the name of several places in a graph/chart. (programmaticly)

    Heey everybody, title says it all.

    I already tried to use active plot with a forloop, but for some reason any who does not work for me: s

    Order the image contained in the annex, which explains my problem.

    In the diagram, you will see a stringarray:

    0 = name 1,

    1 = name 2 and

    2 = name 3.

    For some reason some wack the plotnames appear in a different order. Also to order the program using debug, then you will understand directly what is my problem.

    Thank you!

    Just a quick suggestion:
    Reverse the order. Put the "active conspiracy" on top, then change the name of the parcel.

    That should do the trick.

  • problem while sorting a datamodel

    Hello guys,.

    I declared and initialized my QListDataModel

    bb::cascades::QListDataModel* m_model;
    

    and I am trying to sort as follows:

    void ClassName::sortByPriceLowToHigh()
    {
        int selected;
            for(int i=0;isize()-1;i++)
            {
                selected=i;
                for(int j=i+1;jsize();j++)
                {
                    if(/*condition according to ASC or DESC*/)
                    {
                        selected=j;
                    }
                }
                if(selected!=i)
                {
                    m_model->swap(i,selected);
                }
    
            }
    }
    

    on paper, this code works fine.

    but when I run it swaps the m_model in the first iteration of i's for loop, but in the second iteration the values remain the same as it was at the beginning of the i's forloop...

    can someone tell me where I am doing wrong?

    Sorry guys, that was my mistake in the buisness that logical... code above works fine.

    Sorry

  • Support for synchronization of threads?

    Hello

    Here is the code for sending works fine mms.it for a single connection.

    When I am trying to send multiple single mms is sent.

      public void sendMMS(final String url)
        {
            Thread thread=new Thread()
            {
                public void run()
                {
                    try
                    {
                            synchronized (url) {
                                messageConnection=(MessageConnection)Connector.open(url);
                            }                   
    
                    }
                    catch (Exception e) {
                    }
                    if(messageConnection==null)
                    {
                        Dialog.alert("MessageConnection Null");
                    }
                    int counter=0;
                    try
                    {
                        MessagePart messagePart;
                        multipartMessage=(MultipartMessage)messageConnection.newMessage(MessageConnection.MULTIPART_MESSAGE);
                        String time=String.valueOf(System.currentTimeMillis());
                        multipartMessage.setHeader("X-Mms-Delivery-Time",time);
                        multipartMessage.setHeader("X-Mms-Priority","high");
    
                        multipartMessage.setSubject("Greeting Card");
                        String encoding="UTF-8";
                        byte[] textMsgBytes = textObj.textArea.getText().getBytes(encoding);
    
                        messagePart=new MessagePart(textMsgBytes,0,textMsgBytes.length,"text/plain","id"+counter,null,encoding);
                        multipartMessage.addMessagePart(messagePart);
                        counter++;
    
                        String mimeType="image/jpg";
                        Bitmap image=textObj.imageObj.originalImage[i];
                        PNGEncodedImage encodedImage=PNGEncodedImage.encode(image);
                        byte[] contents=encodedImage.getData();
                        messagePart=new MessagePart(contents,0,contents.length,mimeType,"id"+counter,null,null);
                        multipartMessage.addMessagePart(messagePart);
    
                        counter++;
    
                        if(multipartMessage!=null)
                        {
                            messageConnection.send(multipartMessage);
                        }
                    }catch (Exception e) {
                        System.out.println("Exception From sendMMS"+e);
                    }
                    finally
                    {
                        try
                        {
                            if(messageConnection!=null)
                            {
                                messageConnection.close();
                            }
                        }
                        catch (Exception e) {
                            System.out.println("Exception From finally"+e);
                        }
                    }
                }
    
            };
            thread.start();
        }
    

    I'm the forloop that appellant

    for(int i=0;i
    

    If someone can tell me how I should do this code for several mms work.

    thankx.

    My problem has been resolved.

    I have simply apply a method synchronized to the thread object.

    thankx.

Maybe you are looking for

  • Network connection problems...

    So I have the iPhone 6 Plus.  I work in a call (a little pre framing) Center.  For the last year, things have been fine with my phone use at work, get alerts, messages, emails, etc.  But; here in the last 2-3 months I can say with certainty that I wa

  • Can not correct 'incompatibility of cookie.

    use a web page to about 2 months of access email through google mail. Now open in Explorer. Have you tried the suggestions online to solve the incompatibility of cookie: clear memory cache but has not worked. Tried to uninstall and reinstall Moxilla

  • What is the best approach to the conversion of the LV7.1 tags to the variables shared by several screws LV2012?

    What is the best approach for the upgrade of the DSC-LV2012/LV7.1/DSC static variable tags in several screws running on several platforms? Our system is made up of about 5 PC running Windows 2000/LV7.1 DURATION, the more a PLC and a PDC running XP/SP

  • graphics and pictures blurry

    Why are all the pictures and graphics on my screen so grainy and blurry? I set the resolution as high as possible, but it doesn't change anything. I have windows XP Edition family and internet explore worm. 8. it is also, I have service pack 3, which

  • Test Menu in 6.0 Android (Marshmallow)

    Hey guys. So, I installed the new update of Marshmallow in my Xperia Z3 and now when acess the Test menu 'hidden' (* #4636 #*), info baterry appearing are no longer there. Can anyone confirm this? Or it's just a bug in my Marshmallow?