How to run a loop for 1hour

Hello All,
             I am very new to labview and its components. I want to program a loop which would run for one hour.
Actually, I would like to make it more user friendly, by asking the operator to enter how long he would like to run the code.
Can anyone please suggest me how to do this?
Please excuse me if I entered into wrong forum ...
Now on LabVIEW 10.0 on Win7
Solved!
Go to Solution.

Something like this
Tim
Johnson Controls
Holland Michigan
Attachments:
Example.vi ‏8 KB

Similar Messages

  • How to execute a loop for every 15 minutes

    how to execute a loop for every 15 minutes or 30 minutes constantly...

    I need to insert a number into an array for every 15mins continuously..and the array need to hold all datas for example in 0th position i insert a value 10 by 10.00am, after that at 1st position i need to insert 11 by 10.15am, next at 2nd position i need to insert 12 by 10.30am and so on...how this can be done

  • How To run Currency translation for Consolidation Application in BPC NW

    In "How To do Currency Translation for Financial Application in BPC 7 NW", the author mention that there is another "How To run Currency translation for Consolidation Application in BPC NW", anybody know where to get it?

    Hi...
    Check if the below links are useful to you.....
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6052a57b-8c64-2c10-b3a5-b0378ff21243&overridelayout=true
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0ea1fd8-d6d3-2a10-c1ab-e8164dd98316
    You can find all How-to docs in the below link
    http://wiki.sdn.sap.com/wiki/display/BPX/EnterprisePerformanceManagement%28EPM%29How-to+Guides

  • How to download apple loops for Garageband 10.0.1 ?

    How to download apple loops for Garageband 10.0.1 ?

    If iDVD was not preinstalled on your Mac you'll have to obtain it by purchasing a copy of the iLife 09 disk from a 3rd party retailier like Amazon.com: ilife 09: Software or eBay.com.  Why, because iDVD (and iWeb) was discontinued by Apple over a year ago. 
    Why iLife 09 instead of 11?
    If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides  themes from iDVD 5-7.  The Software Update no longer installs the earlier themes when starting from the iLIfe 11 disk nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them. 
    Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
    This shows the iDVD contents in the iLife 09 disc via Pacifist:
    You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
    Export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  Select Size = Medium or Large.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    And yes, iDVD 7.1.2 will work with Mavericks.
    Happy New Year

  • How to run Crypto Tools for SSO Enabling

    Hi Friends,
    How to run Crypto tools for SSO enabling. If any body knows please help me...
    Thanks

    Hi ;
    what is the script for windows Environment...

  • How to run wfstatus.sql  for i-Expenses

    how to run wfstatus.sql for i-Expenses in 11i EBS.

    Pl see MOS Doc 295078.1 (Maintenance Pack, Patchset, and Rollup Patch Level for Internet Expenses 11i)
    HTH
    Srini

  • How to run a VI for very short time, e.g. 100ms?

    Hi,
    I need to run a VI for very short amounts of time, say 100ms, 200ms, 500ms or 1s. I want to get this time from the user, maybe as a control variable. How may I do this? I tried using the "elapsed time" function but seems like it was not meant for such small time periods. Any ideas?
    Thanks
    Kaiser 

    What are you trying to do in the "short time"? When you say "run a VI" do you mean "start, run and stop running", or do you mean for the vi to do something for the specified time, i.e. flash a front panel LED for a precise period after the operator clicks a button? In the later case 100mS is actually fairly long, and can be accomplished with various timing functions, with varying degrees of accuracy. The most accurate, in a Windows environment, would probably be the timed loop. If you need really accurate, particularly if you are interfacing with hardware (a pushbutton, an actual lamp, etc.) a real-time system would be the best bet.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • How to use a loop for a object

    Hi, All
    I have a procedure that needs a collection to pass in. The pass_in collection has multiple records with multiple fields, so I guess I need a loop for each record.
    How to assign each record of multiple fields to each corresponding local variables?
    Thanks In advance
    T_Object is a table object
    T_ProfileInfo is a collection
    procedure P_Updateprofile(UserId in number, NewProfileInfo in T_ProfileInfo) as
    V_B_ID number;
    V_A_ID number;
    V_Profile      T_ProfileInfo;     
    begin
         V_Profile := NewProfileInfo;
         --use the loop for each records
    FORALL i IN V_Profile.FIRST..V_Profile.LAST
    -- assign each value to the local variables
    -- I got error here. ideally I want to assign each record to the local variables
         select B_ID, A_ID
         into V_B_ID, V_A_ID
         from table(V_Profile(i));
         -- insert the record into the table
         INSERT INTO PROFILE
         VALUES (UserId, V_B_ID, V_A_ID);
         commit;
    end;

    You don't say which version of the database you are using. Oracle extended the collections functionality in 9.2....
    Cheers, APC
    SQL> CREATE OR REPLACE PACKAGE t1_utl AS
      2      TYPE rt_t1 IS TABLE OF t1%ROWTYPE;
      3      FUNCTION gen_t1 (p1 IN NUMBER) RETURN rt_t1;
      4      PROCEDURE pop_t1 (t1rows IN rt_t1);
      5  END t1_utl;
      6  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY t1_utl AS
      2      FUNCTION gen_t1 (p1 IN NUMBER) RETURN rt_t1
      3      IS 
      4          CURSOR cur (pn NUMBER) IS
      5              SELECT a12.NEXTVAL, col1, col2, rownum AS rn, substr(col3,30), sysdate
      6              FROM t2
      7              WHERE rownum <= pn;
      8          return_value rt_t1;
      9      BEGIN
    10          OPEN cur(p1);
    11          LOOP
    12              FETCH cur BULK COLLECT INTO return_value LIMIT 100;
    13              EXIT WHEN cur%NOTFOUND;
    14          END LOOP;
    15          RETURN return_value;
    16      END gen_t1;
    17      PROCEDURE pop_t1 (t1rows IN rt_t1) IS
    18      BEGIN
    19          FORALL indx IN t1rows.FIRST .. t1rows.LAST
    20              INSERT INTO t1
    21                VALUES t1rows (indx);
    22      END pop_t1;
    23  END t1_utl;
    24  /
    Package body created.
    SQL> SELECT * FROM t1
      2  /
    no rows selected
    SQL> DECLARE
      2      x t1_utl.rt_t1;
      3  BEGIN
      4      x := t1_utl.gen_t1(2);
      5      t1_utl.pop_t1(x);
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM t1
      2  /
          COL1       COL2       COL3       COL4 COLA
    COLD
            56     165765      87979          1
    11-AUG-04
            57       3128    8217220          2
    11-AUG-04
    SQL>

  • How to stop while loop for particular time

                    public void test()
                   new Thread(new Runnable()
                        public void run()
                             //Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
                             System.out.println("test");
                             //System.out.println("test ..."+i);
                             try
                                  Thread.sleep(3000);
                             catch (InterruptedException e)
                   }).start();
            public void startTest()
                    while(i < marquee_Str1.length)
                   marLbl1.setValue(marquee_Str1); //set value to textbox for perticular id
                   marLbl2.setValue(marquee_Str2[i]);
                   marLbl3.setValue(marquee_Str3[i]);
                   test(); // call thread function
                   i++;
    in this code while loop don't stop
    plz help me to stop while loop for certain period by using thread or other technique                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Yes.. the original problem would be your test() method put the sleep in an entirely separate thread of execution. So the thread is created then the method just keeps waiting. The while loop should directly call Thread.sleep... which you have apparently figured out!

  • How to execute a loop for a user specified amount of time

    This seems like it should be a no brainer. But I can't figure it out. What's the best way to execute a loop for a user specified number of seconds?

    You can use the Elapsed Time Express VI (available in LabVIEW 7.0 and later).  I have attached a sample VI saved in LabVIEW 7.1 format that shows how to use this Express VI.
    Good luck,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    Elapsed_Time.vi ‏71 KB

  • How to run a thread for second time ?

    I have a written a ThreadPool, but I found that basically a thread is not running for the second time. i.e First i call run() method and call stop(). If i call again run() method for the same thread, it is not running. What should I do, If i want to run the thread for the second time ?
    class NewThread implements Runnable {
    String name;
    NewThread(String a) {
    name=a;
    public void run() {
    try{
    for(int i=0;i<5;i++) {
    System.out.println("Thread :" + name + " #" +i);
    Thread.sleep(5);
    catch (Exception e) {
    e.printStackTrace();
    class threadRunnableTest {
    public static void main (String args[]) {
    Runnable runnable=new NewThread("BaSkAr");
    Thread thread = new Thread(runnable);
    try{
    System.out.println("First Thread is starting !!!");
    thread.start();
    Thread.sleep(2000);
    System.out.println("First Thread it to be stopped!!");
    thread.stop();
    System.out.println("Second Thread is starting !!!");
    thread.start();
    Thread.sleep(2000);
    System.out.println("Second Thread it to be stopped!!");
    thread.stop();
    catch (Exception e) {
    e.printStackTrace();

    baskark wrote:
    I have a written a ThreadPool, but I found that basically a thread is not running for the second time. i.e First i call run() method and call stop(). If i call again run() method for the same thread, it is not running. What should I do, If i want to run the thread for the second time ?
    class NewThread implements Runnable {
    String name;
    NewThread(String a) {
    name=a;
    public void run() {
    try{
    for(int i=0;i<5;i++) {
    System.out.println("Thread :" + name + " #" +i);
    Thread.sleep(5);
    catch (Exception e) {
    e.printStackTrace();
    class threadRunnableTest {
    public static void main (String args[]) {
    Runnable runnable=new NewThread("BaSkAr");
    Thread thread = new Thread(runnable);
    try{
    System.out.println("First Thread is starting !!!");
    thread.start();
    Thread.sleep(2000);
    System.out.println("First Thread it to be stopped!!");
    thread.stop();
    System.out.println("Second Thread is starting !!!");
    thread.start();
    Thread.sleep(2000);
    System.out.println("Second Thread it to be stopped!!");
    thread.stop();
    catch (Exception e) {
    e.printStackTrace();
    It's usually helpful to check the documentation:
    [http://java.sun.com/javase/6/docs/api/java/lang/Thread.html#start()|http://java.sun.com/javase/6/docs/api/java/lang/Thread.html#start()]
    start
    public void start()Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.
    The result is that two threads are running concurrently: the current thread (which returns from the call to the start method) and the other thread (which executes its run method).
    It is never legal to start a thread more than once. In particular, a thread may not be restarted once it has completed execution.
    So, make a new java.lang.Thread

  • How to run Explain Plan for SP?

    Can we run Explain Plan for SP??

    EXPLAIN PLAN creates an execution plan for SQL statements. PL/SQL is not SQL.
    PL/SQL procedures can contain SQL, yes. These SQLs can be copied and pasted from PL/SQL into something like TOAD and execution plan determined.
    However, if the aim is to see the "execution/performance plan" for PL/SQL code, then you need to profile the PL/SQL code using the DBMS_PROFILER package. This will tell you the execution path and elapsed time to execute a line of PL/SQL.
    Details can be found in the [url http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_profil.htm#sthref5502]Oracle® Database PL/SQL Packages and Types Reference guide.

  • How to do a loop for controls

    I have the same code to be run for all the ring controls.How to do this.I want to put the code inside the loop but only the controls name is to be repeated or changed.thanks in advance

    In the file attatched I included the things I thought you could do. Since all the Rings are the same you can put them in an array. The operation you are doing is allways the same so I put it in an SubVi. Now you can easily use a loop to calculate the 8 differences you are looking for.
    Hope this helps
    Chris
    Attachments:
    diff1.llb ‏58 KB

  • How to run the program for specified time

    Dear Friends,
    I have a small problem, I want to run my labview program for specified amount of time, Say for example it might be 1 hour or 5 hours or 10 minutes or even milliseconds(The time will be specified by the user).
    How to write programs for this
    And I want to get the system time in an instance, how it can be achieved,
    Could you please help me?
    Regards,
    Rathan

    Hi,
    Herewith my screenshot attached. There are thre inputs thres, tempX, xValue, it is in side the while loop.'xValue' will be acquired every iteration, It will be saved through shift register and acquired to 'tempX' for the next iteration, 'thres' is a constant value. I'm doing some logic, and calculating the dvalue and convert it to a string and concatenate it with end of line character, then after writing it into a file.
    In the logic, inside of the functional logic  I'm assigning some values dValue, if the logic is true or else dvalue will be 0
    What I require is I don't want to write the dValue in to a file, if it is equal to zero. Could you please help me, how to tackle this problem?
    Thanks.
    Regards,
    Rathan   
    Attachments:
    writing except 0.GIF ‏9 KB

  • How to Run a Report for Blanket PO that have been OVER Invoiced (over limit

    Hi All,
    How do I run a report in ME2N, where I would want to see all the Blanket POs (Framework Orders) that has a "Actual Value" (the amt invoiced so far) which is Greater than the Overall Limit (specified in the "Limits" tab)?
    Are there any fields in the Dynamic Selection in ME2N? I coudn't Find any......How can I compare two fields in the Blanket PO, for example "Overal Limit' > "Actual Value"?? How to put this selection criteria in ME2N
    Edited by: Duke Dukester on Sep 17, 2008 10:31 AM

    You will not get this information via ME2N but you can get via ME2S
    once you execute the ME2S you will see the PO lines and if oyu double click on it than you will get the all information you are looking but the exact query directly not possible with ME2S
    The best way is write the query using table ESUH and EKPO
    joint EKPO to ESUH and do the query based on your requirements.
    you can get the package number from EKPO and based on the package number you can retrive the data form ESUH table

Maybe you are looking for

  • Appraisal - Performance Management Quetions

    Hello We are on ERP 2005 and implementing Performance Management at the company. We have some questions in relation to the requirements: - Is there any documentation on the use of columns like OBJH, OBJB, QBJ7, QBJ8 etc. How to identify which column

  • Lightroom 5.7.1 can't import NEF files!

    Importing from an SDXC card - RAW photos shot today with Nikon D7000. Recently changed to Mac Mini running OSX Yosemite 10.10.1 and Lightroom 5. LR5 can "see" the images but when I try to import them I very quickly get a dialog box saying Some import

  • Updating CS6 failed

    Suddenly I can not more update the CS6 Software. Problem makes an Extension Manager 6.0.0. Trying to update manually this Extension Manager to 6.0.8 failed too. Before I was happy with Adobe...now..:-( Now neither the Creative Cloud App nor the Appli

  • UIX/ADF - Problems in Shuttle with JUCtrlListBinding

    I have a problem with an shuttle on my application. When try show items on leading trail, it show nothing and i get this stack error on console : 04/09/30 18:21:21 java.lang.ArrayIndexOutOfBoundsException: 0 04/09/30 18:21:21      at oracle.jbo.uicli

  • Load Customer Hierarchy to BW

    Hi, we created a Customer hierarchy in ERP (via transaction kes3). We already managed to create a datasource, wich delivers all data of the hierarchy. We can also replicate the data source in our BW system, but when creating an infopackage, we receiv