Event edge trigged counter in software?

Hi
How can I create an event edge trigged counter in software? The counter
frequency is max 10HZ
I am using Labview 7.1
Looking forward for some suggestions
Thanks
kas

Hi, kas.
This question has been answered here. Have a nice weekend!
Sarah K.
Search PME
National Instruments

Similar Messages

  • Count digital events on a Counter with pci-6602 with callback on CVI

    Hi,
    I'm using a PCI-6602 card with CVI 8.5 and I need to trig on event.
    On every pulse I received, I need to do some actions like increasing a counter, send a message on Rs232 etc.. I don't want to do any loop checking that the counter value has changed. I would like to use a callback to execute this code only on the edge or counter value event.
    My problem is that I don't know which function can do this. Is there any way to get an event on a pci-6602? 
     Thanks 
    James 
    Solved!
    Go to Solution.

    Hello.
    It's completely possible to create a callback that will allow you to do what you want when a edge will occur on an external signal you define.
    To do this, you can for exemple create a counting edges task that will use one of the 6602 counters,and the set your external signal to be the source of your sample clock.You'll then be able to register a callback with the function DAQmxRegisterSignalEvent, and your callback will be called each time an edge will occur on your specified sample clock source.
    Here's 2 links that explain the events in DAQmx and how to handle them in CVI. The example ReadDigChan-ChangeDetectionEvent.pr that ships with DAQmx examples (Hardware Input and Output<<DAQmx<<Digital measurements) can be very useful to understand how to do. This example creates a signal event callback to detect change detection for digital inputs.
    Regards.

  • Is anyone else trying to use Edge Animation to create software simulations?

    We're in the process of evaluating Edge Animate to create software simulations. We want to use it because it has many great HTML5 functions. We're also evaluating Captivate7 - which also has an HTML5 option - but it lacks some of the functionality we're looking for. Like the ability to show users a 'hint' when they hover their cursor over an object. Why that functionality isn't there already - I still can't figure out. It would be create if Adobe could take some of the functionality in Edge Animate and incorporate it into Captivate! It would make an awesome product!
    If you're attempted or were successful creating a software simulation using Edge Animate - I would be interested in hearing how you accomplished it. Also looking for some best practices around this idea.
    I think Edge Animate would be an amazing product for software simulation if it incorporates a few enhancements.
    In the timeline - allow the user to nest things. The timeline can get unwieldy quickly. Would be nice to be able to nest items and then twirl the nested items to hid them - like in AE.
    Enable AE functionality with the ability to play one Edge Animate piece inside another.
    Provide the ability to add video with transparent backgrounds. We wanted to have someone walk on screen and appear as if they were walking on the software. Can't do it in Edge Animate!
    If you have any other ideas or suggestions for creating software simulations in Edge Animate - would be great to hear from the community

    Hi there,
    Thanks for your suggestions! We're looking at ways to make the timeline more flexible as far as nesting and/or hiding elements, so hopefully these types of improvements will come as Animate continues to grow. Just wanted to quickly pop in to address a few of your bullet points - hopefully, other Animate users can answer regarding whether they use Animate for software simulation.
    Your first two points (I think) can be at least somewhat addressed by using symbols. Each symbol has its own timeline which can contain many elements, but it will appear as a single element in the main (Stage) timeline.
    Regarding video, there's currently only one HTML5 browser that natively supports video with alpha transparency: Chrome, using video encoded to the webm format. See here for more info: Alpha transparency in Chrome video - HTML5Rocks Updates
    Once other browsers start incorporating native support for video with transparency, this could be pretty cool. But as of now, native browser support is still quite limited.
    Thanks,
    Joe

  • Event handling operation on other software windows

    Hi friends
    I am able to execute another external program through java code using
    Runtime.getRuntime().exec();
    But now I want to perform Event Handling operation on such a opened external program(software) window.
    Is it possible in Java to perform Event Handling operation on other software windows.
    Thanks

    Can anybody give me some idea. I already gave you hte idea. I told you to write the C++ code to do it. There is no other way. You cannot do that from Java.
    WRT the sockets post:
    whether you use JNI or sockets: the accessing code will still not be written in Java. Hence you still can't do it in Java.

  • IPhoto sort events by photo count

    Hi,
    I need to track down events with 1 photo or more
    How can I sort events with photo count included?
    iPhoto'08 7.1.5 MacOSX 10.7.5
    or
    iPhoto 9.6(910.29) MacOSX 10.10 Yosemite

    iPhoto menu ==> Provide iPhoto feedback
    LN

  • How to retrieve the schdule who has a event for triger?

    Hi Guys,
    Is there anyone who knows how to use SDK to retrieve those schdule who has to wait an event to triger?
    I don't find any related info under CI_Infoobjects.
    Pls kindly help on this.
    Thanks.
    Regards,
    Daniel Tang

    If you are on 3.x, you can add si_scheduleinfo.si_dependants.si_total > 0 to your where clause for scheduled jobs waiting on an event or si_scheduleinfo.si_dependencies.si_total > 0 for jobs that trigger an event.  I don't think it's possible to get this information in 1 query if you are on R2 because nesting properties aren't supported.

  • Reset 6602 Counter with Software

    How can I reset a 6602 counter through software (using DAQmx functionality i assume) while a counter task is running?  I would like to be able to reset the counter at any point while the task is running without restarting the task itself.
    Message Edited by MREDAY on 06-08-2009 02:46 PM
    Message Edited by MREDAY on 06-08-2009 02:47 PM

    Sam,
    This sounds like a very strange problem, and difficult to diagnose without more information.  Is it consistent about how many times you can stop and restart the task before running into this problem?  Can you go into MAX and start and stop the Test Panels repeatedly without any issues?   What about running the example programs, do they work fine?  Also, does it give you any kind of error message when it crashes and/or the next time you open your program?  (What are you using to communicate with your cDAQ?  LabVIEW?)  
    Also, which version of the DAQmx drivers do you have?  If you don't already have the latest version (9.0.2), I would recommend upgrading.  You can download the latest ones here.   Do you have any other computers that you could try this on?  It would be interesting to see if you see the same behavior there.  
    -Christina

  • 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.

  • Counter to generate event after certain counts

    Hi everyone,
    I would like to use my PXI card to generate an event (to my software) every say, 100 counts(for 100kHz Timebase). In other words, is it possible to generate an event every 1 ms based on the counts on the counters.
     Also, is it possible to reset this counter based on the GPS 1 PPS? I wanted to sync this counter with the incoming GPS PPS. Thanks!
    Regards,
    YB

    Hello,
    It is possible to reset a counter using a boolean input. If you could convert you GPS PPS signal to a boolean array, this idea applies.  I'm linking a knowledgebase article that demonstrates how to reset a counter. It should be very useful in getting you started.
    http://digital.ni.com/public.nsf/allkb/65E3DBC715998C3286256E900075B7F8?OpenDocument
    Best wishes,
    Wallace F.
    National Instruments
    Applications Engineer

  • Two edge seperation counter

    Hi,
    I'm struggling to use the counter on a USB 6251 to count edges - can anyone advise?
    I need to count edges on the source input between aux and gate inputs, using Two-Signal Edge Seperation Measurement as described on page 7-18 of the M series manual (April 06 371022F-01 release of this document). The device should be capable of this, it was sold to me specifically to perform this task.
    My problem is that I can get seconds or ticks between edges on the Aux and Gate signals (on PFI 10 and 9 for counter 0), but not a count from the source input.
    I have verified both in MAX and my own code that the source input works - level changes can be detected there.
    Is there a setting I have missed that forces the device to read from the Source input (PFI8 for counter 0), instead of using it's own clock?
    See attachment for code.
    Bandit
    Attachments:
    Test Harness - Test counter.vi ‏23 KB

    Hi Jon, thanks for the reply.
    I'm measuring dynamic wear on a rotating drive nut. The nut is driven up and down a fixed threaded rod. Start trigger (edge one) is from a fixed position the nut passes. Pulses are counted from regular spaced lines around the nut. An index mark against one of these lines provides the stop trigger (edge 2). As the nut wears, the pulse count between edges will change and so wear in the thread can be measured. For this application a time isn't what I need - it's the fraction of a turn the nut makes between the start and stop trigger that I need to measure.
    The USB 6251 was chosen for this task in conjunction with my local NI field engineer. We selected it after reading the M series manual section on Two-Edge Seperation, which describes measuring the seperation of 2 signals either in time, or as a count of source events (as per my original, not very detailed post). I have posted after spending a day trawling help files, product manual, vi libraries, user forum and knowledge base.
    Two edge measurement should work from rising or falling edge of aux to rising or falling edge of gate (and it does). You get to choose rising or falling edge for each with the DAQmx Create Channel.vi in it's (CI Two Edge Seperation) variation.
    The only problem I have is getting a timing input from the source connection.
    I will check the DAQmx Count Edges task as you suggest, though at the moment I don't know how I use both start and stop triggers.
    Watch this space for an update, or post any further info you come up with.
    Regards,
    Bandit. 

  • How should i read two counter through software of Ni 6602

    Hello all,
    i want to know that how should i read two counters same time of NI 6602  using c#.net.
    Please  guide me.

    Hello,
    I have a couple of suggestions for you to look into and determine which is best for you application. 
    -  Use a Two Edge Separation task to count ticks and not seconds (by changing the units) between a start and stop trigger.  The two trigger signals will need to come from different sources.  The KnowledgeBase (KB) linked below describes the task in further detail.  This KB explains why a reference trigger is not recommended.  Open up the C# example in the Measure 2 Edge Separation folder from the location listed in the previous post.
    AE KB 2IK8FRXA: How Do I Count Digital Edges Between a Start and Stop Trigger on an NI 6602 Counter/...
    -  Use an Arm Start Trigger as a start trigger with the Count Digital Event task.  It will only allow of a start trigger and not necessarily a stop trigger.  The Developer Zone link below provides a coded example. 
    Developer Zone: DAQmx - Event Counting on Multiple Counters with Digital Start Trigger (TIO) - LabVI...
    -  Use an Arm Start Trigger to synchronize multiple Count Digital Edge tasks and paired with Pause Triggers to pause acquisition based on source level. 
    Developer Zone: Synchronous trigger start of multiple counters and pause independently
    For more information on the type of triggers mentioned, refer to the DAQmx Help.
    Samantha
    National Instruments
    Applications Engineer

  • Generate an Event based on Counter Trigger

    Hello,
    I have the following part that is already working: a counter (used for period measurement) which is triggered by a digital input. After that I'm reading the data and I'm puting them in a Queue. Here I get an error. The Enqueue Element Vi is providing an error. (Error 1, something with a @  character that is illegal). I've notice that if I disable the trigger for the counter I don't get the error. I'm thinking that this is cause by the delay between the moment in which the Enqueue Block tries to enqueue and the moment in which the counter provides something to its ouptut.
    What I want to do is to Generate an Event based on the Counter Trigger Signal and to put all the reading and Enqueue part in an Event Structure. I've tried to do that using an Export Signal - Property Node, but I didn't manage to make it work.
    If you have any solution for this (with or without events -  I just want to get rid of that error) please let me know.
    PS: I have Labview 8.5.1 and the USB-6210.
    Thanks,
    LostInHelp

    Hello Mike,
    Thanks for your replay.
    I've attached two vi files. In one you can find how I've tried to generate an event based on the counter trigger (test.vi).
    The second one (test1.vi) is the vi where I get the queue error. I've deleted from the second vi the part where the data are dequeue and handled.
    Thanks
    LostInHelp
    Attachments:
    test41.vi ‏50 KB
    test110.vi ‏35 KB

  • Card with trigger event and hardware counter?

    want to have a card with fuctions:
    1) trigger an event by an external elec-photo sensor.( need 2 on the card)
    2) hardware counter (count optic encoder signal pulse, 0-200hz) .
    is there a card like this ?
    or even 2 seperate cards?
    thanks

    Hi zy9,
    Thank you for posting to the NI forums.  For a specific device recommendation, please post back with the following information.
    1.      Type of event being triggered
    2.     Output range of the photo-sensor
    3.     Output range of the optic encoder
    Our Multifunction DAQ Devices (M Series) will probably be your best option.  These include analog and digital triggering as well as two 32-bit counters for your encoder signal. 
    In addition to the M Series devices’ product pages, you can also use our DAQ product selector to find a good match for your application.  It will allow you to narrow down your search results by selecting specific functions that the device must have. 
    I hope this helps!  Please post back if you have more information or any further questions.
    Regards,
    Ed Waxler
    Applications Engineer
    National Instruments

  • PXI-5660 / 5620. What is lowest reasonable voltage when using Analog Edge Trig?

    Presently, I am using Analog Edge Ref Triggering on the PXI-5660.  The lowest voltage that I can set the trigger level to is 0.200 volts without noise causing the trigger to occur.  Is this level reasonable?  Is there a way to reduce the noise so that the trigger level can be set lower?
    I graphed the waveform coming out of the niScope MultiRead Cluster.vi in the ni5660 Read Average Power Spectrum.vi.  The noise on the graph was as high as 0.190 volts.  I thought that I saw the noise down to 0.010 volts at one time.
    Thanks.

    Thank you for your response.
    The reference level I am using is 0 dBm.
    I ran the ‘niScope SMT Power in Band.vi’ example with dithering enabled and disabled.  I could see the noise when dithering was enabled and the reduced noise or no noise when dithering was disabled.  See attached .jpg’s.  I added ‘Waveform Graph 2’ to display the output of ‘niScope Multi Read Cluster.vi’.
    In my application, I disabled dithering and put the trigger level lower.  It now works.
    Disabling dithering needs to be set after ‘ni5660 Configure for spectrum.vi’.  Inside the ‘ni5660 Configure for Spectrum.vi’, a vi called ‘SMT Configure RFSA for Spectrum.vi’ enables dithering.  ‘SMT Config niScope for Spectrum.vi’ is another vi that enables dithering.
    Thank you for your help.
    Attachments:
    SMT Power in Band with 50 ohm termination on input of 5620 Dither Disable.jpg ‏100 KB
    SMT Power in Band with 50 ohm termination on input of 5620 Dither Enable.jpg ‏106 KB

  • How do i develop code in LabVIEW 7.1 for configuring and performing gated edge counting using NI-DAQmx

    Hi,
    My application requires DAQ counter channel to count the rising edge of the input signal connected to the source pin of the counter. This counting has to take place only when there is a high pulse in gate pin of the same counter.This can be developed easily using traditional daq vis.
    Please let me know how to develop code using DAQ mx.
    Thanks,
    Sudha

    There is an example that demontrates how to do this in DAQmx called "Count Digital Events-Pause Trig.vi".
    gus....

Maybe you are looking for