1ms Time Loop / Event Trigger from Counter

Hi.  I'm pretty new to LabView so I'm am hoping this is an easy question:
I need to read the pulse signal from some reluctors (toothed wheels that pulse a signal with each passing tooth).  The amplitude of each pulse is above 2.2V so I was planning on using TTL counters.
I need to record the status of 5 counters with each increment of one of the counters  For the RPM and tooth count, I can do this with a 1ms timed loop.
Question:  Can windows successfully give a 1ms (accurate) timed loop?  I know this depends on how much I am doing inside the loop but, for now, I just need to read 5 counters and store the data with a timestamp.
Is it possible to make a counter throw an event?  If the counter is incrememented, can LabView be notified to then go off and handle a block of code?
Thanks for any help you can offer!

I assume you also have an analog input card for the chasis?
So, it's probably possible to get 1ms timing with software timed loops, however based on my quick check of the manual for your chasis
http://www.ni.com/pdf/manuals/372780c.pdf (see section 2-2 for example)
You can use an Analog Comparison Event or a PFI channel to trigger a sample (i.e. your generated pulse is the sample clock). This could allow you to use your pulse to trigger an analog sample. Now, this doesn't get you timing information (it just gets you the value of the analog input at the time the event occurs). To get a time, you can use the counters on the digital card in the same way. You have the counters be driven by a fast sample, on-board clock. Then you can use your pulse events again to sample that clock. So each pulse, you get one analog voltage sample and one time sample from the counter. The resolution on this counter will be great, depending on how fast your counters can be driven (sometimes NI counters can actually be driven faster than the fastest available clock on the card or chasis). 
Or you can just do the software loop.

Similar Messages

  • Custom Event Trigger from MDM Item Detail Iview

    Hello,
    We are using EP 7.0 EHP 1, MDM 7.1 SP04.
    EP & MDM trusted connection is activated.
    We want to trigger UWL iview once record is saved from MDM Item Detail
    Iview.
    Following steps are performed but still no results were observed.
    --> Open Item Detail Iview
    --> Click on Custom Details
    Enter Following Details:
    Custom Event Name: UWL
    Event Type: EPCF POST SAVE EVENT
    Target (URL or Event Name): http:/<portalURL>:<port>/UWL/
    Namespace: urn:com.sap.netweaver.bc.uwl.ui.UWL
    Parameter Format: Standard
    Quick Link name to uwl iview is stored in project folder is given as
    "UWL" and hence target url is http:/<portalURL>:<port>/UWL/
    Could you pl guide us on what settings are missed??
    Supporting Link used:
    http://help.sap.com/saphelp_mdm550/helpdata/en/45/c89e544c52570be10000000
    a114a6b/frameset.htm
    Regards,
    Purav

    Please check out below link. It might be of some use.
    [http://help.sap.com/saphelp_mdm550/helpdata/en/45/c87d0243e56f75e10000000a1553f6/frameset.htm]
    (Go to Configuring Data Exchange)
    Regards,
    Abhijeet

  • Times of events change from mobile me to touch

    When i sync mobil me to I touch the event times change

    OK, I think I have it figured out--at least my problem seems to be solved.
    I noticed that each event was off by exactly 5 hours, that is, my iCal event (on my MBP) was 5 hours earlier than the time shown on my iPod Touch. I am in New Orleans, and I happen to know (because I was a blue water sailor for many years) that here we are 5 hours behind GMT. So I went looking on the iPod for something that might make that adjustment.
    Sure enough, if you go to Settings/Mail, Contacts, Calendar, then scroll down to Time Zone Support--turn that OFF. That solved the problem for me. Calendars are synching perfectly now. Hope this helps you and others with similar problems.

  • How do you map a custom event trigger to a DHCP ?

    In the Auto Smarports Config Guide, Cisco IOS Rel 15.0(1)SE, July 2011, it states Auto Smartports can detect devices based on DHCP options. There are predefined macros for devices detected through DHCP.  I have a few questions:  1) What are these predefined macros? and 2) can I specify a user-defined event trigger from DHCP options?  How do I do this?

    Hi Flowserve1,
    What hardware are you using to make your measurement? What driver are you working with? You will be able to make measurements with your counter on a digital signal. If you look at the device pinouts for your device in Measurement and Automation Explorer you will see the counter terminals.
    Steve B

  • Time loop and events (again)

    Good morning,
    I still have problems with time loops and events.
    I have an event structure based on run time menu (two buttons: start stop).
    When I push start, an automatic sequence is started made of a state machine (so a while loop).
    I want to stop the process by means of presing stop in the run time menu. The problem is that the system doesn't respond when I press the button (it's not locked since I unchecked the option to stop front panel acitivity in the event structure configuration). I see that the pression of the stop command is made, but the code inside the event structure is not executed.
    How can I avoid this?
    Thank you,
    Fede

    Events don't react to changes in local and global varables, and that's usually a good thing.
    To trigger an event programmatically, you should write to a signaling property of the control assigned to the event, and the event will fire (even if the value does not actually change).
    Attached is a simple modification of my example that forces a stop of any ongoing measurments every 10 seconds using the above method.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Prova Loop MenuIII.zip ‏15 KB

  • Sales order creation, standard event trigger is taking long time .

    We have a requirement where we are sending data to CRM system using RFC function module. This data is sent while sales order creation or change. We have used standard event BUS2032.CREATED to trigger CRM FM in sales order creation mode. In sales order change mode, we are using custom event. In production system, our custom change event is getting triggered fine and data is sent to CRM system with small time lag of around 1 minute. But, while sales order creation, standard event trigger is taking long time ( sometimes about 20 minutes) in production system.
    We tried triggering same custom event at the time of sales order creation using FM u2018SWE_EVENT_CREATE_IN_UPD_TASKu2019 as well but, still we are not able to improve performance of the event trigger at sales order creation.
    Regards,
    Sushee Joshi

    HI,
    we have written SWE_EVENT_CREATE in update task
    I think instead of calling in update task simply call to function module CALL FUNCTION "SWE_EVENT_CREATE" might trigger the event immediately.. Did you try to check in this way..
    OR
    And I also suggest you to check the entry in SWE2 txn with respect to your workflow tempalte, may be you have enable the option ENABLE EVENT QUEUE, this could be one of the reasons.. If it is enabled please disable it (uncheck)
    Please check..
    Regards
    Pavan

  • Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this

    Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this?

    First, uninstall "SuperTV" (whatever that is) according to the developer's instructions. It isn't working and it's filling the log with noise.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Post the messages logged before the boot, while the system was unresponsive or was failing to shut down. Please include the BOOT_TIME message at the end of the log extract.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message. When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    PLEASE DO NOT INDISCRIMINATELY DUMP THOUSANDS OF LINES FROM THE LOG INTO A MESSAGE. If you do that, I will not respond.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • In downloading my Events from iPhoto on my Mac to my iPad Air, the Events arrive in the proper order but not showing the Key Photo.  At the same time, the Events arrive in iPhoto on the iPad in totally random order but showing the Key Photo.Why?

    In downloading my Events from iPhoto on my Mac to my Ipad Air, the Events arrive in Photos in the correct order but not showing the Key photo. At the same time, the Events arrive in iPhoto in a totally random order but with the Key phto showing. Why? of course and is there a way to shift the order in Iphoto and get a Key photo in Photos?

    HHi, thank you for the reply. I have checked my iPad and iPhone and neither has iCloud Photo Library (Beta) enabled. Turned off in both. Photostream is turned on.
    i tried to sort it out  by dragging all the photos to Events on the Mac and then deleting them from iCloud - (left hand side of iPhoto under the section 'Shared'). the photos now show up in Events. I did force quit but the issue remains. The message reads ' photos are bing imported to the library. Please wait for import to complete.'
    i can't empty iPhoto trash either. The message read "Delete error. Please wait for import to complete.'
    WHen I was moving the photos to the Events I always had a message about duplicates - to the effect that the photos already existed, did I want to import them? I clicked on Yes, import all duplicates. But when it showed the images - duplicates side by side - one showed the photo and the other was blank.
    I really don't know what to do! And I don't know how to handle my iOS devices. Is it to do with the large number of photos? Any help, advice appreciated.

  • How to stop a while loop of event structure from a main vi

    Hello;
    sorry for my english
    I have to stop a subvi from my main vi, the subvi contains a while loop and an event structure so I need to stop this loop while directly from my main vi I have tried global variable but it did not work
    any help please or example !!!   
    Solved!
    Go to Solution.
    Attachments:
    stop a while loop and event structure from main vi.png ‏16 KB

    IYED wrote:
    Hello;
    sorry for my english
    I have to stop a subvi from my main vi, the subvi contains a while loop and an event structure so I need to stop this loop while directly from my main vi I have tried global variable but it did not work
    any help please or example !!!   
    If this is an example of how your code looks, I'd clean it up before the developer who has to work on it next hits you over the head with his LabVIEW Style Book. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Is is possible to open event lists from different tracks at the same time in Logic Pro 9?

    Is it possible to open event lists from two difference tracks in an arrangement at the same time in Logic Pro 9?
    When I switch between tracks the event list swiches as well. Thanks in advance.

    If you deselect the litte chain link icon in the event list window, it will no longer follow your region selection and you can openas many as you need. Also you can select multiple regions and see the inthe SAME window if you select to show multiple regions, and you can have the notes shown in their respective track colors.

  • I'm a beginner with iMovie and my hard drive is filling up fast. How do I move the event files from the hard drive to my time capsule?

    I'm a beginner with iMovie and my hard drive is filling up fast. How do I move the event files from the hard drive to my time capsule?

    you should never (ab)use a designated backup-setup for 'ordinairy' storage tasks.
    plus, the wireless connection to TC is too slow for iMovie.
    purchase any ext. usb-harddrive, 500Gigs starting at 50$ ...
    you HAVE to follow advice given here:
    http://help.apple.com/imovie/#mov3ac6d42c

  • On-dispatch-event trigger related to mscomm (load weight from weight scale

    aoa!
    please guide me to pick weight from weight scale.
    i m using mscomm32 ocx for this purpose.
    clarify the role of on-dispatch-event trigger and specify all events
    regarding mscomm and also explain how to trap events for accomplish
    task.
    thanks in advance.
    Tool used:developer 6i & oracle 10g windows xp(sp2)professional.

    Thanks, but I've already seen this thread and done the steps described on it.
    Actually, my question is very specific... How to populate the fields LinkVal and LinkUnit of the registry...
    I read all the threads here in SDN and they don't answer my question...
    I'd be glad if someone had already done tcode HUPAST works for Filizola...
    Tks again.

  • Hi, I would like to ask about how to capture data from real time loop.

    Hi,
    Here is some overvier of my project:
    I have done real time control using labview 9.0. I used PID controller.
    In order to optimise this controller, I need to capture data from my sensor(input) and actuator (output).
    1. For example while real time control is running. I need to capture 1000 sample data (sensor(input) and actuator (output)).
    Then I will used these data for PID optimisation on the other loop without intefere my real time loop.
    2. When PID optimisation is completed, I will sent its PID parameter to real time control loop.
    3. These operation is done in parallel.
    Anybody can help me to solve these. Your idea may solve my problem.
    TQ

    Typically you will have to use RT FIFO or Queue communication to avoid any impact to your time critical loop.
    Best regards
    Christian

  • Timer fires during trigger processing on web

    I was looking for a way to augment the default behaviour
    of a hierarchical tree. The trouble is clicking in a tree can fire various combinations of WHEN-MOUSE-CLICK, WHEN-TREE-NODE-SELECTED, WHEN-TREE-NODE-EXPANDED,
    WHEN-TREE-NODE-ACTIVATED, WHEN-MOUSE-DOUBLE-CLICKED. I wanted to trigger some action after they had finished firing but as I didn't know which would fire last, where to put the code ?
    The solution I found was to start a 1 ms timer in WHEN-MOUSE-CLICK (which always fires first), gather information from the other triggers into a variable, and do my processing in WHEN-TIMER-EXPIRED. This worked fine on client/server but when I deployed it on the web I found the timer expired between WHEN-MOUSE-CLICK and WHEN-TREE-NODE-SELECTED (triggered by a single click).
    My understanding of timers is that, however short their duration, they should not expire during trigger processing. Have I got this wrong or is this a bug ?
    It seems to work OK with 5 ms but I would like to know what is going on.
    (f6i patch 7)

    All,
    as promised, here's an answer from development. Duncan said it already, but here's the long version
    1). Regarding timers in general. 1ms timers fire on the server (effectively,
    at the time the timer is created in a trigger, we put a timer macro on the
    stack so that that next time we go for input (after we've processed all
    of the events we've already gotten at that point), it will act as if the timer
    has expired. This, as you know, prevents us from doing round-trips to the
    client when people are simply creating a timer to get around some of the
    restricted built-in/trigger issues. Any timer of longer than 1ms will get
    created on the client and thus cause round-trips. We have no plans to
    bump that threshhold up, so people could use 2ms timers if they wanted...
    2). Regarding timers expiring during trigger processing. It is true in both
    client/server and web that we will not expire a timer while a trigger is
    firing. However, the order in which the user will see events (and thus
    which triggers will fire in) can vary. In the example that was given,
    the user (double)clicks on a node in the tree on the client. The first
    mouse click causes a message/event to be sent immediately to the
    server, which ends up causing the when-mouse-clicked trigger to fire.
    As soon as that message is sent, the server starts processing that
    trigger. In the meantime, the client may decide that it needs to send
    other messages (such as when-node-selected, etc.). However, until
    the server sends a return-message to the client asking for more input,
    this won't get sent. Now, the server fires the when-mouse-click trigger,
    and as part of it a timer gets created. There are two possible scenarios
    here.
    In the first scenario, the timer is 1ms, and thus is handled on the
    server. Thus, when the trigger ends, the server sees if there is any more
    input to be processed, and sees that the timer has expired (because, as
    I explained above, this gets put directly onto the macro stack). Thus, the
    timer expired trigger fires. After that trigger fires, the server sees that it
    has no more input waiting, and sends a message to the client telling it to
    send more input. At that point, the client can send whatever other events
    it has queued up (such as the when-node-selected) and we carry on.
    In the second scenario, the timer is more than 1ms long. In this case, when
    the trigger says to create a timer, the server queues up a message to send
    to the client telling it to create a timer. When the rest of the trigger is complete
    and the server sees that it has no more events to process, it sends this timer
    creation message to the client at the same time it asks the client to give it
    more events. The client sends the when-node-selected event, the server
    processes it, and eventually asks the client for more input. By then, the
    timer has expired and then the timer message gets sent to the server.
    In neither of these cases does the timer trigger fire in the middle of
    another trigger that is already firing, it is simply that the separate triggers
    might fire in a different order because of the order that the underlying
    events are processed. In client/server, the process is effectively the same
    as the 2nd scenario above, because the timer is handled by the toolkit, just
    like the other events, and thus the message for the timer expiring will get
    sent to Forms after any of the events related to the mouse click. But again,
    the rule about timers firing during trigger processing is not violated, it is just
    that there is a break between triggers that can allow a 1ms timer to fire
    'sooner' on the web than in client/server.
    Fran

  • How to trigger a counter with AI input

    Hi,I have a question on how to trigger a counter with AI input.We are using a DAQ board with two counters(counter 0 & 1),and we have an external synchronization signal input at a frequency of 50 Hz or so.The counter is set to event counting mode.Now we want to trigger one of the counters so that the counter starts a new counting process each time it detects a rising/falling edge from the sync signal.Can anybody kindly show me how to achieve this?Thanks a lot.
    Regards
    Verdi

    Verdi,
    I think that the behavior you are looking for can be achieved by configuring the counter for buffered period measurement. The counter starts counting from some initial value with each rising or falling edge on the gate. You could also use buffered event counting, but the count value will not reset with each edge on the gate. I don't know what you're using to program the board, but you could start by looking at the counter examples that are installed with NI-DAQ.
    Hope this helps,
    Erin

Maybe you are looking for

  • My husband and I have the same apple account.  How do I make two accounts?

    My husband and I each have i-phone4gs and i-pad iOS 5.0.1 We initially set them up on the same apple account, but now would like to have two separate accounts and two separate i-cloud accounts. How do we make this happen.  We don't want each other's

  • Lyrics won't show up

    I can't get lyrics to display on a lot of my songs that do have lyrics in iTunes. First, my iPod Touch was messing up all my album art, so I deleted all of it and put it back on the iPod, and that fixed it. Then, it decided not to show lyrics. Once a

  • InDesign CS3 Feathering/Text Error

    I am experiencing a strange error when I feather a photo placed in my InDesign CS3 file. If I feather it in Photoshop and keep a transparent background (PSD or EPS) and don't flatten the image, or if I feather the image directly in Indesign CS3 using

  • I've had it.

    I've been having so much trouble with Safari that I've all but stopped using it. Whenever I type something into a dialogue box or try to compose email it goes haywire. If I type and use the 'space bar' it jumps to the bottom of the page, if I use the

  • HT201250 The backup disk image "/Volumes/Data/Lucio Bernal's iMac.sparsebundle" is already in use.

    I am getting this message when Timemachine tries to back up.  The backup disk image "/Volumes/Data/Lucio Bernal's iMac.sparsebundle" is already in use. Does it have something to do with Moutain Lion that I just installed?