02-04-2008 05:39 AM
02-05-2008
04:14 PM
- last edited on
10-29-2025
08:47 PM
by
Content Cleaner
Hello,
There are some great NI examples that download with the DAQmx driver. Please refer to the following KnowledgeBase for the location in which they download on your computer. Since I have the 8.6.1 driver, my examples were located at C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DotNET2.0\Counter
AE KB 47CCSQ5B: NI-DAQmx, NI-VISA and NI-488.2 .NET Example Locations
I used the example titled Count Digital Events, which is located under C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DotNET2.0\Counter\Count Digital Events\CountDigEvents\cs, where cs refers to C#.
Please note that there cannot be multiple counters in the same task for input operations. Thus, to read/acquire from two counters you will need to open and run two of these examples at the same time. For your convenience, there are also examples specific to other counter measurements in related folders.
02-06-2008 02:56 AM
Thanks sir,
now i am trying to fire external trigger for start and stop of counter ,
please guid me.
02-06-2008 02:56 AM
Thanks sir,
now i am trying to fire external trigger for start and stop of counter ,
please guid me.
02-21-2008
07:28 AM
- last edited on
10-29-2025
08:49 PM
by
Content Cleaner
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/Timer Board?
- 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) - LabVIEW - ANSI C – CVI
- 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.