NI Home > Community > NI Discussion Forums

Multifunction DAQ

Showing results for 
Search instead for 
Do you mean 
Reply
Member
Matt11
Posts: 10
0 Kudos
Accepted Solution

Synchronization of pulse generation and digital edge counting with one PCI-6229

Hi there,


I am using PCI-6229 and labivew 8.0 to simultaneously generate two pulse trains and count digital event (one CI). The two generated pulse trains have different initial delays, and retriggerable configuration and 80MHz timebase for tick clock are used for high time accuracy purpose. However, when these two functions-pulse generation and edge counting- are combined into a single vi, pulse generation is functioning but edge counting is not. Any suggestion on this? My vi is attached below. 
Thank you in advance! 
diagram1.jpg
Active Participant
Kevin_Price
Posts: 1,916
0 Kudos

Re: Synchronization of pulse generation and digital edge counting with one PCI-6229

Your M-series board only has 2 counters -- that's why you can't perform 3 tasks.  Here's at

least one other idea you might consider.

 

Consider the task where you want to count rising edges of a particular signal.  You can probably

do that by wiring to a line on digital port 0, and making a DI task based on "change detection."

You can then just keep track of how many samples have been taken which will give you the

same number as counting the edges with a counter task.

 

-Kevin P

Member
Matt11
Posts: 10
0 Kudos

Re: Synchronization of pulse generation and digital edge counting with one PCI-6229

Thank you, Kevin. Problem was solved by following your suggestion. Thanks again!