NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


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,907
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

-- looking to hire? PM me...
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!

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page