From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

ANDing ORing counter arm start triggers

Solved!
Go to solution

I am using a 6602 PCI to collect an array of time stamps of pulses using DAQmx.dll i.e. .NET. c#.  In order to synchronize the 2 encoder tasks data for comparison, I create a "starter" task that is triggered by a digital edge trigger (a PFI).  Then I create a task for each encoder and make their  digital edge triggers point to the output of the "start" task.  

 

This is all working very well, but I have been asked to make a modification so that instead of a single PFI being used as my digital edge trigger, a combination of PFIs can be used (AND/OR).  From my research so far, I think this can be done with a digital pattern trigger, but since I am collecting counters, I am using an ArmStartTrigger and ArmStartTrigger does not have a digital pattern trigger, only StartTrigger does.  Sooo, my question is how do I do it?  My guess is that I can replicate what ArmStartTrigger does using only the StartTrigger, but I do now know how.  I am also open to AND/ORing the ArmStartTrigger, but I haven't seen where that's possible. 

 

Thanks so much for your time.

 

0 Kudos
Message 1 of 2
(2,361 Views)
Solution
Accepted by topic author MrSethT

The 6602 won't support a "digital pattern" trigger.  Not many devices do, as far as I know.

 

Only an Arm Start trigger can be used for counter input tasks, not a regular Start trigger.

 

The AND / OR'ing would need to be done with an actual logic circuit.  Unless you have another DAQ board around that supports digital change detection.  (M-series and X-series MIO boards support it as do some dedicated DIO boards.)

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
Message 2 of 2
(2,354 Views)