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

High-Speed Digital Real-time Hardware Compare (LabWindows/CVI)

0 ratings | 0.00 out of 5
Print

Downloads

Filename: dighardwarecomparelv71.zip
Requirements: View

Filename: dighardwarecomparelv8.zip
Requirements: View

The NI-HSDIO driver software version 1.4 and later adds new digital ATE features to the NI 6552 and NI 6551 digital waveform generator/analyzers. One of these new features, real-time hardware comparison, allows you to compare acquired response data with some known expected response. The data comparison, which historically had to be performed in software after the acquisition, now occurs on-the-fly in the digital board's FPGA on a per-sample basis.

This LabWindows/CVI example illustrates how to configure the generation and acquisition session of the digital board using the NI-HSDIO C functions. Both sessions must be active since the board must generate and acquire data on a per-clock cycle (i.e. per-sample) basis. The logic-states in the waveform dictate whether the board generates data or acquires and compares data. A 0 or 1 command the board to generate a logic-low or logic-high while a H, L, or X indicate that the board must acquire and compare the data on that clock cycle.

The example programmatically generates a waveform to be output on 10 channels and places random errors into the expected response. The waveform is then acquired into the other 10 channels where it is automatically compared with the expected response. Once the generation is complete, the data surrounding each error is fetched based on the sample number(s) that contained an error.

External connections needed for this example:
- Data Active Event (PFI1) jumped to Start Trigger (PFI2)
- Exported generation clock (DDC ClockOut) jumped to Acq clock (Strobe)
- Generation channels jumped to acquisition channels
(for example,
Generation Channels Used: 0,1,2
Acquisition Channels Used: 4,5,6
Required Connections: 0->4, 1->5, 2->6)

Requirements


Filename: dighardwarecomparelv71.zip

Software Requirements


Application Software: LabWindows/CVI Full Development System 7.1
Language(s): C

Hardware Requirements


Hardware Group: Digital I/O (DIO)
Hardware Model: PXI-6552, PXI-6551
Driver: NI-HSDIO 1.5, NI-HSDIO 1.4

 
Filename: dighardwarecomparelv8.zip

Software Requirements


Application Software: LabWindows/CVI Base Development System 8.0, LabWindows/CVI Base Development System 7.1
Language(s): C

Hardware Requirements


Hardware Group: Digital I/O (DIO)
Hardware Model: PXI-6551, PXI-6552
Driver: NI-HSDIO 1.4, NI-HSDIO 1.5

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