Continue execute program while a specific sequence only should be executed every second

Hi everyone
How can I make a sequence executing every 1s while continue executing other code in the meanwhile.
e.g.: A ligth should blink with a frequency of 1s. This should be done independently from other code running the same time.
I really was trying it out a plenty of time unsuccessfully. "wait" does not work, "wait until" not either nor does event struct or anything else work out for that... well I thought "simple" issue.
Could anyone give me a hint or even a example code? Please note that in my issue I don't only want to execute only a blinking LED. Lets say I want to receive updates from a board via rs232, but only every 10 seconds. Meanwhile I want to execute other code.
Thanks for help!!
Background inforamtion:
Since 2 month I am programming a GUI with LabView that gives me the ability to control instruments via the rs232 interface. Until now I figured out a lot of LabView by my self but here I got stuck :-/ 
Solved!
Go to Solution.

apok wrote:
"wait(ms)" or "wait until..." should never be used for application timing, they are used for loop iteration and synchronize loop processes. Use the other timing functions like elapsed timer or tick count....
CLD....
b. Timing functions
1. Use the Wait function to control the loop execution rate and allow the processor to respond to external events and system tasks
2. Use the Wait Until Next ms Multiple function to control the loop execution rate and to synchronize multiple loops
3. Avoid using any of the Wait functions to time a software operation
Well, I was just focusing on the blinky, and didn't figure it to be a time-critical operation (I figured the same thing for the data acq every 10 sec, but this may not fit his requirements). What I do when I just want to make a blinky is to set up a loop which switches the LED between off and on. That way I can change the period, otherwise, I would just use the "blink" property node (1 sec period, IIRC).
But, as you say, in time-critical operations, you do want to use the time functions which do depend on the absolute value of the system clock. In a parallel loop.
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ

Similar Messages

  • Pause action .vi while a specific sequence is running

    I have a test fixture with two sockets. In teststand we have a prerun.vi in the setup tab that preps some reference equipment. What I need to do is pause the execeution of that vi only when a specific sequence in the main sequence is running.  Is there a way I can monitor the execution status through teststand? For example socket 1 is running a uut and someone starts a uut in socket 2 while sequenceX is running. I want the prerun.vi to halt execution until SequenceX is done running.

    Use the syncronization step types.  A notifier step would probably work good.

  • Execute Java Program in a specific time everyday

    Hi All,
    I need help for Execute Java Program in a specific time everyday.
    I want to do insert data into database every 3:00 AM everyday.
    I thought there is a one thread program will do. It is correct my understanding? Please let me know and guide me How can I do?
    Thanks
    Amit

    If you are using Window$ then you can create a bat file to execute the program and place the bat file in Scheduled Tasks.

  • How to execute a specific function only in DEBUG and AdHoc modes

    Hi,
    What i would like to do is a simple button with an action method, This button is initialized, created, assigned to its action method and shown ONLY in Debug and AdHoc modes. So as a developer or tester, i can see the button, but in the release, the client won't be able to see that button.
    What i did so far is the following:
    -In my project-->Build Settings Tab, i set the Debug values to 1 in both Debug and Adhoc, like this:
    -Then i opened up the prefix.pch file, and there, i am blocked and i don't know what to do.
    Basically, my action method is something like this:
    UIButton btnSwitch=[[UIButton alloc]init];
    //Etc...
    The above code should be called in a specific file (The UIViewController class which should contain the button).
    How can i do that, i mean, how can i tell my application to execute that code in a specifi file only in DEBUG and Adhoc modes.
    Thanx in advance.

    Hi,
    What i would like to do is a simple button with an action method, This button is initialized, created, assigned to its action method and shown ONLY in Debug and AdHoc modes. So as a developer or tester, i can see the button, but in the release, the client won't be able to see that button.
    What i did so far is the following:
    -In my project-->Build Settings Tab, i set the Debug values to 1 in both Debug and Adhoc, like this:
    -Then i opened up the prefix.pch file, and there, i am blocked and i don't know what to do.
    Basically, my action method is something like this:
    UIButton btnSwitch=[[UIButton alloc]init];
    //Etc...
    The above code should be called in a specific file (The UIViewController class which should contain the button).
    How can i do that, i mean, how can i tell my application to execute that code in a specifi file only in DEBUG and Adhoc modes.
    Thanx in advance.

  • GPS Tracking program that continues to track while using other iPhone apps

    Does anyone know of a GPS tracking app for the iPhone 3G that will continue to track while listening to music or answering calls? The few apps I've tried quit logging when you change to another app.

    Thanks - hopefully Apple will address this soon. I'm not willing to hack/jailbreak my phone just to get this functionality.
    One last dig:
    This is the unfortunate reason that I've stayed away from Apple for so long. They make WOW stuff that is pretty and neat to use as long as you stay inside the "box" so to speak. I guess I'll have to take my old blackberry running with me - it can play music AND track your run with GPS. Who would want to do that?

  • How can I sign up with Enterprise program, while I have an active membership of the iOS developer program?

    How can I sign up with Enterprise program, while I have an active membership of the iOS developer program?
    I have bought a memership for the iOS Developer program.
    I have created an in-house app.
    Now I want to publish it to all employees without registering the devices.
    So..
    I go to their website and try to sign up for the enterprise program, image shown below:
    http://s29.postimg.org/q06ylh5o6/Clipboard01.jpg
    Within the image above, I click continue...
    http://s14.postimg.org/46lqcpy74/Clipboard02.jpg
    Then I am taken to the image above, there I need to select a program, but I already have a program, the iOS developer program!  And the checkbutton of that program, is disabled. If I try to click continue at this page, without sleecting a program, a javascript-box shows "You have to select a program before continuging"...
    Do I need to unsubscribe my iOS developer program, to then register it again? Lol!
    PS: no clue where I should post this, looked over the forums and could not see anything related to singing up, registering for a program...

    Our apps came offline automatically shortly after this as iTunesConnect thought we had not renewed our license, even though we had several weeks ago.
    We had a brief panic as our apps were offline for 12 hours, which is how long it took Apple Support to work out what was wrong and hook things up. 
    I suggest you contact them ASAP to get this fixed so you don't get that iTunesConnect alert to your phone 'Your app status has been changed to Pending Contract'.

  • I partitioned a small drive for a windows program, and now the computer only wants to boot to Windows.  How do I get back to Mac so I can have a choice of drives?

      I partitioned a small drive for a windows program, and now the computer only wants to boot to Windows.  How do I get back to Mac so I can have a choice of drives?

    That doesn't sound good. It sounds like the power outage might have corrupted the partition for OS X. I would suggest booting from the Install DVD that came with your Mac while holding down the C key. Once you have selected the language start up Disk Utility from the pull down menu and repair the disk. Once you have done that then repair permissions also.
    Allan

  • Crashes while opening specific project in Professional 2010

    Hi,
    I am keep on crashing my MS Project Professional while opening specific project, able to edit other projects without any issues .
    event viewer gives following error message, not able to find pdb files to debug 
    Faulting application name: WINPROJ.EXE, version: 14.0.4751.1000, time stamp: 0x4b8e2648
    Faulting module name: WINPROJ.EXE, version: 14.0.4751.1000, time stamp: 0x4b8e2648
    Exception code: 0xc0000005
    Fault offset: 0x0018e4a4
    Faulting process id: 0xe44
    Faulting application start time: 0x01d019598e0af28c
    Faulting application path: C:\Program Files (x86)\Microsoft Office\Office14\WINPROJ.EXE
    Faulting module path: C:\Program Files (x86)\Microsoft Office\Office14\WINPROJ.EXE
    Report Id: 03f5cf9b-854d-11e4-b02f-1c659dacae4b
    any pointers to trace the issue
    S.Venkata Appaji

    Appaji,
    My guess is the file is corrupt. But first, let's make sure you have SP2 installed. It appears from the version number above that you do not. You can download SP2 at: http://support.microsoft.com/kb/2687457. I also recommend you install the June 2013 cumulative
    update. You can get that at: http://support2.microsoft.com/hotfix/KBHotfix.aspx?kbnum=2817385&kbln=en-us.
    If after installing the updates you still cannot open the file, go to the MVP website at, http://project.mvps.org/faqs.htm and take a look at FAQ 43. Use method 4.
    Hope this helps.
    John

  • Install itunes to a specific user only

    I want to install itunes for a specific user only. Currently both users are administrators however i want the itunes/quicktime installation to reflect on 1 user only i.e. the one i intall it from. How can i do this? Is there a command line parameter that would allow me to install it for 'current user' only? Please advise.

    Just change the installation path to somewhere in the other users account. The default is C:\Program Files\iTunes. You could change it to something like
    C:\Users\accountname\iTunes. or something like that for vista. and
    C:\Documents and Settings\accountname\iTunes. or something like that for XP.
    accountname is the name of the account that you are trying to install itunes for.

  • Premiere Pro CS4 Sequence Error? (Timeline Window says No sequence, Program Window says no sequence)

    Hey, I was trying to edit a bunch of .mpg files together, in a new project file, in a sequence 01, and all the primary editing windows came up, and while I can easily get the source window to recognize sequence 01, both the timeline and the program window say no sequence and dragging sequence 01 or any of the .mpg videos does nothing.
    Since I can't even see the timeline of this I can't edit, so if someone could help me as soon as possible that would be great

    Double click any sequence in the bin to open it.
    This kind of basic functionality is pretty well covered in the Help file.  I recommend reading it all the way through before you use Premiere.

  • Can i edit my program while the program is running?

    With some programming languages you can pause the program while it's running, make a change to it and continue. This feature would be very usefull to me. Does anyone know a routine to accomplish this in LabView?
    Thanks
    Dusty

    Hello Dusty,
    I have a program with some filter routines in a library. The user can select one of the filters and process data with it.
    Because of the "call by reference" I can edit those filters while the main vi is running. And I can even add or delete the filters, as the main vi has a "scan" routine to check for new filters... I thought such a mechanism could be helpful to you.
    Best regards,
    GerdW
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Apply script on specific pages only

    Hi!
    I would like to know how to apply some script on specific pages only.
    I would like to apply it on pages number 4 to 50 on a 50 page project, and so exclude page 1, 2 and 3.
    Here is my actual script:
    var doc = app.activeDocument,
    objStyle = doc.objectStyles.itemByName('stylenamechosen'),
    a = doc.allGraphics,
    i = a.length;
    while( i-- ) a[i].parent.appliedObjectStyle = objStyle;
    Please let me know.

    Dear Jump_Over,
    Sorry for the delay...
    //below code working fine
    var myDoc = app.activeDocument;
    var myGraphics = myDoc.allGraphics;
    for(k=0; k<myGraphics.length; k++)
        myGraphics[k].parent.appliedObjectStyle = myDoc.objectStyles.item("testing");
    //below code not working with page range
    var myDoc = app.activeDocument;
    var myGraphics = app.activeDocument.pages.itemByRange(3, -1).allGraphics;    //Error found in this line
    for(k=0; k<myGraphics.length; k++)
        myGraphics[k].parent.appliedObjectStyle = myDoc.objectStyles.item("testing");
    Document having 10 pages.
    Thanks
    Beginner

  • DVR automatica​lly resets watching a recorded program while its recording

    Three times now I've been watching a recorded program while the DVR was recording another program. The DVR reset itself over and over again so I lost whole chunks of the recording.  The first couple of times this happened it coincided with my hitting the fast forward button. The last time it seemed to be related to a time conflict because the DVR was recording two programs at once. I called Verizon tech support each time and the only solution they've offered is to do a "soft boot" resetting the box again.  Anybody else had a similar experience?

    Nope.

  • Error while creating Access Sequence (output)

    Hi,
    While creating Access sequence (for an output) i.e. Access Sequence - Accesses - Fields (at this point)
    I am getting an error (I/O) in the field.  The field value is WERKS and not able to go further.
    I created a table for output billing and criteria fiels are sales area and plant.
    Please guide me in this regard.
    Thanks and regards,
    Rao

    Hi Praveen,
    I created a condition Table xxx and selected fields (Sales Area, Plant).  While creation of access sequences for an (output type) at the Fields level i am able to see all the 4 fields but with the field WERKS it is showing an error.
    Regards,
    Rao

  • Just downloaded Firefox 6.0 and have restarted 4 plus times, but it continues to hang while launching. I cannot open new windows, change any settings, or do anything but Force Quit. I'm on Mac OSX 10.5.8. How do I get past this hang?

    Just downloaded Firefox 6.0 and have restarted 4 plus times, but it continues to hang while launching. I cannot open new windows, change any settings, or do anything but Force Quit. I'm on Mac OSX 10.5.8. How do I get past this hang?

    Long story short: Simply get CC for teams. At 500 bucks a year it's a steal and those 5 licenses in the base package (or was it 10 even?) cover all your computers, at least the 3 ones you mentioned. For system requirements refer to the individual product pages.
    Mylenium

Maybe you are looking for

  • Setting IT performance report in Solman

    Hi, We are trying to set up IT performance reporting in Solution Manager. BI client is same as production client. The Info objects are not getting activated. The job fails with the message to use a different BI client. SOLMAN SM37 Job log: Message te

  • The signal is not stable after the updates 7.1 ver

    Dear friends, i have a problem with my BB 9380 curve, after i update from 7.0 to 7.1 my signal is not stable. if u have any suggestions to solve this case. the reason why i update this mobile because my social servces is to slow. instead of solving t

  • Sync SmartGroups to iPhone script

    I need to sync SmartGroups to the iPhone but only regular groups are synced, so I thought about having a script that copies all contacts from a SmartGroup to a group everyday at 22:00. (Deleting every contact from the target group before if it exists

  • 3.01 patch not working under Vista 64 SP1 ?

    Hi, Under Vista64 SP1; launching "Audition 3.0.1 Patch Setup.exe" shows a first dialog box for language selection... after clicking "OK" nothing happens. Launching "instmsiw.exe" brings up a dialog box which displays "Wrong OS or OS version for appli

  • Error msg iTunes cannot run files are missing - reinstall itunes

    I keep getting a message when i try to open iTunes 9 telling me to re-install. When I do, large portions of my music files are missing from iTunes on laptop. They are on my iPhone 3G, because I synced them from iTunes before it crashed. How do I get