To download NI software, including the products shown below, visit ni.com/downloads.
Overview
As part of the AE Projects 2012, our team were tasked with the creation of an automated test system for an I2C controlled Analogue to Digital Converter.
Description
In this example, I've used LabVIEW Object Oriented Programming (LVOOP) to implement three levels of abstraction:
Requirements
Software
LabVIEW 2012 (or compatible)
NI-HSDIO driver which is compatible with your hardware and version of LabVIEW
Hardware
AD-7992 ADC or a simulated auxillary ADC.
Instructions
1.We can choose between whether we want to interact with Analog Devices' AD-7992, or a simulated version of an ADC, the AUX-ADC.
2.The AD-7992 uses the I2C communication protocol in order to be interacted with. With LVOOP, we Dynamically Dispatch (swap at runtime) the I2C Communication Protocol as the means of communication.
3.The I2C Communication Protocol in this instance uses an NI-HSDIO device in order to output communication data. The NI-HSDIO device is a type of Buffered Digital Interface.
What results is an extremely powerful architecture that can allow us to create code that operates indepednantly of the ADC, the communication protocol and the physical test hardware itself.
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.