Beginner timing program - triggering with photogates

Hello, 
  I am attempting to create a program in which I can time the sprint time of runners that break photogates, which are connected to channels on the measurement device. The idea is that once the photogate is broken, there is a voltage trigger that begins a timer, and the timer stops once the the next photogate trigger is broken (another voltage trigger). I have something very basic attached in which if a voltage threshold is surpassed (from one channel), a time is taken, and then potentially when the next threshold is surpassed, another time is taken, and perhaps the two times can be subtracted, but I can't seem to make this work out of the program, thus it is not quite exactly what I am looking for. I am very new to LabView and I think the solution might be simple, but I can't seem to work it out. Could you give me any suggestions?
Thanks for any help.
Attachments:
sprintspeed_timer2.vi ‏33 KB

For the program to do what you want you only have to have it remember all the times it triggered - in my example I used a shift register with an array for that.
There are a few things to be aware of (maybe more than I'll think of now):
1. Windows is not a real time OS - your measurement may be off by a couple of microseconds. If it has to be exact doing the timing in software will not suit you.
2. If you can live with that you still have to be careful with that timing VI. It counts to 2^32 - 1, and then it starts over. That might happen during the time you want to take.
Regards Florian
Attachments:
sprintspeed_timer2_array.vi ‏25 KB

Similar Messages

  • How to view what are all programs maped with the event....

    I am new to this events concept - could you please say
    in SM64 we can give Event....
    <b>How to view what are all programs maped with the event..</b>
    Thanks in advance.

    Hi Sam,
    See these links:
    How-to trigger a process chain using ABAP?
    Re: scheduling process chain 3 specific times a day
    NOTE: If you want to trigger the process chain from R/3, there are many examples in this forum. However, since the search function is not working now, I suggest you look at OSS Note 135637. This will show you how to do it also.
    Hope this helps.
    concerning to sm64 ..
    Triggering events manually ...
    Events let you start background jobs when particular changes in the R/3 System take place. When an event occurs, the background processing system starts all jobs that were scheduled to wait for that event.
    example : JOB_OPEN to create a background job..
    When scheduling a background job, you can specify it to start "after event".
    If you do so, you'll have to create an event in SM62.
    If a job is scheduled after event event and you trigger the event with SM64, the job will start.
    Events can be raised by external systems in SAP by sending a command to a SAP application server. You can also raise event in any program using function mosule BP_EVENT_RAISE.
    Reward if helpful.
    Regards,
    Harini.S

  • Getting this error while opening a folder : This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel

    Hi,
    While trying to open a folder on my Windows 7 Home Premium, an error comes "This file does not have a program associated with it for performing this
    action.  Please install a program or, if one is already installed, create an association in the Default Programs control panel." I tried searching on the net but did not get great support for the issue when it happens with folder opening.

    Hi Nikunj Shah,
    First, I suggest you download
    Microsoft Safety Scanner or
    Malicious Software Removal Tool to run a full scan.
    The error messages here seems to be caused by the corrupted registries, which related with the folder association.
    You may take a try to merge the following registry settings to reset the folder association, before that, remember to backup your registry settings first:
    How to back up and restore the registry in Windows
    Copy and paste the following commands into Notepad, and save it to a .reg file:
    =================
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\Folder]
    "ContentViewModeLayoutPatternForBrowse"="delta"
    "ContentViewModeForBrowse"="prop:~System.ItemNameDisplay;~System.LayoutPattern.PlaceHolder;~System.LayoutPattern.PlaceHolder;~System.LayoutPattern.PlaceHolder;System.DateModified"
    "ContentViewModeLayoutPatternForSearch"="alpha"
    "ContentViewModeForSearch"="prop:~System.ItemNameDisplay;System.DateModified;~System.ItemFolderPathDisplay"
    @="Folder"
    "EditFlags"=hex:d2,03,00,00
    "FullDetails"="prop:System.PropGroup.Description;System.ItemNameDisplay;System.ItemTypeText;System.Size"
    "NoRecentDocs"=""
    "ThumbnailCutoff"=dword:00000000
    "TileInfo"="prop:System.Title;System.ItemTypeText"
    [HKEY_CLASSES_ROOT\Folder\DefaultIcon]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
      65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,33,00,00,00
    [HKEY_CLASSES_ROOT\Folder\shell\explore]
    "MultiSelectModel"="Document"
    "ProgrammaticAccessOnly"=""
    "LaunchExplorerFlags"=dword:00000018
    [HKEY_CLASSES_ROOT\Folder\shell\explore\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    [HKEY_CLASSES_ROOT\Folder\shell\open]
    "MultiSelectModel"="Document"
    [HKEY_CLASSES_ROOT\Folder\shell\open\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\
      65,00,00,00
    [HKEY_CLASSES_ROOT\Folder\shell\opennewprocess]
    "MUIVerb"="@shell32.dll,-8518"
    "MultiSelectModel"="Document"
    "Extended"=""
    "LaunchExplorerFlags"=dword:00000003
    "ExplorerHost"="{ceff45ee-c862-41de-aee2-a022c81eda92}"
    [HKEY_CLASSES_ROOT\Folder\shell\opennewprocess\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    [HKEY_CLASSES_ROOT\Folder\shell\opennewwindow]
    "MUIVerb"="@shell32.dll,-8517"
    "MultiSelectModel"="Document"
    "OnlyInBrowserWindow"=""
    "LaunchExplorerFlags"=dword:00000001
    [HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\BriefcaseMenu]
    @="{85BBD920-42A0-1069-A2E4-08002B30309D}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\Library Location]
    @="{3dad6c5d-2167-4cae-9914-f99e41c12cfa}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\Offline Files]
    @="{474C98EE-CF3D-41f5-80E3-4AAB0AB04301}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\DragDropHandlers\{BD472F60-27FA-11cf-B8B4-444553540000}]
    @=""
    [HKEY_CLASSES_ROOT\Folder\ShellEx\PropertySheetHandlers\BriefcasePage]
    @="{85BBD920-42A0-1069-A2E4-08002B30309D}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\PropertySheetHandlers\Offline Files]
    @="{7EFA68C6-086B-43e1-A2D2-55A113531240}"
    [-HKEY_CLASSES_ROOT\Folder\ShellNew]
    [HKEY_CLASSES_ROOT\Folder\ShellNew]
    "Directory"=""
    "IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
      74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
      00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,33,00,\
      00,00
    "ItemName"="@shell32.dll,-30396"
    "MenuText"="@shell32.dll,-30317"
    "NonLFNFileSpec"="@shell32.dll,-30319"
    [HKEY_CLASSES_ROOT\Folder\ShellNew\Config]
    "AllDrives"=""
    "IsFolder"=""
    "NoExtension"=""
    ==================
    Once done, right-click the REG file and choose Merge. Alternately, you can open the Registry Editor and then using the
    Import option from the File menu, to merge the REG file contents.
    Let me know if you need any further help.
    Best regards
    Michael Shao
    TechNet Community Support

  • Every time I update or repair in the control panel it comes up with a error message like, this file does not have a program associated with it for performing this action, please install a program if it is installed create an association to the default pro

    EVERYTIME I UPDATE SOFTWARE OR GO INTO THE CONTROL PANEL TO ITUNES TO REPAIR OR CHANGE IT GIVES ME AN ERROR MESSAGE
    THIS FILE DOES NOT HAVE A PROGRAM ASSOCIATED WITH IT FOR PERFORMING THIS ACTION. PLEASE INSTALL A PROGRAM, IF IT IS INSTALLED CREATE AN ASSOCIATION TO THE DEFAULT PROGRAMS CONTROL PANEL

    STOP SHOUTING!  Or at the very least, get the CAPS lock key fixed.
    Remove iTunes.
    Download and install the current version of iTunes from http://www.apple.com/itunes/download

  • Tying to install itunes and I get error message "This file does not have a program associated with it for performing this action.  Please install a program, or if one is already installed, create an association in the Default Programs control panel.  Help

    am tTying to install itunes and I get error message "This file does not have a program associated with it for performing this action.  Please install a program, or if one is already installed, create an association in the Default Programs control panel. Can anyone help me?

    Hi,
    Here is a similar thread for your reference:
    There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default programs control panel
    http://social.technet.microsoft.com/Forums/en/w7itproappcompat/thread/036e3cf6-bff7-4ef2-bd0a-555cd2399ad4
    Hope this helps
    Vincent Wang
    TechNet Community Support

  • ITunes installation error: does not have program associated with it for performing this action

    Repeated tries to install iTunes continues to fail. Installing on Acer laptop using Windows 7.
    Error: does not have program associated with it for performing this action
    We have done the following: open Default programs, clicked associate a file type, clicked on change program button and selected a program to open with and clicked OK/enter.
    The installation continues. we get to the finish window; click finish.
    Next error: iTunes has been installed incorrectly.
    So, what do we do to get iTunes working?
    Thank you.

    Hi normeagle,
    Welcome to Apple Support Communities.
    You may find this article helpful for troubleshooting your iTunes installation:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Best,
    Jeremy

  • I am trying to install Adobe premiere elements 8 on my new computer (Windows 7). The program ansvers with "the program not installed or can be damaged".

    I am trying to install Adobe premiere elements 8 on my new computer (Windows 7). The program ansvers with "the program is not installed or can be damaged". Then aborts the installation.
    It`s right, the program is not istalld, it is  what i`m trying to do. And there is no problem whit the DVD. Any suggestions?

    "Error 1303: Installer has insufficient privileges" or "Error 1304: Error writing to file" | Install | CS3, CS4, CS5 pro…
    this link FIXED MY PROBLEM! i did the steps to the programdata\adobe folder and it installed FINE!

  • Timed out error with Fp-2000 while find devices

    When I try to Find Devices in MAX (version 3.1) I get the error "The connection to a remote device timed out". With the File Transfer and the Install Software I don't have the problem. I tried to use a different Workstation, different IP Address but the problem persists. Do you have a solution?
    Vincenzo Pascariello

    Hi,
    the 2 flashes of the Status led are indicating that the software is not properly installed.
    As for the Devices not found problem, I don't think the problem has to do with MAX, FP software or LabVIEW 7.1.
    When devices are not found, generally there is a communication problem.
    This can be possibly due to 2 situations:
    1) There is a bent Pin on one of the FP-TB which is making the Fieldpoint bus not to work properly.
    2) There are network problems. One way to workaround this might be to connect to the FP-2000 using a crossover cable and link directly to the PC. This avoids any network connection problems.
    The last thing you need to take into account is that the FP-2000 module might be damaged and need repair.
    If you are unable to get to a solution, contact NI Tech Support at
    02.41.30.92.17 and ask for support with an Engineer
    Regards,
    AlessioD
    National Instruments

  • Can't access firefox anymore because "it does not have a program associated with it"

    Suddenly today I was unable to launch firefox as normal. Told that "this file does not have a program associated with it for performing this action" And that I should create an association in the Folder Option control panel. I have not been able to work out how to do this, and wonder where the program (that has obviously been there for the past few years) has disappeared to?? I am still using Windows XP....... could it be something to do with that?

    There are some malware infections that make it hard to run programs (EXE) files. Hopefully you do not have one of those.
    Could you check whether it is a problem with your shortcut by starting Firefox a different way:
    Start menu > Run, type or paste the following and then press the Enter key or click Go:
    firefox.exe

  • I have LR 5.  When I'm in the book module and select the option to "Send Book to Blurb" i get an error message saying "The file does not have a program associated with it...."  How do I fix this?

    I have LR 5.  When I'm in the book module and select the option to "Send Book to Blurb" i get an error message saying "The file does not have a program associated with it for performing this action.  Please install a program, or if one is already installed, create an association in the Default Programs control panel."
    How do I fix this?

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • Keeps telling me my file does not have a program associated with it and go to folder options in the control pane. Where is it located

    When I try to save a file the download window keeps coming up. When I click to open the erro message says "File does not have a program associated with it for performing this function. Create an association in the folder options control panel." Where is this control panel and what kind of association do I make. Usually it was adobe but I don't have that choice

    Try using this link first https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file?esab=a&s=File+does+not+have+a+program+associated+with+it+for+performing+this+function&r=0&as=s
    Also it could be the type of file you are downloading. Like if it was a type of text that your default word processor did not accept it would give you that message.
    Hope this helps,
    Jeremy Eramian

  • This file does not have a program associated with it...

    Ok, I'm not awesome at technological troubleshooting, so if someone could help me, I would be grateful because I'm getting frustrated.
    I'm trying to play a silly little game online and it's telling me I need Shockwave.  I know I have it because I've played this game before (something time-wasting on addictinggames.com) and I found a file called Shockwave 11 in C:\\WINDOWS\system32\Adobe\Shockwave 11 with all sorts of things in it.
    I checked my Add/Remove Programs list and it says I have Adobe Shockwave 11.5 and that it is used rarely.
    Since there seems to be a glitch here that I don't understand, I went to the Download Shockwave page on this site and tried to download the latest version or whatever, if that would work.  The gray progress bar moves across under the "Adobe Shockwave Player is now installing" line and then I get an error popup that says:
    "This file does not have a program associated with it for performing this action.  Create an association in the Folder Options control panel."
    What am I supposed to do?  What does this mean?  What file?  Huh??
    I am running Internet Explorer 7 and have Windows XP.
    I am a total noob and need to be spoken to like a child.  Can anyone please help me? 

    I clicked on your link (thank you - where did you get that?) and installed the Full version, apparently successfully, though during the download there were a couple of components that were troublesome. 
    The error message I got during setup read: "Error opening file for writing: C:\WINDOWS\system32\Adobe\Director\SWDNLD.EXE   Click Abort to stop the installation, Retry to try again, or Ignore the skip this file."  Retry did not work, despite having clicked it 10s of times.  I clicked Ignore, then got the same message again, but about a different file: C:\WINDOWS\system32\Adobe\Director\SwDir.dll   Clicking Retry again did not help move things along, so I ignored this one too.  What does this problem indicate?  Do I need to do something here?
    Those are the only errors encountered during setup.  I declined the Google toolbar.  The dialog box says Successfully Completed; I clicked Close.
    So I go to try to play this game as a test and it says "Installing Shockwave Components" and then I get the same error popup telling me that this file does not have a program associated with it for performing this action and that I need to create an association in the Folder Options control panel!
    What does this mean and how do I do it, since it appears to be critical to getting this thing to work...?

  • 'This file does not have a program associated with it for perfoming this action'?

    'This file does not have a program associated with it for perfoming this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel". Any help? This error message has never come up before. I have tried to open the page on 3 different devices but the same error message. All help is greatly appreciated as I need to print the page out for my course I am doing. Thanks all.

    You get this when doing what?  Can you post a link to the page that gives you this message?

  • Powershell shortcut gives"this file does not have a program associated with it for performing this action"

    Hi,
    We have a server where powershell gives an error. The shortcut or the context menu for start button (replaced cmd in context menu) gives an error saying "this file does not have a program associated with it for performing this action".
    In some events, like going to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools\Windows PowerShell.lnk and opening it results in bupkus. Nothing happens.
    Browsing to C:\Windows\system32\WindowsPowerShell\v1.0\ and running powershell.exe directly or opening cmd.exe and typing powershell <enter> runs powershell as it should.
    What gives?
    This posting is provided "AS IS" with no warranties or guarantees and confers no rights

    Hi,
    I'd probably try asking here:
    https://social.technet.microsoft.com/Forums/en-us/home?forum=winserver8gen&filter=alltypes&sort=lastpostdesc
    This is more of an OS issue than a PowerShell issue, IMHO.
    Good luck.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • This file does not have a program associated with it for performing this ac

    Hi all,
    After creating an application for a WebDynpro project, when I execute the project (Deploy New Archive and Run) the application I am receiving then following error message.
    "This file does not have a program associated with it for performing this action. Create an association in folder options in control panel."
    Pls can anyone provide the solution.
    Regards
    Ravi

    Maybe the problem its on the Run part. It is supposed to open a navigator and go to the URL of the application you just deployed.
    Try deploying on one step and then Running on other.
    If it is the Run then open the navigator and test your App.

Maybe you are looking for