Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006

Synchronizing a DSA Device with a Pulse Generation

1 ratings | 5.00 out of 5
Print

Downloads

Filename: 202880.vi
Requirements: View

Filename: 202879.vi
Requirements: View

These examples demonstrate how to synchronize a counter output with the analog input of a DSA device using DAQmx. These programs will work with STC or TIO based counters which are found on most MIO and counter devices.

The DSA device performs continuous analog input while the counter generates a continuous pulse train.

How the synchronization works:
- The DSA device exports its sample clock to the counter.
- The counter uses the sample clock from the DSA board as a timebase for the pulse train generation.

Two examples are attached, but they both do the same thing. In one example, you can specify the frequency of the pulse train and in the other you specify the pulse train in terms of high and low ticks.

Setting the pulse train frequency directly is often more convenient, but it is possible to end up with an actual frequency which is a coerced version of the requested value. There is a boolean on the front panel of the VI which indicates whether a coercion has taken place.

Configuring the pulse train in terms of tick is a little bit lower level, but you are guaranteed that no coercions will take place.

This example will work with both PCI and PXI devices. If using PCI, you will need a RTSI cable to share the sample clock.

Requirements


Filename: 202880.vi

Software Requirements


Application Software: LabVIEW Base Development System 7.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO), Dynamic Signal Analyzers (DSA), Counter/Timers (TIO)
Hardware Model: PXI-4472B, PCI-4472, PCI-4474, PXI-4461, PXI-4462, PXI-4472
Driver: NI-DAQmx 7.3

 
Filename: 202879.vi

Software Requirements


Application Software: LabVIEW Base Development System 7.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO), Counter/Timers (TIO), Dynamic Signal Analyzers (DSA)
Hardware Model: PCI-4472, PCI-4474, PXI-4461, PXI-4462, PXI-4472, PXI-4472B
Driver: NI-DAQmx 7.3

 
1 ratings | 5.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).