Example Code

Object Oriented Scope Hardware Abstraction

Code and Documents

Attachment

Overview
This example VI demonstrates a method to abstract scope hardware so that it can accept any type of digitizer.

Description

This example project uses the LabVIEW object orientated programming environment to abstract scope hardware so that it can accept any type of digitizer. This immediately brings benefits and allows us to create our application whilst being completely abstracted from what hardware we decide to use. Each hardware has its own plug-in in the form of a LabVIEW class. We can interchangeable swap between different classes without having to modify the application code.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the project " Scope Hardware Abstraction.lvproj"
  2. Open the VI " SCOPE Application Specific Layer.vi"
  3. Choose a resource and initialize it.
  4. Run the VI.

 

Additional Information or References
VI Snippet

Block Diagram.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Aaron. E
Product Performance Engineer
Dyson

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.