How to use Boolean values from 2 different sources to stop a while loop?

I am working on a program for homework that states E5.4) Using a single Whil eLoop, construct a VI that executes a loop N times or until the user presses a stop button. Be sure to include the Time Delay Exress Vi so the user has time to press the stop botton. 
I am doing this right now but it seems as though I can only connect one thing to the stop sign on th while loop. It won't let me connect a comparision of N and the iterations as well as the stop button to the stop sign on the while loop. So how would I be able to structure it so that it stops if it receives a true Boolean value from either of the 2 sources (whichever comes first)? 
Basically, I cannot wire the output of the comparison of N and iterations as well as the stop button to the stop button on the whlie loop to end it. Is there a solution?
Thanks!
Solved!
Go to Solution.

Rajster16 wrote:
Using a single Whil eLoop, construct a VI that executes a loop N times or until the user presses a stop button. 
Look in the boolean palette for something similar to the word hightlighted in red above.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • How to use acquired values for different treatments with NI 9188 cDAQ

    hi guys, I am trying to use NI DAQ 9188 chasis with 9214 temperature measurement module. I wired 3 modules to the module and split signals. But I am not sure that I can these values into functions vis easily. I am trying to convert them into 1D array, but when I converted to the 1D array I can not see the values and use separetely from each other. For example, I want to multiply just the first value taken from 1st thermocouple. how could I do this. Additionally, the signals in the waveform chart 1 is not smooth. what is the reason of this? thanks in advance.
    Egemen
    Solved!
    Go to Solution.
    Attachments:
    DAQ_v1.vi ‏82 KB

    Hi newbieeng,
    It sounds like what you want to use is the Index Array function. You should use the Convert From Dynamic Data function on the signal coming from the DAQ Assistant and then use the Index Array function to access the apropriate data on which you would like to operate. Please refer to the help documentation for more information on the Index Array function. As far as smoothening the signal, try adjusting the properties of the graph, such as Autoscale X and some others in the Properties window. 
    Regards,
    James D.
    Applications Engineer
    National Instruments

  • How to use time values from graph or chart for other calculations

    iam generating an ultrasonic signal of frequency 500k. In the equation i need the values of time axis of the graph or chart for calculationg the envelope of the graph. please help me how to use the x-axis time values.I have tried by writing in spread sheeet or by using arrays. here iam not able to get only 1 dim time values.
    AshwiniP

    Use a property node

  • How to use POV values from one worksheet in functions?

    I have a Smart View free-form Excel report based on an Essbase cube with 13 dimensions.
    Am using 1 dimension in columns, 3 in rows, 5 as page dimensions, and 4 in the POV. The member values in the rows, columns, and page dimensions are "fixed" in the layout of the free-form report.
    The 4 four dimensions in the POV need to have changeable member values.
    This layout works fine on the worksheet where it is built, where there are over 20 columns and 150 rows.
    However, within that large grid (20 columns x 150 rows), there are about 60 individual cells where I need to use a different value (not the one that would be retrieved based on the row/column dimensions for that cell in the grid).
    I think that I can use functions to obtain the values for these 60 cells, but cannot figure out how to update the formulas/functions based on the values for the 4 dimensions in the POV that are changeable -- it seems as if my functions are "fixed." (In my functions, I am listing all 13 dimensions as: Dimension#Member.)
    I read in the user guide that I could not list all 13 dimensions and the default for any unspecified dimensions would be the value in POV Manager. But as far as I understand it, POV Manager does not have the same values I see in the POV menu/toolbar on screen where member values are selected.
    Any help would be appreciated -- am a new Smart View user. Thanks.
    Edited by: user3588870 on Oct 14, 2008 1:54 PM

    Hi Edvard
    Welcome to the forum.
    +Menu > Format > Import Styles… > browse to other document > select the styles+
    Peter

  • How to use return value from TestComplete ( using COM) as a variable in the conditional statement (e.g. while loop) in TestStand

    Hi,
    I have setup a COM interface for TestStand(TS) to run certain scripts in TestComplete (TC).  Normally, when TestComplete finishes executing the script, it returns a 0 or 1 to denote pass/fail in the TestStand step (e.g String value test step).  This worked fine.
    However, now I need TestComplete to return a vaule( e.g 32) to TS, and TS need to evalue this value in a while statement. So if TC return value is 32, I'd have some statement in TS ike :                                                                                                 
    While (return value != 30)
    Do something..
    Thanks,
    Solved!
    Go to Solution.

    There are a hundred ways to implement what you are asking.  The hard part is deciding which one would be the best for you.
    What adapter are you using to communicate with TestComplete?  ActiveX?  Is TestComplete running asynchronously (in parallel)?  If so then how is the data getting back to TestStand?
    So here are some options:
    1. You can use the While Step type.  It's in the Flow Control folder in your Step Types pallette.  Look in your examples under UsingFlowControlSteps.seq in the SequenceFlow
    2. You can loop on a step and have the termination for the loop be (return value == 30).  Look in the Step Properties under Looping.  Also in the TestStand help
    3. You could do Post Actions based on a condition and have it jump to another step.  Read about it in the TestStand Reference Manual.
    4. You could use a GoTo step.  I don't really recommend this one.  It makes code hard to maintain.  Also an example in SequenceFlow called gotobeep.seq.
    Hopefully this gets you thinking.  Let me know if you have specific questions about any of these methods.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to include header files from different directories?

    Hi,
    Sorry for the newb question, but I can't figure this out. I'm trying to compile a simple piece of code (C++) that uses header files in a directory different from the Project directory; header files are in /opt/csw/postgresql/include/pqxx. I've tried a few different things, adding that directory to the include directives under Resource Files, add existing files from a folder, etc etc. Whenever I try to build, dmake bails with status -1. I can't seem to get this working, can someone explain how to use header files from different directories?
    Thanks,
    SlowToady

    Header files are usually specified relative to a base directory. If the base directory is not a system directory -- /usr/include or the compiler installation directory -- add a command-line directive
    -I path/to/base/dirfor each such directory.
    The path can be absolute, such as
    -i /opt/csw/postgresql/includeor relative, such as
    -I ../../my/includeIn your source code, specify the header file relative to the base directory, and be sure to use quotes, not angle brackets. Example:
    #include "header.h"  // right
    #include <header.h>  // wrongThe angle brackets are used for system headers, like <iostream> or <stdlib.h>.
    The rules above are common to all compilers on Unix and Linux, and generally to all C and C++ compilers.
    For more details, read about the -I option in the C++ Users Guide. You can find the guide by pointing your browser to the "docs" directory in the compiler installation, or go here:
    http://docs.sun.com/app/docs/doc/819-5267
    All command-line options are described in Appendix A.

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • How to select multiple values from a listbox

    Hi,
    I have a list box on my UI which is not allowing me to select multiple values
    I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving error
    When i drag & drop the component i am unable to drop it as a multi select list box that option is not coming.
    I am working on Jdev 11.1.1.3 and I am using ADF/BC components
    How to select multiple values from a listbox ?
    Thanks,

    Hi,
    I want to use multi select list box .. When i go to source of UI component and change that to select many listbox my page is not rendering it is giving errorank
    And what is the error ?
    Frank

  • How to use boolean operator to get count

    Hi All,
    In my query i need to add a field Count which shows number.
    Meaning,
    Column A   ColumnB ColumnC  Count
    100               50            0            2
    55                60             76         3
    79                0               0           1
    meaning from all three column only two has values then Count should show 2. etc....
    any suggestion how to use boolean expression here ?
    or anyother way to display Count ?
    thanks,
    KS

    Hi thanks for idea.
    boolean didnt work here. the formulau sugested worked...
    But i wrote formula for the Count --> COUNT("overtime") and for the Count property I selected Calculate Result As --> Summation fo Rounded Values
    so the output is as follows:
    i had data for 3 payperiods
    Count  (1st 3 columns)                    overall result(last Column)
    200801     200802     200803           
    1                 0             1                         2
    1                1              1                         3
    0                1             0                         1
    Now the out put i wanted is in the last column -Result column.
    I dont want Count column to be display like this. it is showing values instead of total. any this i should change for this?
    thanks,
    KS

  • Keeping the album songs order, when importing songs from different sources

    Hello
    I imported lots of songs into my itunes library from various sources (itunes store, CD's, and audio files converted from my vinyl records) This way, songs from a specific artist, and sometimes from a specific album, could come from different sources.
    Now, I hope to arrange all the songs from a specific album to appear in the appropriate order, but I just can't find a way of doing this! The songs just appear in the way iTunes sorts them, without any relation to the original order of the album. Even more, in the iPod itself, the order changes once again with no appearant reason! (Interestingly enough, when I import all the songs of a specific album from one source, the order is kept)
    I tried changing the names on the files in itunes to include serial numbers (01, 02 and so on, at the names of the songs). but then again, for some reason, no order is kept.
    How can I sort the songs in the album according to the proper order? I don't want to use a special playlist for each album.
    Thank you in advance for your replies
    Zak.
      Windows XP  
      Windows XP  

    iTunes sorts things in thew following way (based on having the correct ID3 tag info)
    Album > Disc number > Track Number
    if you sort things by Album
    iTunes does NOT take anything from the file name unless no ID3 tag info is present in the file, then you will see the file name appear as the track name and all other fields blank. ID3 tags are the way most meta-data is handled noawadays.
    Hope that helps.

  • How to get each value from a parameter passed like this '(25,23,35,1)'

    Hi
    One of the parameter passed to the function is
    FUNCTION f_main_facility(pi_flag_codes VARCHAR2) return gc_result_set AS
    pi_flag_codes will be passed a value in this way '(25,23,35,1)'
    How to get each value from the string
    like 25 first time
    23 second time
    35 third time
    1 fourth time
    I need to build a select query with each value as shown below:-
    (SELECT t2.org_id, t4.description
    from org_name t2, ref_org_name t3, code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 25 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q1,
    (SELECT t2.org_id, t4.description
    from org_name t2, ref_org_name t3,code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 23 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q2,
    (SELECT t2.org_id, RTRIM(xmlagg(xmlelement(e, t4.description || ';')
    ORDER BY t4.description).EXTRACT('//text()'), ';') AS DESCRIPTION
    from org_name t2, ref_org_name t3,code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 35 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date
    group by t2.org_id) q3,
    (SELECT t2.org_id, t4.description
    from org_name t2, ref_org_name t3, code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 1 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q4
    Please help me with extracting each alue from the parm '(25,23,35,1)' for the above purpose. Thank You.

    chris227 wrote:
    I would propose the usage of regexp for readibiliy purposes and only in the case if this doesnt perform well, look at solutions using substr etc.
    select
    regexp_substr( '(25,23,35,1)', '\d+', 1, 1) s1
    ,regexp_substr( '(25,23,35,1)', '\d+', 1, 2) s2
    ,regexp_substr( '(25,23,35,1)', '\d+', 1, 3) s3
    ,regexp_substr( '(25,23,35,1)', '\d+', 1, 4) s4
    from dual 
    S1     S2     S3     S4
    "25"     "23"     "35"     "1"In pl/sql you do something like l_val:= regexp_substr( '(25,23,35,1)', '\d+', 1, 1);
    If t2.att_type is type of number you will do:
    t2.att_type= to_number(regexp_substr( '(25,23,35,1)', '\d+', 1, 1))Edited by: chris227 on 01.03.2013 08:00Sir,
    I am using oracle 10g.
    In the process of getting each number from the parm '(25,23,35,1)' , I also need the position of the number
    say 25 is at 1 position.
    23 is at 2
    35 is at 3
    1 is at 4.
    the reason I need that is when I build seperate select for each value, I need to add the query number at the end of the select query.
    Please see the code I wrote for it, But the select query is having error:-
    BEGIN
    IF(pi_flag_codes IS NOT NULL) THEN
    SELECT length(V_CNT) - length(replace(V_CNT,',','')) FROM+ ----> the compiler gives an error for this select query : PLS-00428:
    *(SELECT '(25,23,35,1)' V_CNT  FROM dual);*
    DBMS_OUTPUT.PUT_LINE(V_CNT);
    -- V_CNT := 3;
    FOR L_CNT IN 0..V_CNT LOOP
    if L_CNT=0 then
    V_S_POS:=1;
    V_E_POS:=instr(pi_flag_codes, ',', 1, 1)-1;
    else
    V_S_POS:=instr(pi_flag_codes,',',1,L_CNT)+1;
    V_E_POS:=instr(pi_flag_codes, ',', 1, L_CNT+1)-V_S_POS;
    end if;
    if L_CNT=V_CNT then
    V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS));
    else
    V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS,V_E_POS));
    end if;
    VN_ATYPE := ' t2.att_type = ' || V_ID;
    rec_count := rec_count +1;
    query_no := 'Q' || rec_count;
    Pls help me with fetching each value to build the where cond of the select query along with the query number.
    Thank You.

  • How to get selected value from selectOneRadio ???

    Hi...i want to how to get selected value from selectOneRadio and use it in another page and in backing bean.
    Note i have about 10 selectOneRadio group in one page i want to know value of each one of them.
    Plzzzzzzzz i need help

    You have a datatable in which each row is a question, correct?
    Also in each row you have 5 possible answers that are in a radio, correct?
    So,
    You need to put in your datatable model, a question, and a list of answers (5 in yor case) and the selected one.
    So you will have a get to the question, an SelectItem[] list to populate the radios and another get/set to the selected question.
    ex:
    <h:selectOneRadio value="#{notas.selectedString}" id="rb">
    <f:selectItem itemValue="#{notas.valuesList}"/>
    </h:selectOneRadio>
    Search the web for examples like yours.

  • How to get actual value from LOV list

    Like Subject says: How to get actual value from LOV list. Any help will be appreciated.
    Thanks.

    Thanks Shay, I did it with bind variable because I'm not using JSF. Is there any chance to post solution using standard JSTL or HTML expression. I have something like this: LOV displays some Companies names:
    <html:select property="UserJobCompanyId"
                             disabled="${!bindings[\'UserJobCompanyId\'].updateable}"
                             onchange="submitform();">
                  <html:optionsCollection label="prompt" value="index" property="UserJobCompanyId.displayData"/>                                                     
                </html:select>and I want to get CompanyID of selected Company.
    Thanks, again.

  • How to get string value from xml in JSF??

    In JSF How to get string value from xml, .ini and properties file. I want to get string value from xml or text to JSF

    Just use the appropriate API's for that. There are enough API's out which can read/parse/write XML, ini and properties files. E.g. JAXP or DOM4J for xml files, INI4J for ini files and Sun's own java.util.Properties for propertiesfiles.
    JSF supports properties files as message bundle and resource bundle so that you can use them for error messages and/or localization.

  • How to get attribute value from standard page ?

    Hi,
    How to get attribute value from standard page ?
    String str = (String)vo.getCurrentRow().getAttrbute("RunId");
    But this value is returning a null value ....
    Can anyone help me to get this attribute value which is actually having a actual value .

    getCurrentRow() would always return null if no setCurrentRow() is used.
    Please check the page design and understand how many rows of VO are there. You can also use the following to get the row:
    vo.reset();
    vo.next();
    Regards
    Sumit

Maybe you are looking for

  • Fetching AR open items and customer's credit limit to Collateral Management

    Hi Is there a badi that you can use to fetch receivables data (open invoices/items and credit limit) from FI-AR to Collateral Management System? Answer: The badi Get Receivables has to be used BAPI1010_6 u201ECreditAccountDetail Other bapi of interes

  • Can i have two apple accounts for seperate phones on one computer

    i have two iphone work and buisness can i have seperate apple accounts on one computer, to keep contacts etc seperate

  • Trying to store iTunes music using iclouds gbs

    i just updated my mac to lion so i could have iCloud, i bought iTunes match and have 5,000 songs on my iTunes. i just purchased an iPhone 4s 32 gb. now is there anyway i can save all those songs over iclouds gb instead of wasting the space on my phon

  • Date format in ESS leave request

    Hi, The date format in ITS leave request is dd.mm.yyyy we have converted to webdynpro and now it has changed to mm.dd.yyyy. can somebody suggest how this can be changed to dd.mm.yyyy thanks n regards satya

  • How connect one client from another client in SAP.

    hi In my company,HR module is in independent client. So other Module FI want to get HR information.i want to write a function in HR system. in FI module to call it and return data. (RFC). how set it ?  the two R/3 System can access one another. how