Manual data input in a loop

Hey all,
I'm  wondering how to input manual data into a loop (control string).
At the press of a button, my program records various other data (time/strain/ stress/ etc...) but before the loop ends, I want it manually type in a value (pressure) since it doesnt have a digital output. I was wondering how I could write the loop so that it won't continue UNTIL a value has been filled in and, for example the "ok" button has been pressed.
thanks
Aquaphire
---USING LABVIEW 6.1---

If you make your own dialog box, or even in the higher level one, put a while loop "in series" with the rest of the program's flow  (before the outer loop ends). The attached picture shows one method (I don't have the LV version you are using handy)
P.M.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion
Attachments:
op entry.png ‏50 KB

Similar Messages

  • [Solved] CUPS: Unable to write print data: Input/output error

    I'm filling this for the benefit of those poor googlers that can reach here.
    Symptoms: After trying to print a "complex" image the printer made too much breaks, and failed.
    The problem is, it then didn't came up. I mean, I restarted the printer, cupsd, the whole system, and nothing.
    I was unable to print again, it showed "Unable to write print data: Input/output error" and refused to print anything.
    I then saw that in /etc/cups I had printers.conf and printers.conf.O files, which differed (other than in StateTime), that printers.conf.O had
    State Idle
    but printers.conf had:
    State Stopped
    StateMessage Unable to write print data: Input/output error
    Reason paused
    Probably due to the ErrorPolicy being stop-printer.
    So seeing I followed the following steps:
    Stop cups
    Replace printers.conf with printers.conf.O (I could also had manually edited it)
    Start cups
    It then went working flawlessly.
    There was probably an option in the web interface combobox for doing that. The problem is that I didn't realise it was stopped, so didn't know how to make it work. Moreover, some posts in the web recommended reinstalling the printer (which would skip the problem by creating a new printer).

    I think that I had this same problem, and fixed it by reinstalling the printer.  Thank you for your post.

  • Massive data input for employees Transaction

    Hi experts!
    I need to perform a massive data input for employees. Iu2018ve tried with de Tx PA71 u2013 Fast entry of Time Data - but It needs a document or a manual preselecting.
    Its necessary selecting ranges of personnel number in order to perform a massive data input for employees as a salary benefit or bonus for a group of employees.
    Do you know that kind of transaction?
    Thanks in advanced!

    Hi ,
    You could also use T Code : SCAT/SCEM  for mass upload or deload.
    You may use below method to create SCAT in ECC (This is not a Direct method)
    1) Run transaction SCEM
    2) Enter a CATT name
    3) Click on change, prompt appears saying it doesn't exist, do you want to
    create. Click yes.
    4) Enter the TCODE to record.
    5) Execute the TCODE and save data.
    6) Back out. Click End and copy button.
    7) Double-click the TCD on the left side of screen
    8) Click F5 or Field Inputs Variants
    9) Use black down-arrow to step through screens.
    10) Double click on fields to set variables. (SAP adds leading & to each
    variable name).
    11) Save and back out.
    12) Go to menu path Environment --> Extended CATT.
    13) Click change and change type from (M) Manual Test Case to (C) CATT.
    14) Assign component.
    15) Click save. Back out.
    16) Execute SCAT and Go to --> Variants --> Export Default and save as text
    file.
    17) Edit file with new test data.
    18) Execute CATT.
    After step 6 you can also leave SCEM and run SCAT and perform the
    parameterization there as usual.
    Hope this helps.
    Inputs for Neeraj.

  • Data Input into a Wizard

    Dear Fellow Developers:
    I am currently developing a wizard that receives data inputted from a user. At a few points in the process, the wizard requires the user to input several pieces of data in one step, as part of a loop.
    For example:
    A wizard asks the user, how many friends do you have? The user then inputs an int into a textfield. Based on that number, the next panel then prompts the user to input the names of his/her friends. I don't want to create a panel with a single textfield which corresponds to each friend that the user has, so that if the user said they had ten friends, ten panels are created, allowing the user to enter one name in each panel. I want a SINGLE panel to follow the step where the user is prompted for the number of friends, and regardless of the number entered, the user will be able to enter ALL the names of his/her friends on a SINGLE panel that follows. HOW DO I ACHIEVE THIS IN SWING, AND IS DYNAMIC SO THAT THE NUMBER DOES NOT MATTER, WHATEVER NUMBER IS ENTERED IN THE FIRST PANEL, THE SECOND PANEL WILL ALLOW THE USER TO ENTER THAT MANY NAMES WITHOUT ANY PROBLEMS???
    I sincerely apologize for taking up your time, and I thank everyone who responds.
    I hope I will be able to reciprocate the generosity that is extended to me by everyone that responds.
    Take care, and I wish all developers success in their work.
    Sincerely;
    Fayyaz

    A suggestion: any time you need useability ideas, simply look at how other polished apps acheive the effect you want. On Windows, play with all the Control Panel dialogs.

  • Using ALV Grid for data Input

    Hi experts.
    Can someone assist me with information on using ALV grid for data input. Please give a simple example if possible.
    I am mainly interested in the part in which we can transfer data from the grid changing the internal table's data.

    Try this code:
    REPORT z_demo_alv_jg.
    TYPE-POOLS                                                          *
    TYPE-POOLS: slis.
    INTERNAL TABLES/WORK AREAS/VARIABLES                                *
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
          w_field TYPE slis_fieldcat_alv,
          p_table LIKE dd02l-tabname,
          dy_table TYPE REF TO data,
          dy_tab TYPE REF TO data,
          dy_line TYPE REF TO data.
    FIELD-SYMBOLS                                                       *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                   <dyn_wa> TYPE ANY,
                   <dyn_field> TYPE ANY,
                   <dyn_tab_temp> TYPE STANDARD TABLE.
    SELECTION SCREEN                                                    *
    PARAMETERS: tabname(30) TYPE c,
                lines(5)  TYPE n.
    START-OF-SELECTION                                                  *
    START-OF-SELECTION.
    Storing table name
      p_table = tabname.
    Create internal table dynamically with the stucture of table name
    entered in the selection screen
      CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_table->* TO <dyn_table>.
      IF sy-subrc <> 0.
        MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
        LEAVE TO LIST-PROCESSING.
      ENDIF.
    Create workarea for the table
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.
    Create another temp. table
      CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_tab->* TO <dyn_tab_temp>.
      SORT i_fieldcat BY col_pos.
    Select data from table
      SELECT * FROM (p_table)
      INTO TABLE <dyn_table>
      UP TO lines ROWS.
      REFRESH <dyn_tab_temp>.
    Display report
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
      ENDIF.
    *&      Form  SET_PF_STATUS
          Setting custom PF-Status
         -->RT_EXTAB   Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'Z_STANDARD'.
    ENDFORM.                    "SET_PF_STATUS
    *&      Form  user_command
          Handling custom function codes
         -->R_UCOMM      Function code value
         -->RS_SELFIELD  Info. of cursor position in ALV
    FORM user_command  USING    r_ucomm LIKE sy-ucomm
                               rs_selfield TYPE slis_selfield.
    Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.
    Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.
    Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.
    Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.
      CASE r_ucomm.
      When a record is selected
        WHEN '&IC1'.
        Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.
          IF sy-subrc = 0.
          Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.
          Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
            IF sy-subrc = 0.
            Make all the fields input enabled except key fields*
              w_field-input = 'X'.
              MODIFY i_fieldcat FROM w_field TRANSPORTING input
              WHERE key IS INITIAL.
            ENDIF.
          Display the record for editing purpose
            CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
              EXPORTING
                i_callback_program    = sy-repid
                i_structure_name      = p_table
                it_fieldcat           = i_fieldcat
                i_screen_start_column = 10
                i_screen_start_line   = 15
                i_screen_end_column   = 200
                i_screen_end_line     = 20
              TABLES
                t_outtab              = <l_tab>
              EXCEPTIONS
                program_error         = 1
                OTHERS                = 2.
            IF sy-subrc = 0.
            Read the modified data
              READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
            If the record is changed then track its index no.
            and populate it in an internal table for future
            action
              IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
                <dyn_wa> = <l_wa>.
                i_index = rs_selfield-tabindex.
                APPEND i_index.
              ENDIF.
            ENDIF.
          ENDIF.
      When save button is pressed
        WHEN 'SAVE'.
        Sort the index table
          SORT i_index.
        Delete all duplicate records
          DELETE ADJACENT DUPLICATES FROM i_index.
          LOOP AT i_index.
          Find out the changes in the internal table
          and populate these changes in another internal table
            READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
            IF sy-subrc = 0.
              APPEND <dyn_wa> TO <dyn_tab_temp>.
            ENDIF.
          ENDLOOP.
        Lock the table
          CALL FUNCTION 'ENQUEUE_E_TABLE'
            EXPORTING
              mode_rstable   = 'E'
              tabname        = p_table
            EXCEPTIONS
              foreign_lock   = 1
              system_failure = 2
              OTHERS         = 3.
          IF sy-subrc = 0.
          Modify the database table with these changes
            MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
            REFRESH <dyn_tab_temp>.
          Unlock the table
            CALL FUNCTION 'DEQUEUE_E_TABLE'
              EXPORTING
                mode_rstable = 'E'
                tabname      = p_table.
          ENDIF.
      ENDCASE.
      rs_selfield-refresh = 'X'.
    ENDFORM.                    "user_command

  • Error in saving  large value with the data input query

    Hi,
       I  am  trying to save a large value in 0Quantity using the data input query into a realtime infocube
    e-g
    123456789.1234
    Error says too many digits.
    When i try to save 8 digits before the decimal point ,no error, if it is 9digits before decimal it's thro' error.
    Is there any limitation before the decimal.
    i know that 0Quantity can take 17 digits including the sign.
    Any suggestions.?
    regards,
    ram

    try budgetting in thousands in stead of units? (setting on query itself)
    D

  • How to avoid data selection inside the loop?

    Hello Experts,
    I am working on one performance item and I have already applied some changes to the original version.
    Now, If I compare my new program with old program, I have good improvement in performance. I am checking if I can do anything on statements that are top on the below list. I think 40% for Modify statement is acceptable after my research (Below run is updating around 20M records which is real time volume for this application).
    As we can see 34% of run time to going for one SELECT query on custom table. Take a look at below high level flow of my program to understand above select query.
    1. Select data from ZABC
    2. Select data from Variant Table (Var1, Var2, Var3 etc.., 12 in real time)
    3. Loop Variant Table
    4. Select data from X, Y, Z table for Var<n>.
    5. Populate final internal table from ZABC, X, Y and Z table
    6. Modify ZTABLE with Final Internal table data
    7. End Loop on Variant Table
    As described in the flow of the program, ZABC table data is common for all the variants and need not to fetch multiple times. Hence I am doing it only once in my program. Below is that select query:
    select rrcty ryear rbukrs racct rcntr sum( amt1) as amt1  "Like I have 32 amount fields in original query
               from zabc
                into table i_zabc
                where ryear in r_year    " Two records in ranges with I and EQ
                and rvers = '001'
                and rrcty in r_rrcty        "Three records in ranges with I and EQ
                and rldnr = 'DT'
                group by rrcty ryear rbukrs racct rcntr
                order by rrcty ryear rbukrs racct rcntr.
    ZABC table is again having huge volume of data and we are fetching millions of records with above query. That is primary reason to take long time. May be that is okay as I am already using Indexes of this table. But, I am not comfortable with it as it can reach max. memory point and through run time error. Fetch Cursor is one reliable option that I can see here, but with that, I should move ZABC selection inside the variant loop which can cause fetching ZABC data 12 times (Let me know If I am missing anything here).
    Now, third statement in my trace results, with 10% of overall time is this:
    loop at i_abc assigning <fs_abc>. 
    loop at i_table assigning <fs_table> where low <= <fs_abc>-racct and high >= <fs_abc>-racct. 
    endloop. 
    endloop. 
    6 million executions with this complex WHERE condition is causing this statement to get 3rd position in trace results. I tried below two options which are, I think, taking even more time - (I am still monitoring these options)
    1) Removed WHERE condition on LOW, HIGH and applied filter inside the loop.
    2) Removed WHERE condition on HIGH only and applied filter inside the loop.
    Any suggestions on how to proceed with ZABC selection and I_TABLE loop.
    Let me know if you have any questions on above compose.

    Since I looked at this case before, let me try some quick suggestions:
    Is table ZABC related to table X, Y and/or Z and can the selection be limited by applying those 12 selection variants?
    If yes, try a join select involving these tables that could make your step 1 obsolete and replace steps 4 and 5.
    This might also get rid of the "loop inside loop" problem. Generally, make sure that the inner table is declared as a sorted table with a key that consists of the fields as used in the WHERE-condition of the inner loop. Use secondary keys for internal tables if your ABAP release permits and the task at hand warrants it.
    Finally, look at PACKAGE SIZE option for the (join) select to reduce memory consumption.
    Thomas

  • Manual data corrections in data-Warehouse/OLAP

    Hi to all,
    is it somewhere in essbase(hyperion) possible Manual data corrections in data-Warehouse/OLAP?
    Thank you
    G.

    Hi NareshV,
    thanks for your reply. In fact, I have also some difficulties tu understand (I am not autor) this question;-), but ok - lets say u have some records of data retrieved from essbase (or Hyperion) like for instance an open excel sheet with data. In excel is possible to delete or override any value in any column, is it possible to do this ia essbase olap server?
    Thank, G.

  • Tree-control for data input?

    Hi,
    I need to program an input screen for values that have hierarchical dependencies (e.g. sums). I feel, the most adequate user-interface would be a tree control, because of the data dependencies and also because the users asked for a possibility to collapse/expand parts of the data during input.
    I had a look at CL_GUI_COLUMN_TREE, but I'm not sure, if it can be used for data input. Has anyone done something like this before or can anybody direct me to some additional sample coding? (the sample coding in the reuse library didn't do it...)
    Thanks for your help, greetings, Kathrin!

    Hello Kathrin,
    Since you say that the user's input is hierarchical in nature, it is nice to have a tree-control for input. But, the choice of using a custom-control-version of the tree is a cause for some concern. I cannot recollect any of the SAP screens where the input can be given through such a tree framework (please do let me know if you have come across one). The problem with such a tree would be in the areas of even-handling. Filling the tree with appropriate data at the right times would be another challenge.
    However, there's one alternative that I would like to direct your attention to. You must have observed another kind of tree, when you select an application component from the APPLICATION HIERARCHY, which is just like a list. Also, the <i>Transport Organizer (SE09)</i>, <i>Menu Painter (SE41)</i> etc., have this kind of a tree. You can use this if you (or rather your users) are very particular on having a tree display. For more information, you can see the Function Group <b>SEUT</b>, which has the required function modules to accomplish the same. The Function Group is well documented, and you might have to work a little on the function modules themselves.
    Please do let me know if this is a suitable option to meet your requirement. All the best,
    Regards,
    Anand Mandalika.

  • How to set todays date in message date input field in uix

    Hello everybody,
    Im using jdeveloper 9015+adf+uix
    I am having an input form and in that i want to set the date input field with the current date(default value).
    Does anybody of you know how I should do this.
    Any help is appreciated,
    Thanks in advance

    Hi,
    Did you figure out on how to default system date in a date input field??
    I have a similar requirement in OA framework. Please let me know if you have any ideas.
    Thanks,
    vinay.

  • Counting number of inputs in a loop

    I'm trying to find a way to count how many times a number has been inputted in a loop but unable to find a calculation to find the answer,
    can anyone help??
    I'm new to Java.

    Stinkin' crossposter!
    http://forum.java.sun.com/thread.jspa?threadID=605663

  • How to display current system Date in the Date Input field ?

    Hi,
    I am having a Date Input field( binded to Data type). On load, i would like to display the current system date filled in that input field.
    How do i achieve this ?
    Reg/Venkat

    Hi Venkatesan,
    In your view in your init() method add the following code:
    wdContext.currentContextElement().setOrderDate(new Date(System.currentTimeMillis()));
    this is if your Date-attribute is in the root of the context.
    else you have to set the date in the node where the date-attribute is present with:
    IYOURNODEElement node = wdContext.createYOURNODEElement();
    node.setOrderDate(new Date(System.currentTimeMillis()));
    regards,
    Björn

  • How do I count the number of inputs in a loop?

    I'm trying to find a way to count how many times a number has been inputted in a loop but unable to find a calculation to find the answer,
    can anyone help??
    Please take me step by step on how to solve this problem as I'm new to Java.

    Today's spam day, I guess. Listen, you and the paint-squares-guy, too:
    STOP TO FUCKING SPAM THIS FORUM WITH YOUR QUESTION. ONCE IS ENOUGH. TWICE IS ANNOYING. TEN TIMES IS LIKELY TO MAKE ME COMPLAIN TO SUN AND HAVE YOUR NEWBIE ASSES KICKED!

  • Updating data outside a foor loop

    I hope someone can help me with the following problem. I collect data into an array with a for loop. The data is visualized in an intensity graph. All this works fine. I would like to update the graph line by line as the for loop runs. I managed this too but only if the graphing is done in the same VI as the for loop. This I would like to avoid as the program is already rather complex and it is difficult to keep track of all the things. I therefore made the for loop data acquisition into a subVI but now the updating doesn't seem to work. My question is, is it possible to update data outside a for loop when the loop and the data are in different VIs.
    Klas

    Hi
    It is a good way, doing it like that.
    There are also other ways. And the easiest one, that people tend to use imediately are the global variables.
    If you can, avoid using them - when you use them a lot, sooner or later you end up in having problems (it is very difficult to control the data flow of your program like that). A good way of doing it is using the so called LV2 globals.
    It is called like that beacause it was introduced in version 2 of LabVIEW- it consists of a subvi with a while loop with a non-initialised shift register. Because it is in this situation, it keeps the value of the last time it ran and even has the advantage that you can even place some code in the variable like this (like a case structure to read and write the value). The biggest advantage is that you can control the flow of the program - beacause the vi cannot run concurrentely.
    Take a look at the following example:
    Hope it helps,
    Paulo
    Attachments:
    Global.vi ‏16 KB

  • How to make the exchange of data between 2 while loop in real time

    hello
    I have 2 while loop
    the 1st while loop includes the data acquisition program
    the 2nd while loop includes the control program
    my question is how to make the exchange of data between 2 while loop in real time
    I tried with the local variable and direct wiring between the 2 while loop
    it does not work (there is a delay)
    Solved!
    Go to Solution.

    Bilalus,
    Queues are only good to transfer data if your application isn't deterministic. Since you are using Real Time, I am assuming that your application requires determinism. If you are using Timed Loops and you use queues to transfer data between your loops, you are losing determinism. In this case, you need to use the RT FIFO functions. 
    Warm Regards,
    William Fernandez
    Applications Engineering
    National Instruments

Maybe you are looking for

  • Two iPhones, both mine, using the same Apple ID iCloud account

    I've seen similar questions but it is always being brought up by members of a family each with their own phone sharing an account. My scenario is different... I have an activated Verizon iPhone 5, running iOS 7.1.x. I have an Apple ID and it backs up

  • Corrupted Illustrator files

    Recently our IT department copied files from one drive to another on our server. A lot of our files are now corrupted. We are using Windows XP and Adobe CS3. The error I am getting is "Acrobat PRF File Format is having difficulties. Expected a dict o

  • How to get the return value of a method

    hi there here is the code i write a method public void time(int x,int y){ int xx; int yy; xx++; yy++; x=xx; y=yy; i want to use the return value of x and y at another place,who can tell if it is possible. thank u very much

  • Date calculation check in a badi

    Hi all I want to do a check calculation in a badi - on an internal table of dates. In normal abap I was able to do it easily. but in oo abap, its not allowing me to do the arethmatic calculation on date fields.Below is the code: method IF_EX_PT_ABS_R

  • Directory Server 6.3.1 and Directory Server 7.0 agent module

    Hello Folks- I am having a strange issue with my directory servers. I had three directory server replicas and they were all on 6.3.1 installed with the zip distribution. One of the directory server was a vmware virtual machine running on Solaris Upda