High-Speed Digital Real-time Hardware Compare (LabWindows/CVI)
Downloads
Filename: dighardwarecomparelv71.zip
Requirements: View
Filename: dighardwarecomparelv8.zip
Requirements: View
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
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
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/).
