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

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 5, 2008

VB6 NI-SCOPE - Synchronization of Multiple High-Speed Digitizers Using NI-TClk

0 ratings | 0.00 out of 5
Print

Overview

This example program written in Visual Basic 6.0 illustrates how to synchronize acquisition on two high-speed digitzers using the NI-TClk driver. This program uses the NI-TClk wrapper for Visual Basic 6.0 to expose the NI-TClk C Functions. The NI-TClk wrapper for Visual Basic 6.0 can be downloaded from the Knowledgebase linked below.

Downloads

Filename: multi_scope_sync_tclk.zip
Requirements: View

Recommended Input Signal: 1000 Hz, 4 Vpp, sine wave

Devices Supported: All SMC based high-speed digitizers
NI 5105, NI 5114, NI 5122, NI 5124, NI 5142, NI 5922

This example demonstrates synchronizing mulitple SMC digitizers, with all digitizers configured using the same vertical and horizontal parameters.  The first digitizer specified via resource names input is the trigger master, and is configured for edge trigger at 0.0 volts, rising. 

Synchronizing the devices requires sharing a 10 MHz clock used as reference clock and sync pulse clock, and a sync pulse.  The trigger master exports the trigger, and other digitizers trigger off of it.  All of these are configured using the NI-TClk library for synchronization.

All devices  must be in the same computer.  If you have a PXI chassis, ensure it has been properly identified in MAX.  If you have devices with a RTSI bus, ensure they are connected with a RTSI cable and that the RTSI cable is registered in MAX.

For more information about synchronizing devices, refer to the NI High-Speed Digitizers Help, found under Start > Programs > National Instruments > NI-SCOPE > Documentation.

This example uses the NI-TClk Visual Basic 6.0 wrapper to expose the TClk functions available in the ANSI C TClk API.  This wrapper is included as niTClk.bas in the Modules section of the Project Explorer, and can be downloaded from from the Knowledge base in the related links section.

Documentation for the NI-TClk functions can be found in the NI-TClk C Function Reference Help, found within the High-Speed Digitizers Help.

 

Related Links:
KB 42AIQMX1: Microsoft Visual Basic 6.0 Wrappers for NI Sync, NI TCLK, and NI HWS
Using NI-SCOPE with Microsoft Visual Basic 6.0

 

 

Requirements


Filename: multi_scope_sync_tclk.zip

Software Requirements


Language(s): Visual Basic
Additional Software: Visual Basic 6.0

Hardware Requirements


Hardware Group: High-Speed Digitizers (Scopes)
Hardware Model: PCI-5105, PCI-5114, PCI-5122, PCI-5124, PCI-5142, PXI-5142, PXI-5105, PXI-5114, PXI-5922, PXI-5122, PXI-5124, PCI-5922
Driver: NI-SCOPE 3.2

 
0 ratings | 0.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/).