How to create a time event without having user interface freeze

Hi,
I am new to labwindows and i am trying to create a time event where every hour for 24 hours i want my program to write somethign in excel. 
I tried using function Delay and SyncWait and those functions freezes up the user interface.
Any tips/help will be appreciated.
Thank You
Solved!
Go to Solution.

Many, if not most, CVI developers wind up implementing a delay function for themselves that periodically, during the delay, wakes up and processes events so that the GUI isn't frozen.
The idea is to break the wait or delay up into pieces, and process system events in between each piece.
A timer works too, you can try the async timer that Wolfgang mentioned, it runs a bit better and on a separate thread, so it lets you do what you normally would with the main thread and the GUI, yet still get timer function.   If you use a smart delay, you still wind up doing nothing a great deal of the time, and events are only processed periodically.

Similar Messages

  • HOW CAN I DELETE AN EVENT WITHOUT  HAVING TO SELECTING IT FROM THE LIBRARY?

    I have a big problem.
    I want to delete an entire event from my library because everytime I select it imovie freezes and then close itself up. So I have to re-open imovie again. And when I want to select that particular event again the same problem occures. So I can not select that particular event. Therefore I can take NO action on this event.
    HOW CAN I DELETE AN EVENT WITHOUT HAVING TO SELECTING IT FROM THE LIBRARY?
    (Everytime I select it imovie closes itself up)
    All other events work fine. I believe The footage had a problem from capturing. but now it's in my computer and i can't open it.
    Please help me, I don't need this event, I can't open it therefore I can't use it and it takes place on my hardrive for nothing.
    Thank you

    One can delete it from one's computer. In the finder go to homeuser, movies, imovie events, delete the footage.
    Then reopen iMovie and see if that helps.
    Hugh

  • How to listen a key event without having any window component

    Hi all,
    I would like to know how can I listen key events from an application that doesn't use windows
    Thanks

    yoiu can make a Thread run inside your application. This will listen for inputs in the command line. For examplethis is part of a chat server (on the console) with let the server manager to enter messages or commands.
    The message or command entered on the console by the user is catched and processed as a String. The string is passed to the processConsole() method, you must define yourself.
    Th Thread is never stopped, so the user may enter any message at any time
    The core of you application should also be a Thread for better performance, but maybe it will also work without. Jst try and provide needed importstatements.
    Runnable runInput = new Runnable() {
            public void run() {
              while(true) {
                try {
                  byte buffer[] = new byte[255];
                  System.out.print(prompt);
                  System.in.read(buffer);//, 0, 255);
                  String inputString = new String(buffer, "Default");
                  processConsole(inputString);
                catch(NullPointerException npe) {
                  System.out.println("Syntax error");
                catch(Exception e) {e.printStackTrace(); }
          Thread inputThread = new Thread(runInput);
          inputThread.start();

  • How to create a time counter without using Sleep()?

    I want to create a time counter that would count from 120 minutes and down. I thought about using Sleep() but I have found out that Sleep() is not accurate (so maybe the countdown would take 122 minutes instead of 120 minutes!). What other alternatives do
    I have?
    Note that I want to count 1 second at a time, because I want to show the countdown progress to the user in seconds.

    The next experiment still uses Sleep and waits for approximately 12 seconds, displaying the time each second. However it is probably too overcomplicated compared to time polling:
    const
    int SECONDS_TO_WAIT =
    12;
    ULARGE_INTEGER ul_end;
    FILETIME ft;
    GetSystemTimeAsFileTime( &ft );
    ul_end.LowPart = ft.dwLowDateTime;
    ul_end.HighPart = ft.dwHighDateTime;
    ul_end.QuadPart += 10LL *
    1000 *
    1000 * SECONDS_TO_WAIT;
    for( ;; )
    FILETIME ft;
    GetSystemTimeAsFileTime( &ft );
    ULARGE_INTEGER ul;
    ul.LowPart = ft.dwLowDateTime;
    ul.HighPart = ft.dwHighDateTime;
    if( ul.QuadPart >= ul_end.QuadPart )
    break;
    SYSTEMTIME st;
    FileTimeToSystemTime( &ft, &st );
    Sleep( 1000 - st.wMilliseconds );
    GetSystemTime( &st );
    if( st.wMilliseconds >
    500 )
    FILETIME ft;
    SystemTimeToFileTime( &st, &ft );
    ULARGE_INTEGER ul;
    ul.LowPart = ft.dwLowDateTime;
    ul.HighPart = ft.dwHighDateTime;
    ul.QuadPart += 10LL *
    1000 *
    1000;
    ft.dwLowDateTime = ul.LowPart;
    ft.dwHighDateTime = ul.HighPart;
    FileTimeToSystemTime( &ft, &st );
    // show the time
    SystemTimeToTzSpecificLocalTime( NULL, &st, &st );
    printf( "%02i:%02i:%02i\n", st.wHour, st.wMinute, st.wSecond

  • How to create a form which uses graphical user interfaces(GUI) features.

    i'm working as a administrator in a private college..i have some problem..
    how to create a student registration form that uses most of the graphical user interfaces(GUI) features. The form should consist of the following features:- Label, Button, Check box, Radio Button, List, Panel and Layout. The GUI features must be functional.
    how to write that programme in JAVA ?
    please help me to get the code..

    So are you saying that this person is legitamately asking for someone to write up this student registration form, for use in some sort of production student registration application? Ok, if so, I apologize for jumping to the wrong conclusion. But, to me it sounds like a student hit the "Using Swing" chapter in the text and was given the following assignment:
    For this assignment you are working as an administrator in a private college and you need to solve the following problem:
    You need to create a student registration form that uses most of the graphical user interfaces(GUI) features. The form should consist of the following features:- Label, Button, Check box, Radio Button, List, Panel and Layout. The GUI features must be functional.
    You have two weeks.
    Now, I suppose that I could be wrong, if so, I apologize and go with the previous poster that said ask a comp sci student to do this for you.
    Lee

  • How can I import a folder without having to import one photo at a time?  I have many folders and thousands of pictures!

    I have thousands of pictures in various folders on my computer. How do I import the "folders" without having to import one photo at a time?

    garyt28874359 a écrit:
    I have thousands of pictures in various folders on my computer. How do I import the "folders" without having to import one photo at a time?
    Where is the problem?
    You simply select the folder and check the option to import subfolders if you want. Then use the 'get media' button.

  • HT1918 Created an apple I'd using a wrong e-mail address. Can't access the e-mail to varify the Apple ID in order to be able to change the account settings. Any idea how can change the account information without having to varify the account through the e

    Created an apple I'd using a wrong e-mail address. Can't access the e-mail to varify the Apple ID in order to be able to change the account settings. Any idea how can change the account information without having to varify the account through the e-mail?

    You are trying to find a loophole to circumvent a basic rule that prohibits the transfer of purchased content from one Apple ID to another.
    Content tied to an Apple ID are bound to that Apple ID forever. You can not merge or trade accounts. Well, not (officially) anyway...

  • How do you download multiple apps without having to enter the password each time

    How do you download multiple apps without having to enter the password each time

    You don't, this is a security measure which can't be changed, however, if you purchase another App within 15 minutes your password should not be required.

  • HT1727 i bought some ringtones on my iPhone, later on i sync my iphone to my old computer now i have a new mac pro desktop and i only have 2 ringtones on my phone but not the rest of them how can i get them back without having to pay for them again?

    i bought some ringtones on my iPhone, later on i sync my iphone to my old computer now i have a new mac pro desktop and i only have 2 ringtones on my phone but not the rest of them how can i get them back without having to pay for them again?

    If you bought them on your iPad then you will need to connect your iPad to your computer's iTunes and do File > Devices > Transfer Purchases to copy them over to the Tones part of your computer's iTunes library and you can then sync them to your iPhone - ringtones are a one-time only download, so you won't be able to redownload them directly on your phone.

  • Is there any way to create 3D PDF file without having the model tree ?

    Is there any way to create 3D PDF file without having the model tree ?
    3D communication is good but sometime we don't want the receiver to be able to study every components in model.
    or any way to make the receiver cannot use model tree and measurement tool ????
    Thank you very much

    You can remove the assembly tree by doing a roundtrip in 3D Toolkit, here's how:
    - start Acrobat 3D
    - drag & drop a CAD file
    - click on 3D Annot to activate
    - right-click on 3D
    - select 'Edit in 3D Toolkit'
    - 3D Toolkit launches
    - click in 'Scene Tree' panel
    - right-click on top assembly name
    - select 'Tools->Collapse Hierarchy'
    - select 'File->Save'
    - select 'File->Exit'

  • How to create a recurring event in SharePoint 2010

    Hi there,
    I want to know how to create a recurring event that is 2 weeks long and start Monday. I want this event to recur every 4 weeks. I'm trying to create a schedule for two guys who work in the field.
    One guy works for 2 weeks in every 4 weeks starting on Monday.
    Thanks a million.
    Joe

    http://office.microsoft.com/en-in/sharepoint-server-help/sharepoint-calendars-i-make-the-most-of-your-team-calendar-RZ010255072.aspx?section=5
    You'll add items one at a time by clicking New Item on the
    New menu. Then you'll enter the item's details in a form. One other thing we should mention: It's easy to create recurring items, such as a weekly staff meeting. You do this by selecting the
    Make this a repeating event check box and then setting the item's recurrence pattern (for example, for a weekly lunch meeting you would set the pattern to weekly).
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/e3b81c14-3217-4450-89ea-627620c126c2/recurring-events-in-calendar-view-of-sharepoint-2010-lists
    The Recurrence Data field is unique to the Event Content Type. I don't see any way to add it to an existing list. You would need to recreate your list using Calendar list as the base if you were to use this approach.
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/04/11/how-to-make-the-sharepoint-calendar-events-recurring-by-default.aspx

  • [CS3 JS] How to Create a Timer?

    Within InDesign I need to be able to fire a periodic process to examine links from a JavaScript script. I have my own script running in its own engine.
    I can't figure out how to create a timer that will run in the background and call the appropriate callback function periodically.
    I've created a little process like this:
    * Sleeps for waitTime milliseconds then calls the callBack function.
    function timer(callBack, waitTime) {
    $.writeln("timer(): callBack=" + callBack + ", waitTime=" + waitTime);
    if (waitTime == undefined) waitTime = 2000;
    $.writeln("timer(): sleeping for " + waitTime + "...");
    $.sleep(waitTime);
    $.writeln("timer(): awake, calling callBack");
    try {
    return callBack();
    } catch (e) {
    $.writeln("timer(): Exception from callBack.exec(): " + e);
    return undefined;
    function myCallBack() {
    return Window.confirm("Callback called", true, "Continue looping");
    while (true) {
    if (!timer(myCallBack)) break;
    And this works in the sense that my timer runs, but it runs as a blocking process, which is not what I want.
    Is there something I'm missing or is this simply not possible in CS3 JavaScript? A search on "timer" in the InDesign forums didn't reveal anything, nor did the InDesign JavaScript Guide nor the Scripting Tools Guide.
    Thanks,
    Eliot

    1. Download and install Active Page Item Developer Toolkit.
    http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item-developer/
    You'll have a demo period for 20 days or a month, I don't remember exactly.
    2. Create a new document, open 'Active Page Item Developer' panel (Windows menu).
    3. Copy the script from my previous post, draw an object - e.g. a rectangle and with the object selected enter 'idle' into Event Filter field, then press Tab and paste the script into the largest field.
    You'll see an alert appearing every 10 seconds and the cursor flickering.

  • How to restore a control file without having its backup

    Hi,
    Can any one please suggest me how to restore a control file without having its backup.
    Thanks

    To add to what SB said, in years past the instructions for re-creating the control file manually were contained in the DBA Administration manual. It used to be and may still be common to be taking and saving a "backup control file to trace" for this purpose.
    If you lost only the primary copy of the control file and it is an OS file then while the database is shutdown you can copy the secondary over the primary and then use if to start the database. If the control file is stored in ASM then there should be a way to perform the copy via ASM.
    If you use rman for backups then a copy of the control file should be part of the backup process and you can retrieve it from the backup set then perform recovery using the backup control file though I do note the OP said something to the effect no backup exists. Still, I have knows of instances where the DBA did not realize that the backup set contained the control file and the spfile so I think this is worth mentioning just in case.
    HTH -- Mark D Powell --

  • How can I view iTunes charges without having iTunes?

    How can I view iTunes charges without having iTunes?
    Unless you have iTunes installed. I cannot find a way to see details about charges to my account.
    I understand that a confirmation email is sent after each charge, but unfortunately I delete those.
    Apple has to implement an easier way for people to track details of charges without the need of iTunes, since most people do not connect or depend anymore of iTunes and only use (OTA) for registration, updates, iCloud restore, etc.

    Sorry, but other than the receipts, the only way to view the dates and costs of a purchase are by using iTunes ona  computer. If you want to make suggestions to Apple regarding a different method, you can use their feedback pages:
    http://www.apple.com/feedback
    Those people who do not arrange access to iTunes are taking a big risk with their purchases, since without backing up to iTunes on your computer you're at the mercy of the app and content owners who can remove items at any time. This has happened on numerous occasions, and if that happens, redownloading that item will no longer be possible, leaving you with no recourse should you inadvertently or deliberately remove the item from your iOS device.
    Regards.

  • How can I deauthorize my account without having my previous laptops?

    I change my laptop a lot and now I bought a new laptop, but somehow I can't authorized my account in itunes because it said max to 5 computer.
    The laptop that I used previously have given to others. How can I deauthorize my account without having those previous laptops?

    If you no longer have, or access to, the computer(s) you want to deauthorise,
    Log in to iTunes,  go to "view your account info" on the itunes store, deauthorise all five,
    (Please Note: this can only be done Once every 12 months)
    Then re-authorize your current Computer(s) one at a time..
    Authorise / Deauthorise About
    http://support.apple.com/kb/HT1420

Maybe you are looking for

  • Smartview 11.1.2.1

    Hi, We are running All Essbase compnents on one unix box and are trying to implement the new smartview version (above) on the client side. Everything runs fine when things are on the same version: Essbase 11.1.1.2 Smartview 11.1.1.2 Provider Services

  • User View is not reflecting the source data - Transparent Partition

    We have a transparent partition cubes. We recently added New fiscal year details to the cube (user view as well as source data cube). We loaded the data to the source data cube. From the user view, we tried to retrieve data, it shows up 0's. but the

  • No sound from TV when AirPlaying Keynote from iPad

    I'm AirPlaying a keynote presentation from my iPad Air to my Apple TV 3rd generation. There's a video in the Keynote and when it plays, there's no sound but I can still see the video. I addes a short audio track to the presentation as a test and it c

  • Unable to Start Weblogic Admin Server

    I am working on Windows environment with Weblogic 8.1 sp3 when I start the admin from windows services the service shows as started but not able to get to console and also I tried starting the admin server from the command line it just stays here...

  • Cannot lookup LogicalLockingFactory from custom SFTP Adapter

    Hi, We developed an SFTP Adapter on a clustered Advanced Adapter Engine. When we try to lookup the LogicalLockingFramework, we get a ClassCastException and the proxy Class is missing the Interface LogicalLockingFactory. We use the following code for