LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I synchronize two counters?

Hi,

I am using NI-PCI 6115 & BNC 2120. I want to generate two continuous pulse trains using the CTR-OUT0 and CTR-OUT1. I hope these two pulse trains have exact same rising edges, how can I synchronize these two counters? I attached my program here.

Any suggestion will be greatly appreciated!
Stephen
0 Kudos
Message 1 of 3
(3,039 Views)
Stephen,

In order to generate two pulse trains on the two counters of your 6115, then you will need to provide a trigger to start both of these counters simultaneously. The counters on the 6115 are controlled via the DAQ-STC counter/timer chip.

In order to perform these operations you will need to use the more advanced counter/timer VIs in the LabVIEW palettes. I would recommend taking a look at some of the shipping examples, such as Generate Pulse Train (DAQ-STC), in order to get a better understanding of how a single pulse generation works.

Also, please take a look at the following websites to get a little more information as well:

Triggering Multiple Counters with a Single Pulse
http://exchange.ni.com/servlet/Redirect?id=10358279

Using the Hardw
are Start Trigger for Single Pulse Generation
http://zone.ni.com/devzone/conceptd.nsf/webmain/7B2CAD8DD522049386256802007B8B51?opendocument

If you have any other questions then please let us know.

Regards,
Michael H
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,038 Views)
Hi,
I have now the responsibility for this Selectpartner of ours:
 
At microLEX System the problem has been observed on two systems:
 
A)
HP Compaq dc-7600 Pentium 4, 3 Ghz dual-core, 1 GB RAM
Windows XP Pro, version 2002 SP 2
LabVIEW 8.2.0, DAQmx 8.3.0 f3
PXI-4461 and PXI-4462 on a PCI to PXI extender (successively).
 
B)
HP Compaq dc-7600 Pentium 4, 3 Ghz dual-core, 1 GB RAM
Windows XP Pro, version 2002 SP 2
LabVIEW 8.2.1, DAQmx 8.5.0 f5
PXI-4461 on a PCI to PXI extender.
 
I notice that the DAQmx version is different. Is it possible that an update in DAQmx has fixed the problem?
 
Thanks!
-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 3 of 3
(2,760 Views)