Is it possible possible to exist from FOR loop while executing

Hi
Like break in C, is it any method available in LabVIEW to exist from a FOR LOOP while executing.
thanks in advance

No. You have to use a while loop.

Similar Messages

  • Is it possible to send songs from, for example a samsung  using Bluetooth. If not, does anyone know a free app or something were i can download fre music. Ps exuse My english hope you'll understand����

    Is it possible to send songs from, for example a samsung  using Bluetooth. If not, does anyone know a free app or something were i can download free music.
    Ps exuse My english hope you'll understand 

    The only way to get songs on an iPhone is by synching the songs from your iTunes library, or purchasing them from the iTunes store on your phone.
    You can search yourself for sites that offer free music.

  • The Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.   I'm looking for a possibility to use the iPad for photography while traveling, without

    the Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.
    I'm looking for a possibility to use the iPad for photography while traveling, without the access to a computer.
    Shooting photo's in RAW format crates pretty big files that will fill up the iPad's memory pretty fast if you shoot a lot during a (let's say) month long trip.
    my idea was to use load the photo's to the iPad so i could view them and sort out any bad ones. then copy them over to the storage device so i can continue using my CF cards for shooting. I have an image thank for copying the photo's directly to the HDD but it would be so sweet to be able to check them on the iPad before hand.
    any suggestions?

    Check out pogo plug device, it allows you to upload camera roll via wifi.

  • How to get updated values from the loops while they are running

    Hello,
            I am having difficulty solving a very basic problem, how to access the updated values from the 'FOR loop' while its running?  Basically, the VI  I am currently working on calls two sub VIs. Each sub VI has a for loop, and both VIs may or may not run for same number of iterations. My goal is to read the values at each terminal inside the loop of both sub VIs, in the Main VI. I tried to achieve it using Global Variables, but in main VI it displays only the last iteration value from both sub VIs. Could anyone please tell me whrere am I going wrong? Is there any other/better way to achieve this.
    I appreciate any input on this issue.  
    Kudos are (always) welcome for the good post. :-)
    Solved!
    Go to Solution.

    Dennis,
                In attached VI, I can see the values changing in the sub VI from the main VI with the numeric indicator whose reference is passed on to the sub VI. Now if I wanted to store or use those values how do I do that? I tried to chnge the indicator to control and read from it (in the attached VI) , but the the indicator updates only once. Tried to create a property node and read the Value from it and it didn't work either.
    Thanks in Advance!
    -Nilesh
    Kudos are (always) welcome for the good post. :-)
    Attachments:
    main-1.vi ‏8 KB
    sub-1.vi ‏9 KB

  • Display text in label from 'for loop'

    Hi
    I'm new to Java, in fact so new just started yesterday.
    I'm trying to display all the values from a for loop into a label control in my application.
    Problem is, its only displaying the last number. Can anyone please help.
    Thanks
    George
    --------------------------------------------Code----------------------------------------------
    int lottoNumbers1 = Integer.parseInt(txtLotteryNumbers1.getText());
            int lottoNumbers2 = Integer.parseInt(txtLotteryNumbers2.getText());
            int lottoNumbers3 = Integer.parseInt(txtLotteryNumbers3.getText());
            int lottoNumbers4 = Integer.parseInt(txtLotteryNumbers4.getText());
            int lottoNumbers5 = Integer.parseInt(txtLotteryNumbers5.getText());
            //int lottoNumbers6 = Integer.parseInt(txtLotteryNumbers6.getText());
            int arrUserInput[] = {lottoNumbers1, lottoNumbers2, lottoNumbers3, lottoNumbers4, lottoNumbers5};
            int arrRnd[] = new int[5];
            Random rnd = new Random();
            for (int i = 0; i < arrRnd.length; i++) {
                arrRnd[i] = rnd.nextInt(49);
            boolean isfound = false;
            for (int i = 0; i < arrUserInput.length; i++) {
                isfound = false;
                for (int j = 0; j < arrRnd.length; j++) {
                    if (arrUserInput[i] == arrRnd[j]) {
                        isfound = true;
                if (isfound) {
                    //System.out.println("Same Numbers again : " +arrUserInput[i]);
                    String numbers = Integer.toString(arrUserInput[i]);
                    int res = NumberCount.wordcount(numbers);
                    //System.out.println("Number of matches : " +res);
                    switch (res) {
                        case 1:
                            lblNumbersEntered.setText("You matched 1 number " + arrUserInput[i] + " and win nothing");
                            System.out.println("Number of matches : " +res);
                            break;
                        case 2:
                            lblNumbersEntered.setText("You matched 2 number " + arrUserInput[i] + " and win £2");
                            System.out.println("Number of matches : " +res);
                            break;
                        case 3:
                            lblNumbersEntered.setText("You matched 3 number " + arrUserInput[i] + " and win £10");
                            System.out.println("Number of matches : " +res);
                            break;
                        case 4:
                            lblNumbersEntered.setText("You matched 4 number " + arrUserInput[i] + " and win £50");
                            System.out.println("Number of matches : " +res);
                            break;
                        case 5:
                            lblNumbersEntered.setText("You matched 5 number " + arrUserInput[i] + " and £1000");
                            System.out.println("Number of matches : " +res);
                            break;
                        default:
                            lblNumbersEntered.setText("You have matched no numbers");
                            System.out.println("Number of matches : " +res);
                            break;

    If you want a complete history of each time you go through the loop, you have to construct the history:
    [code]
    myLabel.setText("This");
    MyLabel.setText(" is");
    myLabel.setText(" good");
    [/code]
    myLabel will contain only " good", since that is what myLabel was set to last, but if you want the history:
    [code]
    myLabel.setText("This");
    MyLabel.setText(myLabel.getText() + " is");
    myLabel.setText(myLabel.getText() + " good");
    [code]
    Should give you "This is good", as each time the contents of myLabel are retrieved and appended before myLabel is given the new set value.

  • Graph from For Loop

    hello,
    I have a problem with one of my applications I am developing.
    I calculate a timeSeries and I need to graph it on linechart. The timeSeries is calculated through an iteration of For Loop
    I have tried to write in an array, but it didn't work since I can only take one value.
    I tried to write the value in a datagrid but that didn't work either!
    not because it is impossible, but because I am an idiot
    http://alimsyed.com

    Hi Dimitris,
    Thanks for the post and I hope your well today.
    You can achieve this by using a reference of the graph from the main VI, pass it to the subVI vi and use a property node to update the graphs value. 
    I have attached an edit of your code to show this, labVIEW 8.6. 
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!
    Attachments:
    mainVI.vi ‏9 KB
    subVI.vi ‏13 KB

  • Pick up specific indices from for loop

    hi guys , 
    i have a for loop with N = 60 , i'm trying to make something when the index (i) reachs specific number , the indecies i'm interested in are
    1 ,5 , 9,13, 17, 22, 26, ,30,34,38,43,47,51,55,59
    the difference is 4 in some of them but it changes to 5 @ 22 and 43 and come back to 4 in between .
    can anybody help me pick up these indecies ?
    Solved!
    Go to Solution.

    Why would you need a mathematical formula?
    What is a "boolean variable"? In the context of LabVIEW, you need to explain in more detains what you mean )
    I would just do something similar to the following (The second loop will iterate 60 times):
    Note that the parts on the left will be folded into a single boolean array constant at compile time, so there is no overhead during execution.
    (You can also do it all in a single loop. try it. )
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    IrregularSelection.png ‏16 KB

  • Error from bex query while executing in portal

    Dear Experts,
    while executing the query bex analyzer, is working ok but the same query when executing in portal is throwing the following error:
    error message:
    The initial exception that caused the request to fail was:
    Termination message sent
    ABEND RS_EXCEPTION (000): The argument '0,01' cannot be interpreted as a number
      MSGV1: The argument '0,01' cannot be interpreted as a
      MSGV2: number
    Messages
    ABEND: The argument '0,01' cannot be interpreted as a number
    ABEND: An exception with the type CX_SY_CONVERSION_NO_NUMBER occurred, but was neither handled locally, nor declared in a RAISING
    ABEND: Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    I tried to find from existing blogs but did not get suggestions for similar issue.
    Coud some be kind enought to analyse this error.
    Inputs will highly been appreciated
    Thanks in advance,

    Hi,
    Here I tried retransporting the depended bex queries accross the landscape.
    Now the reports are OK from the Portal.
    Thanks,
    Mannu

  • How to remove data from a loop while loop is still processing

    we are looking to have data continue to stream out of a loop while the loop is still continuing before it is stoped.

    This would be contradictory to dataflow.
    If you need loop data elsewhere in the code while the loop is running, you have many possible solutions (queues, functional globals, locals variables, etc.). Please explain in a bit more details what you want to do. Do you have processes running in parallel? Where should the loop data "flow" exactly?
    LabVIEW Champion . Do more with less code and in less time .

  • System is asking for password while executing t.code RSUDO

    Hi
    While executing t.code RSUDO ( Execute as user with restricted authorizations) on behalf of other user, system is asking for password.
    Can you tell the reason for it?
    System is BW 731.
    Thanks
    Saurabh

    Hi
    I had the same problem.
    What solved it for me was to add authorizations in PFCG for one of my roles
    The autorisation is : "Execution of transaction RSUDO without password"
    Heres what I added in PFCG:
    Authorization obj: R_SEC
    RSECADMOBJ:   RSUDO
    RSECADMVAL:   *
    ACTVT:                16
    Hope it will solved your problem.
    Robin

  • What is the best way to pass a controllin​g signal out of a sub vi or more than one layer of for loop, while the sub vi or for loops are still running?

    I have a vi that runs through two for loops and a while loop, then after a certain number of iterations on the inner while loop it is supposed to pass a trigger to a case stucture to start measurement. I have tried using a local variable attached to a boolean control which in turn is attached to the true case of the case structure involving the measurement sub vi. What is happening is that the boolean control will light on the front panel at the correct # of iterations in the while loop, as if true, but the measurement is not taken, and the boolean control never goes back to false. It remains lit. Am I u
    sing the local variable incorrectly? If so, where am I going wrong.
    Attachments:
    GL_Flicker.vi ‏118 KB
    Take_Measurements.vi ‏147 KB

    Hello planar,
    There are multiple ways to pass control information between loops and VIs and each one has its place. For simple VIs like your example, a local variable will be fine.
    The main reason the subVI is not running is that the case structure is not continuously polling the Boolean control. This is because the case structure is not inside a loop and as such will only read the Boolean value once and execute once. Encasing the case structure and control inside the while loop should solve the issue of the subVI not running.
    You may find the following links of help in creating more robust and advanced VI architectures.
    Application Design Patter
    ns: Master/Slave
    LabVIEW Application Design Patterns
    Keep up to date on the latest PXI news at twitter.com/pxi

  • Problem  in out from for loop

    Here i drew connect four board game which has 6 row and 7 columns . There is an additional row appear . How can i out from loop to not draw seven rows. ??
    import java.awt.Dimension;
    import javax.swing.JFrame;
    public class TestNet extends JFrame {
        private DrawingNet drawingNet;
        public TestNet() {
            drawingNet = new DrawingNet();
            getContentPane().add(drawingNet);
        public static void main(String[] args) {
            TestNet testNet = new TestNet();
            testNet.setDefaultCloseOperation(TestNet.EXIT_ON_CLOSE);
            testNet.setSize(new Dimension(600, 300));
            testNet.setLocationRelativeTo(null);
            testNet.setVisible(true);
            testNet.setExtendedState(MAXIMIZED_BOTH);
    import java.awt.Color;
    import java.awt.Graphics;
    import javax.swing.JPanel;
    class DrawingNet extends JPanel {
        private int X_START = 100, Y_START = 100, DISTANCE = 0;
        private static final int ROW = 6, COL = 7;
      //  private final int[][] arrayNet;
        public DrawingNet() {
        //    arrayNet = new int[ROW][COL];
        @Override
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.setColor(Color.BLACK);
            for (int c = 0; c < COL; c++) {
    //            if (c ==7 ) {
    //                break;
                for (int r = 0; r < ROW; r++) {
    //                if (r == 5) {
    //                    break;
                    g.drawLine(X_START, Y_START + DISTANCE, X_START * COL, Y_START + DISTANCE);
                    g.drawLine(X_START + DISTANCE, Y_START, X_START + DISTANCE, Y_START * ROW);
                DISTANCE += 100;
    }Thanks

    if you compile my code you will see board consist of 6 row and seven column but there is seven row under the board i want not draw this
    how can i stop loop from drawing this row ??
    i do like this but also it is appear:
        @Override
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.setColor(Color.BLACK);
            for (int c = 0; c < COL; c++) {  // col from 0 to 6  (7 columns)
                for (int r = 0; r < ROW; r++) {  // row from 0 to 5  (6 rows)
                    g.drawLine(X_START, Y_START + DISTANCE, X_START * COL, Y_START + DISTANCE);
                    g.drawLine(X_START + DISTANCE, Y_START, X_START + DISTANCE, Y_START * ROW);
                    if (r == 6) {  // the  goal from this to not draw  the seven row
                        continue;
                DISTANCE += 100;
        }Many thanks .
    Edited by: beshoyatefw on Mar 21, 2010 6:18 AM

  • Exclude from for loop

    Hi,
    I have this script and error :
    Declare
    Cursor C1 is
    select d.product_code,b.responsibility_key from FND_USER_RESP_GROUPS_ALL a,fnd_responsibility b,fnd_user c,fnd_application d
    where a.user_id = c.user_id
    and a.responsibility_id = b.responsibility_id
    and b.application_id = d.application_id
    and c.user_name ='SYSADMIN'; -- user you want to copy
    v c1%rowtype;
    BEGIN
    for v in c1 loop
    FND_USER_PKG.AddResp('MYUSER',v.product_code, v.responsibility_key,
    'Standard', 'DESCRIPTION', sysdate, null);
    end loop;
    END;
    ERROR at line 1:
    ORA-20001: APP-FND-02604: Invalide data
    APPLICATION_SHORT_NAME=OE, RESPONSIBILITY_KEY=ORDER_ENTRY_SUPER_USER,
    SECURITY_GROUP=Standard.
    ORA-06512: Ó "APPS.APP_EXCEPTION", ligne 70
    ORA-06512: Ó "APPS.FND_USER_PKG", ligne 2140
    ORA-06512: Ó ligne 11
    How can I exclude the case RESPONSIBILITY_KEY=ORDER_ENTRY_SUPER_USER,in my for v in c1 loop ? For example :
    if v.responsibility_key=ORDER_ENTRY_SUPER_USER then go to next.
    Many thanks.

    If I have understood it correctly...
    If you dont want to see this value at all, then probably by adding this condition to where clause of the select query (of the cursor). Or trying out something with parameterised cursors.
    Sidhu
    Message was edited by:
    Sidhu

  • Difficulty continuing past exception in a for loop while parsing XML

    Hola -
    I've got an issue where (in this case) Turkish characters cause XML parsing to fail; I'm trying to insert an exception here so that any given XML element which causes a problem will simply be skipped & I can figure out the issue later. But if I place it outside, as presented below, then the entire file does not get written rather than simply that element being skipped. My other attempts have resulted in compiler errors indicating I've misplaced it, such as:
    Error(61,6): PLS-00103: Encountered the symbol "EXCEPTION" when expecting one of the following: begin case declare end exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe
    Can I get this to drop processing of only the specific problem element & return to complete the entire file?
    Many thanks for any help here, greatly puzzled by this.
    create or replace
    PROCEDURE "RSSLOOPWORKS2" ( fund_in IN VARCHAR2)
    is
    -- customizable parameters
    l_title varchar2(255) := ' New Titles Since ' || to_char(sysdate - 90, 'MM/DD/YYYY');
    l_link varchar2(255) := 'replace' || fund_in || '.rss';
    l_description varchar2(255) := 'This is a feed of changes to items ' || fund_in;
    l_language varchar2(255) := 'en-us';
    -- end customizable parameters
    l_version varchar2(10) := '2.0';
    l_clob clob;
    l_idx pls_integer := 1;
    l_len pls_integer := 255;
    l_defrows pls_integer := 100;
    l_maxrows pls_integer := 100;
    l_desclen pls_integer := 250;
    -- for output to file
    begin
    -- fund := fund_in;
    for i in (
    select xmlelement( "rss",
    -- Begin XML Header Block
    xmlattributes( l_version as "version"),
    xmlelement( "channel",
    xmlforest( l_title as "title",
    l_link as "link",
    l_description as "description",
    l_language as "language"),
    -- End XML Header Block
    -- Begin List of Individual Articles or Items
    xmlagg(
    xmlelement( "item",
    CASE
    WHEN x.title IS NOT NULL THEN xmlelement("title", x.title)
    ELSE xmlelement("title", substr(x.description,1,255))
    END,
    xmlelement("link", x.link),
    xmlelement("description", x.description || ' -- Call number: ' || x.callnum),
    xmlelement("callnum", x.callnum),
    xmlelement("pubDate", to_char(x.updated_on,'Dy, DD Mon RRRR hh24:mi:ss') || ' EST'),
    xmlelement("guid", XMLATTRIBUTES('false' as "isPermaLink"),x.id||to_char(x.updated_on,'JHH24MISS'))
    -- End List of Individual Articles or Items
    ) as result
    from ( -- Actual Database Query that populates the list of Items
    select id,title,link,description,updated_on, callnum
    from drx_rss_feeds
    where (fund like fund_in||'%')
    and rownum < (l_maxrows+1)) x)
    loop
    l_clob := xmltype.extract(i.result,'/').getclobval;
    exit;
    end loop; --i
    --- EXCEPTION
    exception
    WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE(dbms_utility.format_error_backtrace);
    --- OUTPUT RESULTS
    -- for i in 1..ceil(dbms_lob.getlength(l_clob)/l_len) loop
    dbms_xslprocessor.clob2file(l_clob, '/iiidb/http/live/screens/rss/', fund_in || '.rss');
    -- l_idx := l_idx + l_len;
    -- end loop; --i
    end rssloopworks2;

    To clarify, I know the practice should be to separate out statements so that the next statement can execute; however, inside of the loop, I haven't been able to correctly accomplish this. When I try to add a block inside the loop over 'result' then the procedure compiles & runs, but I haven't gotten an error and there is not output.
    create or replace
    PROCEDURE "RSSLOOPWORKS2" ( fund_in IN VARCHAR2)
    is
    -- customizable parameters
    l_title varchar2(255) := ' New Titles Since ' || to_char(sysdate - 90, 'MM/DD/YYYY');
    l_link varchar2(255) := 'replace' || fund_in || '.rss';
    l_description varchar2(255) := 'This is a feed of changes to items ' || fund_in;
    l_language varchar2(255) := 'en-us';
    -- end customizable parameters
    l_version varchar2(10) := '2.0';
    l_clob clob;
    l_idx pls_integer := 1;
    l_len pls_integer := 255;
    l_defrows pls_integer := 100;
    l_maxrows pls_integer := 100;
    l_desclen pls_integer := 250;
    -- for output to file
    begin
    -- fund := fund_in;
    for i in (
    select xmlelement( "rss",
    -- Begin XML Header Block
    xmlattributes( l_version as "version"),
    xmlelement( "channel",
    xmlforest( l_title as "title",
    l_link as "link",
    l_description as "description",
    l_language as "language"),
    -- End XML Header Block
    -- Begin List of Individual Articles or Items
    xmlagg(
    xmlelement( "item",
    CASE
    WHEN x.title IS NOT NULL THEN xmlelement("title", x.title)
    ELSE xmlelement("title", substr(x.description,1,255))
    END,
    xmlelement("link", x.link),
    xmlelement("description", x.description || ' -- Call number: ' || x.callnum),
    xmlelement("callnum", x.callnum),
    xmlelement("pubDate", to_char(x.updated_on,'Dy, DD Mon RRRR hh24:mi:ss') || ' EST'),
    xmlelement("guid", XMLATTRIBUTES('false' as "isPermaLink"),x.id||to_char(x.updated_on,'JHH24MISS'))
    -- End List of Individual Articles or Items
    ) as result
    from ( -- Actual Database Query that populates the list of Items
    select id,title,link,description,updated_on, callnum
    from drx_rss_feeds
    where (fund like fund_in||'%')
    and rownum < (l_maxrows+1)) x)
    loop
    BEGIN
    l_clob := xmltype.extract(i.result,'/').getclobval;
    exit;
    exception
    WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE('oi');
    END;
    end loop; --i
    --- EXCEPTION
    exception
    WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE(dbms_utility.format_error_backtrace);
    --- OUTPUT RESULTS
    -- for i in 1..ceil(dbms_lob.getlength(l_clob)/l_len) loop
    dbms_xslprocessor.clob2file(l_clob, '/iiidb/http/live/screens/rss/', fund_in || '.rss');
    -- l_idx := l_idx + l_len;
    -- end loop; --i
    end rssloopworks2;

  • Prevent BeX Analyzer from stealing focus while executing several queries

    Hi all,
    we have a vba program that runs several 3.5 queries in Excel (SAPBEXrefresh)
    Does anyone knows a solution to prevent BeX Analyzer from stealing the focus each time a new query starts or completes.

    I too am trying to find solution to this very same problem.
    I created a Excel VBA program to batch process BEx reports, which works great, but the users are finding that they can't work on anything else while the process runs, as BEx always returns the focus to the Excel window as each BEx report run is completed!
    In our googling, we ran across the following thread, which I've found so far to have the most detailed discussion of this problem:
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/sapbex-takes-focus-1188178?cv=expanded
    Unfortunately, no final resolution was provided there, and the thread is over 2 years old, and it looks like the poster who was closing in on the solution hasn't logged in to that particular forum in 2 years as well.
    But why don't you take a look at the link anyway, as it may give you some ideas. I will also continue to use that poster's ideas to try to work out a solution, and if I come across one, I will certainly share it with you.

Maybe you are looking for