Multifunction DAQ

Showing results for 
Search instead for 
Did you mean: 
Reply

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

Solved!
Go to Solution
Highlighted

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
0 Kudos
Message 1 of 3 (539 Views)
Reply
0 Kudos
Solution
Accepted by topic author Matt11
‎08-27-2015 06:09 PM

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

0 Kudos
Message 2 of 3 (534 Views)
Reply
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!

0 Kudos
Message 3 of 3 (510 Views)
Reply
0 Kudos