Continue to run the program while a specific sequence must only be performed every second

Hello world

How can I make a sequence runs every 1 s while that continue to run any code at the same time.

for example: a ligth will Flash with a frequency of 1 s. This must be done independently of any other code running at the same time.

I really was trying a lot of time without success. 'wait' does not work, "wait" not either or not event struct or anything other work out for that... Well, I was thinking "simple" question

Could someone give me a tip or even a code example? Please note that in my question I want to only run only a flashing LED. Lets say, I want to receive updates via rs232 Board, but only every 10 seconds. During this time, I want to run any code.

Thanks for the help!

Background information:

For 2 months I am programming a GUI with LabView, which gives me the ability to control via rs232 interface instruments. Up to now I understood a lot of LabView by myself, but here I'm stuck me :-/

'wait (ms)' or ' wait until... ". "should never be used for timing, they are used for the loop iteration and synchronize the process loop. Use the other functions of timing as past timer or the number of cycles...

CLD...

b. functions

1 use the wait function to control the loop execution rate and the processor response to external events and system tasks

2. use the function until the next multiple ms to control the rate of execution of loop and sync multiple loops

3. use any of the functions of waiting for a time software operation

4 use the number of cycles and the time to get in office operations of software time seconds

Tags: NI Software

Similar Questions

  • You can run this program while using another anti-virus program

     
     
    You can run this program while using another antivirus program?
    I know that it is a matter of end now that MS does not have anyone else.
    However, I was going to dnld MS antivirus with Norton market too.
    I couldn't find info on one might or might not run another
    antivirus program during execution of the Member States. (as a general rule, you can't)

    Still, it would be interesting to know about this issue. And... Should be
    have been on one of the pages, so "requirements" or FAQ
    for example.
    Thank you in advance, Ric.

    Hello Ric Buckmiller,

    Thank you for using the Microsoft Windows Vista Forums.

    What specific Windows Vista virus protection software are you talking about?  Windows Vista will be usually comes with Windows Defender.  Windows Defender is software that helps protect your computer against the pop-ups, slow performance and threats caused by the software security spyware and other unwanted software to detect and remove spyware on your computer. Windows Defender Protection features in real time, a monitoring system that recommends actions against spyware when it's detected, minimizes interruptions, and helps you to remain productive.  Yes you can use it with antivirus software.

    Currently, Microsoft has an antivirus software on beta.  http://www.Microsoft.com/security_essentials/support.aspx
    If you have this downloaded, it advised that you can always use another software antivirus at this time.

    Or you are referring to Windows LiveOneCare?  Please let us know status.  Thank you!

    How to uninstall any other antivirus or firewall program?

    Before installing Windows Live OneCare, please make sure that you uninstall completely any existing antivirus or firewall program that may be on your computer.

    This step is very important, no matter what protection software you use, because installing one antivirus or firewall program over another on the same computer could potentially lock up the computer.

    Note: If you do want to keep the ability to reinstall your old antivirus or a firewall program in the future, make sure you have the original product CD (or a backup program disk) before you begin uninstalling.

    Engineer James Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • LVDT offset before running the program

    Hi all

    I use an LVDT to measure the movement of the ground. This must take into account both the consolidation and swelling and therefore requires the LVDT to move in both directions. As a result, the voltage must be reset after the LVDT is pushed so that it can record both negative and positive direction. So far I managed to do it using a business structure that runs when the "zero" button is pressed. However, it comes into force once the program is run. What I need is a button "zero out" which can be used before the program is executed. I want so push in the lvdt, click on the "zero" button, then start running the program to avoid these initial tensions is recorded on the xy graph.

    I found a vi file that does this, but it was very complicated and used old version of labview. I'm relatively new to labview and therefore could not follow the coding on it.

    I've attached the vi file to make it easier to understand. Your help is greatly appreciated

    See you soon,.

    Gurung

    Two screen grabs show how I did the same 'Auto zéro' function when you use an LVDT to measure displacement, I was also saving strength at the same time then graphically representing the post record results.

    On the first race the true / false loop is set to TRUE, in this case the displacement is subtracted from zero to provide compensation, this offset value is then passed to the shift register where it remains as a constant for subsequent itterations of the main loop, while the value is simply passed straight through the true / false loop with nothing done to it on all iterations after the first.

    The offset value is then added to the data read from the LVDT to provide a number of displacement from zero since all that the program was headed all first. There is a 'Save' button on front of who's in a hurry to start and stop recording data - hope this is a help - Mike

  • Cannot run the program: "Sage 50 accounts.

    Original title: .net framework

    using windows xp, you try to run sage 50 software accountign, called wise, they said I have a problem with the .net framework, have "repaired".net Framework, with microsoft technical support and the program does not start, suggestions?

    What is the latest .net framework you have? (or the list of all if possible)

    You get specific errors when you try to run the program?
    If you right click on the program that you try to run, and then select "run as" and then "uncheck" the box to "protect my computer...". "then press OK. You get different results?
    Let me know. I'll see what I can do to help.
  • How to run the program success unlock the screensaver with password?

    Hello

    As I wrote in the title I'm looking for a way to run the program when the user unlock screensaver (station ultimate windows) which is secured by password.
    I need it for security reasons.

    Best regards

    This should be easy to set up using the Task Scheduler .

    (1) launch of Task Scheduler of Panel > administrator tools > Task Scheduler , or type Task Scheduler in the start menu.
    (2) use Action > create a task to start.
    (3) set up your task by giving it a name and by providing credentials if necessary.
    (4) under triggers tap new and choose on workstation unlock . You can choose to trigger the task for any user or group, or a specific user.
    (5) under Actions tap new and then locate the program that you want the task to run. You can add arguments here or point to a script.

    If you need assistance with setting up your task, try the Help menu in Task Scheduler task or by mail here.

  • Flash.ocx required to run the program...

    Hello

    I push myself a little crazy by an error message which began this afternoon.  I use a program called Activstudio and until today it worked fine.  This morning I went to update the flashplayer from adobe on my system and uninstalled the existing adobe products.  Now, I get an error message that says that this version of windows does not have the file flash.ocx that is required to run the program.  I have installed and uninstalled adobe Flash Player and shockwave player on a number of occasions now, I also searched on the net for about 4 hours to try the tips people gave for similar problems.  A good idea to copy the file flash.ocx and rebonding it in the c: windows\system32\macromed\flash folder, but the file flash.ocx does not exist so I can't do that.  I even downloaded the file flash.ocx by himself and place it in the folder, but nothing seems to work...  I don't have the original to the program software CD as it is a program I have given by a school for educational purposes...

    any help would be very welcome because I can't access one of my lessons...

    Nina

    Hi neeny468,

    Try the system restore and verify the result. If this does not help, then you will need to get the software to reinstall the program successfully.
    Step 1: Restore the computer to an earlier time when it was working fine
    a. Click Start, type system restore in the search box and then in the list click on the system restore program.
    If you are prompted for an administrator password or a confirmation, type your password or click on continue.
    b. in the System Restore dialog box, click on choose a different restore point and then click Next.
    c. in the list of restore points, click a restore point created before you started having the problem, and then click Next.
    d. click Finish.
    e. restart the computer and check if the problem persists.

    See What is system restore? : http://windows.microsoft.com/en-US/windows-vista/What-is-System-Restore

    You can also post your query to the adobe forums as they may be able to help with this:http://forums.adobe.com/index.jspa

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Signature problem when you run the program BluetoothDemo on Blackberry 8320

    Hello

    I try to connect from my computer to the Blackberry 8320 using a serial Bluetooth transceiver.  The "BluetoothDemo" program is not function properly.  When I run it, I first see a white screen with "Bluetooth Sample" at the top.  I click on the trackball and I get a menu with the options 'Listening to connections' and 'Full Meno'.  I click on listen for connections and a screen pops up that says "connect to an external device and then type something...» "I type something on the Blackberry and the letters appear, but no other options appear to verify a Bluetooth connection.  I have already associated the Bluetooth with Blackberry, but the connection failed appears when I run the program BluetoothDemo. When I click the trackball again, I see the full menu with "Serial Port close',"Get DB", etc..

    In my view, that there is a problem with secure API signatures.  Obviously the 'BluetoothDemo' program is not run after the first steps.  When I debug on Blackberry, I see the following output from the console, which leads me to believe that there is a problem with signatures:

    ocusHistory: Focus lost; Home screen App; Component net.rim.device.apps.internal.ribbon.launcher.RibbonIconField
    FocusHistory: Acquired Focus; Home screen App; Component net.rim.device.api.ui.MediaController
    JVM: bklt @286061: timer
    JVM: bklt @286061: idle 15
    JVM: bklt @292270: setTimer 15
    FocusHistory: Lost Focus; Home screen App; Component net.rim.device.api.ui.MediaController
    MWC: BluetoothDemo (4738) No sig 0 x 33
    From BluetoothDemo
    MWC: BluetoothDemo (4738) No sig 0 x 33
    BluetoothDemo (167) started
    BluetoothDemo (167) foreground
    FocusHistory: Acquired Focus; Home screen App; Component net.rim.device.apps.internal.ribbon.launcher.RibbonIconField
    FocusHistory: Lost Focus; Home screen App; Component net.rim.device.apps.internal.ribbon.launcher.RibbonIconField
    FocusHistory: Lost Focus; Bluetooth demo app. NULL component
    FocusHistory: Acquired Focus; Bluetooth demo app. Component net.rim.device.api.ui.menu.DefaultMenuListField
    FocusHistory: Lost Focus; Bluetooth demo app. Component net.rim.device.api.ui.menu.DefaultMenuListField
    BT: allocSerialPort a0d729a8
    BT: sdpAddRecord
    BT: allocSdpAttributeData
    FocusHistory: Lost Focus; Bluetooth demo app. NULL component
    BT: SppWrite-1 failed: 1
    Unable to write data. Exception: java.io.IOException: BtSppWrite failed

    I was puzzled at first running the program of BluetoothDemo and initially built and generated a file alx for the com_rimbluetoothserialportdemo program, which I think is used by the BluetoothDemo program.  The com_rimbluetoothserialportdemo program is currently connected to Bluetooth tx/rx, as indicated by the status of remaining devices firmly on instead of flashing (when BluetoothDemo runs the status light flashes, indicating no connection). When I switch between workspaces in which I have these projects, the set of keys is not signed, and I have to sign in again, which seems to cause the keys in the other workspace to become not signed.  As further evidence of the strange signature problem, sometimes when I run either on the Blackberry there is an error that says that the application is not signed.

    I want to delete the workspace and the file alx com_rimbluetoothetc could be a step in the right direction.  Do I have reason to assume that the 'no sig 0 x 33' is a problem with API signature secure?  Could BluetoothDemo access to com_rimbluetoothserialport and be denied because there no signatures?  Thanks for any help you can provide.

    Not sure that your reading of the code is correct.

    _dout.writeInt (JUST_OPEN);
    _dout. Flush();

    These two statements will write out - which seems to be the first thing the code does.  Then it goes into a loop of reading, but suppose a specifically formatted data.

    In my test, I removed these and replaced with something that I thought he would be working and I'm depending on the device.  As noted yesterday picked up O the data of a GPS puck - these things just send data, they never expect anything in return.  So my code looks like this:

    byte [] buffer = new byte [1024];
    for (;;) {
        int len = _din.read(buffer);
        String justRead = "Read: " + Integer.toString(len) + " bytes: " + new String(buffer, 0, len) + '\n';
        System.out.println(justRead);
    }
    
  • Asian locale?  Installed Acrobat XI for Windows, but when I try to run the program, it happens in some Asian locales - can not read anything!

    Hello

    I am setting up a new laptop and downloaded Acrobat Pro XI for Windows computer.  Download and install seemed to go fine, but when I try to run the program, it is coming in a few other locales (not French_FR).  What should I do to configure the program for the locale in the United States?

    (running Setup 3 times (to fix, modify, uninstall/reinstall), but so far nothing has worked.)  Even after uninstalling/reinstalling (where I deselected the local Korean), the program still continues to flow upwards in an alternate reality!

    Help, please!

    Thank you

    -fastkeysx

    Hi Vicki,

    Have you tried toggling this setting under Edit > Preferences:

    Kind regards

    Rave

  • Can I get a "schedule" of labview makes when it runs the program?

    Can I get a "schedule" of labview makes when it runs the program? that is how long it spends making each sub vi, and what order it's them.

    See you soon

    The execution Trace Tool kit is an add-on. If you do not your package of discs... maybe try a demo version?

    Spy OR get loaded with BT (or one of these things).

    Start > programs > National instruments > NI Spy?

    Ben

  • Button execution without running the program

    Hello

    Normally, when I am pressing the button "Run", it runs the program. How we prevent execution of the program, until I want to activate? For example, I have 3 feeds on my box of pxi, and I don't want to run the program until I have all my set value: voltage, current limit, output function and etc... Then I you press the as button (enable or together) to fix some tension to some power. I'm using Labview 8.6. Thank you.


  • have windows Defender installed on xp.updates come to him, he will not refresh. I find no shortcut to run the program. Any help

    Defender of the installed window xp. Updates, download the program, but do not install. Cannot find the shortcut to run the program. Any help?

    Hi MichaelMc Leish,

    You did it changes on your computer before this problem?

    You can follow these links and check if the problem persists.

    Troubleshooting of Windows Defender

    How to troubleshoot Windows Defender definition update

    Hope the helps of information.
    Please post back and we do know.

  • I can run the program in my computer?

    Original title: Ican, run the program in computer may
    -----

    phone call for example justvoip

    Hello

    always check the compatibility of vista programs on the link below

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx

    If a program is compatible with vista you can try right click on the setup.exe, and then selecting run as administrator

    It is not compatible with vista, you can try running it in a previous operating system mode

    This does not work for all programs

    read the information below

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-compatibility-mode/

  • Windows Live OneCare: I downloaded Windows Live OneCare scan my computer and everytime I run the program it gives me the same results.

    I downloaded Windows Live OneCare scan my computer and everytime I run the program it gives me the same results.

    But he never cleans or removes anything just the same results each time.  How to clean my computer?

    Found registry 7, 1cleaned, 6 errors.
    0 was ignored by the user.

    COM/active (1 error, 0 has been ignored by the user)
    File type associations (4 errors, 0 has been ignored by the user)

    System softward (1 error, 0 has been ignored by the user)

    Found 3140,6 MB, cleaned or compressed
    1.3 MB of temporary files and other
    C:\
    D:\

    Network security
    open ports 0

    Hello

    Are you logged on as ADMINISTRATOR when you access the scanner?

    Some errors cannot be fixed by the scanner, and many of those who are not at all important.

    Check-in of the Windows Live a Forums

    Security scan bulletin boards and return products
    http://OneCare.live.com/site/en-us/community/default.htm

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • "The editor has been blocked to run the program.

    What is the ground of this prob?

    "The editor has been blocked to run the program.
    Please give me rply soon!

    Hello

    1. when exactly you get this prompt?

    2. could you please develop the question?

    3 have there been recent changes to the computer before the show?

    Please refer to the below link mentioned before asking your question so that you can provide all the relevant information for us to help you:

    Suggestions for a question on help forums: http://support.microsoft.com/kb/555375

  • I run the program "TuneUp utilities" and I recently received a notification of the statement that "the BHDrvx64device does not work correctly.

    I run the program "TuneUp utilities" and I recently received a notification of the statement that "the BHDrvx64device does not work correctly" program proposed to update the driver, but there is no provision in any of the dialog boxes.  Windows Help and support says: help for this program was created in Windows Help format, which depends on a feature that is not included in this version of Windows. However, you can download a program that will allow you to view help created in the Windows Help format. All this brought me here, please, how to fix this?

    The last thing you want to do is install and run any third tuneup/Optimizer program.

    In the worst cases of such utilities can cause system failure or program, uninstall it, having restored firstly of the changes he could do.

Maybe you are looking for