Example Code

Performing In-Situ Calibration with SC Express Hardware

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW Real-Time Module
  • LabVIEW

Code and Documents

Attachment

Overview

 This code demonstrates how to perform in-situ calibration with supported SC Express modules and their connected rackmount accessory. Check the hardware requirements listed below for configurations that support in-situ calibration.

 

Description

 The example makes a call to the rackmount to switch a user-provided precision DC signal wired into the rackmounts calibration bus to and from the module’s ADCs.  Doing so allows users to calibrate the ADCs with a precision signal at any desired test point to create a custom scale for the duration of a test.

 

Requirements

 Software

  • LabVIEW 2011 SP1 (or compatible)
  • NI-DAQmx 14.5 (or compatible)
    Note: The minimum required LabVIEW and NI-DAQmx version will depend on when support was introduced for the hardware. Check the corresponding rackmount User Guide for the configuration you are using to find the appropriate minimum NI-DAQmx version.
  • If running in a Real-Time context, you will need the LabVIEW Real-Time Module 2011 SP1 (or compatible.)

 Hardware

  • A supported SC Express configuration:
    • NI PXIe-4339 with the NI RM-4339 accessory

    • NI PXIe-4302 or NI PXIe-4303 with the NI RM-4302 accessory
    • NI PXIe-4304 or NI PXIe-4305 with the NI RM-4304 accessory
  • External precision DC calibration source

 Steps to Implement or Execute Code

 The example contains a dummy VI that prompts the user to set the calibration source to a certain voltage.  The user can either follow the prompts and change the source manually or replace the dummy VI with a driver call to the calibration source to automate the procedure.

David R
Systems Engineer
National Instruments

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