LOOP out

Hello

I'm a little confused in the operation of output...

I have a loop & inside I have a Begin-End block that I wrote the output...

<... Example of... >

LOOP

BEGIN

/ * Some statements * /.

/ * Some statements * /.

/ * Some statements * /.

EXCEPTION

- And here written m only out

EXIT;

AT THE END:

END LOOP;
---------------------------------------------------------------------------

So here's what happens... will he simply leave the Begin-End block... Or he'll break out of the LOOP... I wrote it OUT in section exceptions.

It will come out side of the loop and you can check that easily with a small test case.

SQL> DECLARE
  v_name emp.ename%TYPE;
BEGIN
  LOOP
    BEGIN
      SELECT ename INTO v_name FROM emp WHERE empno=7369;
      dbms_output.put_line('EmpName:'||v_name);
      --I know there is no employee with 7399, So it will generate exception
      SELECT ename
      INTO v_name
      FROM emp
      WHERE empno=7399;
      dbms_output.put_line('EmpName:||v_name');
    EXCEPTION
    WHEN no_data_found THEN
      dbms_output.put_line('Inside exception');
      EXIT;
    END;
    dbms_output.put_line('Will it just exit from begin-end block?');
  END LOOP;
  dbms_output.put_line('Outside Loop');
END;   2    3    4    5    6    7    8    9   10   11   12   13   14   15   16   17   18   19   20   21   22
 23  /
EmpName:SMITH
Inside exception
Outside Loop

PL/SQL procedure successfully completed.

SQL> 

Tags: Database

Similar Questions

  • Node inside the loop - out of memory

    Hello world

    I have a Mathscript node inside a Subvi is called inside a loop for. After a few iterations of the loop, I run out of memory. That's why I added another node in Mathcript with the function 'clear' outside the Subvi, hoping that after I get the variables from the node I could erase the memory of the Mathscript, but this does not work, it is always short of memory.  Is anyone know how can you delete variable memory Mathscript node, once they were saved in the variables in Labview? Thanks in advance.

    You don't even really any useful information to solve the problem. As I exaplained, constantly deleting data sets just to reassign them to the next iteration is generally ill advised, because it causes just more performance and same memory fragmentation issues. It is best to operate locally as much as possible.

    Who wrote the code matlab? Maybe it's very inefficient? What is doing? Perhaps rewrite in LabVIEW you gain significant performance.

  • A video loop out

    I use the code below to read an external video when my swf is loaded. The video plays once and then stops. Is there a simple way to get to looop indefinitely?

    Wow, that did it! Thank you!

    I am including the final code version in case someone wants to reference.

  • How to close a Subvi loop Main.vi

    I have a Subvi running (like a pop-up). Inside this Subvi, I have a while loop that will come out once I read a string via a port COM series.

    I was wondering if it is possible to change the value of the loop out button while in

    beside this Subvi. So far, I can stop this sub - VI, with a local variable, but it happens in the same Subvi. I want to know is if we can make outside the while loop from / to another VI.

    I read control references, variables global but still failed to understand this.

    Could someone help me with this issue, please!

    Thanks in advance!

    Hi, thanks for all you answers. I managed to get out of the Subvi using 'Strict Refnum boleean control'. This example has saved my day:

    http://www.NI.com/example/28769/en/

    Thank you very much and have a nice day! Later, I'll try to break out of a Subvi, using global variables and the case of event-driven.

  • Global has not read breast all loop - but Local is

    I have a face before written to a variable switch, so it should be read in a while loop.   If the variable is local, it is read and my code works, but I need to do a Subvi the inner loop, so it seems I have to use a global variable - but then it is not read, and the code does not work.  I am very new to Labview and I do not remember this difference being made watch anywhere.  I posted a very simple example.

    Instructions: Click on SW - LV, the beginning of the inner loop; Turn the switch off, inner loop stops.  Click on SW - GV to start the inner loop, but the inner loop does not stop by turning the switch.  If I go on the front of the SW - GV I can stop the inner loop.

    Any help woud be appreciated.

    I use Labview 2011 assessment and Windows 7.

    You are a little out of your reasoning.  I'll explain what continues.

    The outer loop runs in the lower loop and the inner loop runs once per iteration of the outer loop until the value of SW - LV is True. Then the inner loop starts reading the value of SW - LV each iteration until what you press the SW - LV thw to witch point passes the value of SW - LV (believe me, tearing up the Local write on and it works the same)

    The top loop: outer loop runs and the inner loop runs once per iteration of the outer loop until the value of SW - GV is true AND The Global is written.  Global cannot be written again in this loop as the outer loop is waiting for the inner loop at the end (you have a classic blocking!)  Written across the world elsewhere (as from global itself, breaks the deadlock)

  • You can trigger through communication Modbus TCP/IP PLC data acquisition without using a loop for?

    Hello

    I am trying to contact a facility through a Modbus TCP/IP communication PLC. I'm new to this method, but the idea is that the installation will send the logical (Boolean) values 1 bit by ethernet to my workstation which read and then will begin data acquisition. Basically, I need a triger to come to my pc. I placed my vi inside a structure case T/F which will run according to the signal, it receives data acquisition. However, for it constantly waiting, I put this in a loop for. The works of vi, but playback signals sometimes lagging behind due to the loop for. If I take the loop out and just run labview permanently, it works perfectly, but I know that the option is only for debugging and should not be used. So my question is, is there a better way to wait for an incoming signal?

    Hello!

    Please note that the order of execution of the write operations on the shared variable 000002 is not determined.

    For example, nothing prevents this order of execution:

    (1) value false 000002

    (2) set to true 000002

    (3) execution of the loop

    In what concerns the delay, you might consider placing a waiting vi in the case of 'false', or the loop uses 100% of CPU if I'm not mistaken...

    Kind regards

    Marco

  • failure of the loop c ++

    I am creating a loop that takes notes entered via the box... the loop checks if the user enters a numeric value valid and displays a msg of error if an incorrect value is entered. The loop also displays the score of each player and a running total in a list box item.

    My loop out initially and does not work well... I can't seem to find out why:

    DimstrBowlingScores AsString

    DimintBowlingScores AsInteger

    DimintScoreTally AsInteger

    DimstrInputMessage = "Enter the frame score for player: #

    DimstrInputHeading = 'Note-framework '.

    DimstrNormalMessage = "Enter the frame score for player: #

    DimstrNonNumericmMessage = ' error - please enter a numeric value for the player on the team: #

    DimstrNegativeMessage = ' error - please enter a positive number for player #

    DimstrCanceled = «»

    DimintMaxNumberOfEntries = 15

    DimintPlayerNumber = 1

    DimstrTotalScores AsString = "Total Score".

    strBowlingScores = InputBox (strInputMessage & intPlayerNumber, strInputHeading, "")

    ' intBowlingScores = Convert.ToInt16 (strBowlingScores)

    ' intScoreTally = intBowlingScores

    DoUntilintPlayerNumber< intmaxnumberofentries="" orstrcanceled="">

    IfIsNumeric (strBowlingScores) then

    intBowlingScores = Convert.ToInt32 (strBowlingScores)

    intScoreTally = intBowlingScores

    IfintBowlingScores > 0 Then

    lstBowlerScores.Items.Add (strInputHeading & intBowlingScores.ToString & strTotalScores & intScoreTally.ToString)

    intPlayerNumber += 1

    intScoreTally += intBowlingScores

    strInputMessage = strNormalMessage

    On the other

    strInputMessage = strNegativeMessage

    EndIf

    On the other

    strInputMessage = strNonNumericmMessage

    EndIf

    IfintPlayerNumber<= intmaxnumberofentries="">

    strBowlingScores = InputBox (strInputMessage & intPlayerNumber, strInputHeading, "")

    EndIf

    Loop

    Your question is beyond the scope of this community.

    I suggest you post to MSDN and/or Stackoverflow

    It may be useful

  • Bug with an outer join, or &amp; Analytics function (or rownum)

    Hello

    Seems to be a combination of an outer join, OR and rownum confuses the CBO.

    First request is without rownum, the second is with rownum.

    The second query expects 203 t lines and never ends. It should behave the same as query 1, with 24 M lines.

    Remove the GOLD clause query 2 allows him to behave as a query 1, with 24 M lines.

    We never saw it? Is there a solution?

    SELECT *
      FROM message i
      LEFT JOIN (SELECT hi.message_id, hi.update_dt
                   FROM message_hist hi) h ON (t.id = h.master_id
                                           AND(t.update_dt = h.update_dt OR h.update_dt <TO_DATE('150901','RRMMDD')));
          
    -----------------------------------------------------------------------------------------------                                                                                                                                                                                                              
    | Id  | Operation           | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |                                                                                                                                                                                                              
    -----------------------------------------------------------------------------------------------                                                                                                                                                                                                              
    |   0 | SELECT STATEMENT    |                         |    24M|    13G|   475G  (2)|999:59:59 |                                                                                                                                                                                                              
    |   1 |  NESTED LOOPS OUTER |                         |    24M|    13G|   475G  (2)|999:59:59 |                                                                                                                                                                                                              
    |   2 |   TABLE ACCESS FULL | MESSAGE                 |  8037K|  1318M| 29883   (2)| 00:06:59 |                                                                                                                                                                                                              
    |   3 |   VIEW              |                         |     3 |  1302 | 59136   (2)| 00:13:48 |                                                                                                                                                                                                              
    |*  4 |    TABLE ACCESS FULL| MESSAGE_HIST            |     3 |   168 | 59136   (2)| 00:13:48 |                                                                                                                                                                                                              
    -----------------------------------------------------------------------------------------------                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                 
    Predicate Information (identified by operation id):                                                                                                                                                                                                                                                          
    ---------------------------------------------------                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                 
       4 - filter("I"."MESSAGE_ID"="HI"."MESSAGE_ID" AND                                                                                                                                                                                                                                                         
                  ("HI"."UPDATE_DT"<TO_DATE('150901','RRMMDD') OR "I"."UPDATE_DT"="HI"."UPDATE_DT"))     
    ----------------              
    SELECT *
      FROM message i
      LEFT JOIN (SELECT hi.message_id, hi.update_dt
                      , ROWNUM
                   FROM message_hist hi) h ON (t.id = h.master_id
                                           AND(t.update_dt = h.update_dt OR h.update_dt <TO_DATE('150901','RRMMDD')));
         
    -------------------------------------------------------------------------------------------------                                                                                                                                                                                                            
    | Id  | Operation             | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |                                                                                                                                                                                                            
    -------------------------------------------------------------------------------------------------                                                                                                                                                                                                            
    |   0 | SELECT STATEMENT      |                         |   203T|   112P|   475G  (2)|999:59:59 |                                                                                                                                                                                                            
    |   1 |  NESTED LOOPS OUTER   |                         |   203T|   112P|   475G  (2)|999:59:59 |                                                                                                                                                                                                            
    |   2 |   TABLE ACCESS FULL   | MESSAGE                 |  8037K|  1318M| 29883   (2)| 00:06:59 |                                                                                                                                                                                                            
    |   3 |   VIEW                |                         |    25M|    10G| 59151   (2)| 00:13:49 |                                                                                                                                                                                                            
    |*  4 |    VIEW               |                         |    25M|    10G| 59151   (2)| 00:13:49 |                                                                                                                                                                                                            
    |   5 |     COUNT             |                         |       |       |            |          |                                                                                                                                                                                                            
    |   6 |      TABLE ACCESS FULL| MESSAGE_HIST            |    25M|  1355M| 59151   (2)| 00:13:49 |                                                                                                                                                                                                            
    -------------------------------------------------------------------------------------------------                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                 
    Predicate Information (identified by operation id):                                                                                                                                                                                                                                                          
    ---------------------------------------------------                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                 
       4 - filter("I"."MESSAGE_ID"="H"."MESSAGE_ID" AND ("I"."UPDATE_DT"="H"."UPDATE_DT" OR                                                                                                                                                                                                                          
                  "H"."UPDATE_DT"<TO_DATE('150901','RRMMDD')))         
     
    

    RowNum in a subquery is supposed to ensure that the subquery is evaluated completely before filtering, otherwise, how could you go out rownum?

    Your question is compounded because of the join condition that forces a level of nested loops, which means that the table should be fully analysed once for each line of conduct rowsource. You can either transform the join in an equijoin and allow a hash to run, or you join could materialize the subquery once.

    Allow the hash join:

    SELECT count (*)

    Message FROM

    LEFT JOIN (SELECT hi.message_id, hi.update_dt

    ROWNUM

    OF message_hist salvation) PM ON (i.message_id = h.message_id

    AND i.update_dt = h.update_dt)

    LEFT JOIN (SELECT hi.message_id, hi.update_dt

    ROWNUM

    OF message_hist salvation) h2 ON (i.message_id = h2.message_id

    AND h2.update_dt<>

    AND h2.update_dt <> i.update_dt)

    /

    ----------------------------------------------------------------------------------------

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

    ----------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |              |     1.    66.   211 (1) | 00:00:01 |

    |   1.  GLOBAL TRI |              |     1.    66.            |          |

    |*  2 |   EXTERNAL RIGHT HASH JOIN |              |   800 | 52800 |   211 (1) | 00:00:01 |

    |*  3 |    VIEW                 |              |     1.    22.    70 (0) | 00:00:01 |

    |   4.     COUNTY |              |       |       |            |          |

    |   5.      TABLE ACCESS FULL | MESSAGE_HIST |     1.    22.    70 (0) | 00:00:01 |

    |*  6 |    EXTERNAL RIGHT HASH JOIN |              |   800 | 35200.   141 (1) | 00:00:01 |

    |   7.     VIEW                |              |     1.    22.    70 (0) | 00:00:01 |

    |   8.      COUNTY |              |       |       |            |          |

    |   9.       TABLE ACCESS FULL | MESSAGE_HIST |     1.    22.    70 (0) | 00:00:01 |

    |  10.     TABLE ACCESS FULL | MESSAGE |   800 | 17600 |    70 (0) | 00:00:01 |

    ----------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    2 - access("I".") MESSAGE_ID '= 'H2'.' MESSAGE_ID "(+))"

    filter ("H2". "UPDATE_DT" (+)<>'I'. " ("' UPDATE_DT")

    3 - filter("H2".") UPDATE_DT "(+)<>

    6 - access("I".") "UPDATE_DT" ="H" UPDATE_DT "(+) AND"

    "I"." ' MESSAGE_ID ' ="H" MESSAGE_ID "(+))"

    Materialize the subquery:

    WITH h AS (SELECT / * + MATERIALIZE * / hi.message_id, hi.update_dt)

    ROWNUM

    OF message_hist salvation)

    SELECT count (*)

    Message FROM

    LEFT JOIN: ON (i.message_id = h.message_id

    AND (i.update_dt = h.update_dt OR h.update_dt<>

    ----------------------------------------------------------------------------------------------------------

    | ID | Operation | Name                        | Lines | Bytes | Cost (% CPU). Time |

    ----------------------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |                             |     1.    22.  1740 (0) | 00:00:01 |

    |   1.  TRANSFORMATION OF THE TEMPORARY TABLE.                             |       |       |            |       |

    |   2.   LOAD SELECT ACE | SYS_TEMP_0FD9D6810_5B8F6E67 |       |       |            |       |

    |   3.    COUNT                   |                             |       |       |            |       |

    |   4.     TABLE ACCESS FULL | MESSAGE_HIST |     1.    22.    70 (0) | 00:00:01 |

    |   5.   GLOBAL TRI |                             |     1.    22.            |       |

    |   6.    NESTED EXTERNAL LOOPS |                             |   800 | 17600 |  1670 (0) | 00:00:01 |

    |   7.     TABLE ACCESS FULL | MESSAGE |   800 | 17600 |    70 (0) | 00:00:01 |

    |   8.     VIEW                   |                             |     1.       |     2 (0) | 00:00:01 |

    |*  9 |      VIEW                  |                             |     1.    22.     2 (0) | 00:00:01 |

    |  10.       TABLE ACCESS FULL | SYS_TEMP_0FD9D6810_5B8F6E67 |     1.    22.     2 (0) | 00:00:01 |

    ----------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    9 - filter("I".") ' MESSAGE_ID ' ="H" MESSAGE_ID' AND ('I'. "" "UPDATE_DT"="H" UPDATE_DT' OR

    "H"." UPDATE_DT ".<>

    You may need to change the first condition to make sure that you select the correct subquery.

    -edit

    Not able to view a plan but you can invade the second join condition select and then the result of a subquery with a predicate according to your requirement. This should delay the or rating and leave only an equijoin (although rowsource return may be slightly larger than the opposite).

    -Second edition, it did not work exactly when I tried it.

    A hybrid of the previous two plans with a slight modification of how he was imitating the GOLD:

    WITH h AS (SELECT / * + MATERIALIZE * / hi.message_id, hi.update_dt)

    ROWNUM Clotilde

    OF message_hist salvation)

    SELECT i.MESSAGE_ID

    i.UPDATE_DT

    COALESCE(h.message_id,h2.message_id) message_id

    , COALESCE (h.update_dt, h2.update_dt) update_dt

    Clotilde COALESCE (h.rown, h2.rown)

    Message FROM

    LEFT JOIN: ON (i.message_id = h.message_id

    AND i.update_dt = h.update_dt)

    LEFT JOIN: h2 WE (DECODE(h.message_id,,i.message_id) = h2.message_id - only try this if previous join returned NULL

    AND h2.update_dt<>

    /

    --------------------------------------------------------------------------------------------------------
    | ID | Operation | Name                      | Lines | Bytes | Cost (% CPU). Time |
    --------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |                           |     1.    66.     8 (0) | 00:00:01 |
    |   1.  TRANSFORMATION OF THE TEMPORARY TABLE.                           |       |       |            |          |
    |   2.   LOAD SELECT ACE | SYS_TEMP_0FD9D6605_28F27F |       |       |            |          |
    |   3.    COUNT                   |                           |       |       |            |          |
    |   4.     TABLE ACCESS FULL | MESSAGE_HIST |   150.  3300 |     2 (0) | 00:00:01 |
    |   5.   GLOBAL TRI |                           |     1.    66.            |          |
    |*  6 |    EXTERNAL RIGHT HASH JOIN |                           | 10497.   676K |     6 (0). 00:00:01 |
    |*  7 |     VIEW                   |                           |   150.  3300 |     2 (0) | 00:00:01 |
    |   8.      TABLE ACCESS FULL | SYS_TEMP_0FD9D6605_28F27F |   150.  3300 |     2 (0) | 00:00:01 |
    |*  9 |     OUTER HASH JOIN |                           |   328. 14432 |     4 (0) | 00:00:01 |
    |  10.      TABLE ACCESS FULL | MESSAGE |   200 |  4400 |     2 (0) | 00:00:01 |
    |  11.      VIEW                  |                           |   150.  3300 |     2 (0) | 00:00:01 |
    |  12.       TABLE ACCESS FULL | SYS_TEMP_0FD9D6605_28F27F |   150.  3300 |     2 (0) | 00:00:01 |
    --------------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    6 - access("H2".") MESSAGE_ID "(+) = DECODE (TO_CHAR ('H'". "))" MESSAGE_ID"), NULL, 'I '. (("' MESSAGE_ID '))
    7 - filter("H2".") UPDATE_DT "(+)<>
    9 - access("I".") "UPDATE_DT" ="H" UPDATE_DT "(+) AND 'I'." "" ' MESSAGE_ID '="H" MESSAGE_ID "(+))"

    (This plan is another system if costs are not comparable)

  • How to quit the nested loop

    I have a nested loop

    loop1 start
    ...
    loop2 start
    ...
    end loop2
    ...
    end loop1

    I want to know how can I come out the two loops of the inner loop.

    Hello
    Out of the inner loop in the use of nested loops labels

    SQL> BEGIN
      2          <>
      3            FOR i IN 1..2 LOOP
      4                 <>
      5                 FOR j IN 1..4 LOOP
      6                      DBMS_OUTPUT.PUT_LINE('I am in Inner Loop');
      7                 END LOOP inner;
      8       DBMS_OUTPUT.PUT_LINE('I am in outer Loop');
      9            END LOOP outer;
     10   END;
     11   /
    I am in Inner Loop
    I am in Inner Loop
    I am in Inner Loop
    I am in Inner Loop
    I am in outer Loop
    I am in Inner Loop
    I am in Inner Loop
    I am in Inner Loop
    I am in Inner Loop
    I am in outer Loop
    
    PL/SQL procedure successfully completed.
    
    SQL> BEGIN
      2          <>
      3            FOR i IN 1..2 LOOP
      4                 <>
      5                 FOR j IN 1..4 LOOP
      6                      DBMS_OUTPUT.PUT_LINE('I am in Inner Loop');
      7       exit inner;
      8                 END LOOP inner;
      9       DBMS_OUTPUT.PUT_LINE('I am in outer Loop');
     10            END LOOP outer;
     11   END;
     12   /
    I am in Inner Loop
    I am in outer Loop
    I am in Inner Loop
    I am in outer Loop
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> BEGIN
      2          <>
      3            FOR i IN 1..2 LOOP
      4                 <>
      5                 FOR j IN 1..4 LOOP
      6                      DBMS_OUTPUT.PUT_LINE('I am in Inner Loop');
      7       exit outer;
      8                 END LOOP inner;
      9       DBMS_OUTPUT.PUT_LINE('I am in outer Loop');
     10            END LOOP outer;
     11   END;
     12   /
    I am in Inner Loop
    
    PL/SQL procedure successfully completed.
    

    Twinkle

  • FPGA CRio do not give good digital outputs

    I'm working on a project with the compact RIO fpga. I tried following the youtube tutorials and written tutorial, but I get no similar results in scanning FPGA interface.

    I have attached my project. Here's the signal that I get from the Basic VI, which is a digital IO defined as output in a while loop. Alongside this, there is a loop for fundamentally changing the frequency of the digital signal from the top down. But whatever number I put in the loop for, it gives me the same frequency.

    My thought process goes like this: If the CRio has a processing time of 40 MHz to a loop that cycles 400 times should give me a swing of 100 kHz output, which is not any number, I put in.

    Any help is appreciated.

    Thank you.

    LabVIEW is almost certainly that compile to loop out like dead code (nothing happens so LabVIEW gets rid of it). I advise to use the loop timer function if you are looking to change the frequency or put everything in a timed loop. All in a timed loop will execute a tick.

  • Restore the cluster of PDM

    I was able to successfully save my table of cluster data to a file of PDM using the following block diagram:

    I tried to rebuild my data using the following block diagram:

    When the program comes to the nested FOR loop, it will never come. I put a probe on the data to enter into this loop and there is certainly a great picture goes in. Does anyone have ideas for me? Also, should I try a different method to save and restore data? (It seems that TDMS is not very friendly, unless give you him waveform data)

    Thanks for any help!

    Hi Nick,

    The number of iterations of the loop is determined by the smaller table - in this case I would hazard a guess that your definition of cluster matrix (DataArrays.PeakDataArray) is empty - the auto-index entry will see zero element and pass the loop.

    You'll want to index this table of a loop to provide the definition of cluster.

    * edit *: by "a loop out", I mean that you need to use a table of index function, preferably outside the loop for external - you want auto-index just to get the definition of cluster.

    Kind regards

  • 1 table D of waveform DBL file or its

    Hello.

    I am building an application where I have an accelerometer with an interface USB-1208FS samples.

    I have this loop on the inside with a few virtual instruments to display the waveform and frequency of it components. I tried many different approaches to record in a file, but it doesn't seem to work. No file is created even although I am administrator.

    Data that are fed to the filters and these great are "table 1 d of waveform (DBL). Tried to convert other types of data, but does not work. This VI for example 'write waveform of File.VI' does nothing even if it should accept this type of data. It's "waveform table is a 1 d table the you want to write to a file of wave forms.»

    I'd appreciate any help on my way to accomplish this task. With regard to Abraham

    You still have not posted this VI. You say exactly what function and it is inside the loop / out of the loop that wants to say? My only guess is that you use the button stop in the toolbar.

  • Counters

    Hello world

    I'm doing two separate meters on a structure of true and false case. I want to count every time the true and

    false cases occurs and then make sense to charges outside of the structure.

    I did some research and saw that you can put a loop records shift on the edges of some time and put the structure cases inside.

    But it doesn't seem to work when I want the two different numbers each time time to loop out runs.

    Anyone know what I can do or what is the problem? Should I just a pair of shift registers or two?

    I am using LabView 2010.

    Best regards

    Ranjeet_Singh solution will work, but I recommend using shift registers according to your original thought.

    Here is a slightly modified version:

  • conversion efficiency

    Hi, I was a little perplexed by this question from my friend!

    He has this loop for to create a random number of precison double in a table!

    now, he asked me what is the best when he's trying to convert the number into number of single precision inside the loop & out of the loop!

    are they not both the same?

    Jay

    Hi BooJay,

    conversion of the loop: the tunnel exit already create a SGL array.

    conversion to the outside: the tunnel creates a DBL array, which is converted as a block to SGL - so in need of another block of memory.

    As long as the memory allows, you can use both methods. The conversion in the loop use less memory, but may run a little slower...

  • Cards hand VI are not updated until end of sub VI

    I have 1 main VI calling several Sub screws in sequential order. The problem which I am facing is that real-time data created by one under that VI is not displayed in the hand VI UNTIL the sub VI ends.

    The sub VI: in a While loop, an engine step by step is executed until a final position or charge threshold has been reached. The motor drive NI MID-7604 and NI 7340 motion controller are used for the two movements of the acquisition of stepper and the load cell data. The current position of the stepper motor and the load cell value returned permanently until the loop ends. I connected the variables corresponding to the position and load from within the While loop, as well as created global variables that are both inside and out of the While loop. Once the program is completed, a Boolean value is set to true, which is used by the main move program.

    Main VI: the main program consistes of sequential images. Within the framework established by the Subvi above, VI sub is called with 4 inputs and 3 outputs (true/false condition finished and load and position settings). Also some time ago loop containing the two graphs corresponding to the position and load, as well as global variables (related to the graphs as well). It's just an attempt to see what works, of course, I want only 1 set of graphs. The condition for the while loop is true/false condition issued by the sub VI, and I know that the condition is set to false before the frame of the sequence.

    In the Main VI that I tried put the global variables in a While loop, out of a While loop, both the Globals and the void VI in a While loop and placing the globals outside of the sequence. It goes same for no global variables that are related to the sub VI connectors. It appears as well as part of the sequence, the while loop containing the desired graphics is not started until the end of the Sub VI (I added a counter of debugging and she never increments).

    If nothing is in a time loop, just the latest data points are graphically represented once the sub VI ends. If there is a while loop is nothing in graphic form.

    If you have any suggestions I would be very happy.

    Hello

    It is a very basic question about the principles of data streams in LabVIEW. I suggest asking this question in forums of LabVIEW. You will get good responses and suggestions there. I also suggest that you post your vi there, because it makes things much more clear that describing it with words.

    Thank you

    Jochen

Maybe you are looking for