Example Code

NI 9215 Module Specific Example for cRIO or Other FPGA Target (Simple AI)

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

  • CompactRIO/SingleboardRIO

    Software

  • LabVIEW

    Driver

  • NI RIO

Code and Documents

Attachment

Overview

This example shows how to do simple analog input using a 9215 module.

Description

FPGA Top Level Block Diagram

Simple AI 9215.png

Real Time Host VI

9215 RT Host.png

Requirements

LabVIEW 2009 "or compatible"

LabVIEW FPGA 2009 "or compatible"

NI RIO 3.3 "or compatbile"

Steps to Implement or Execute Code

1.) Download the attached zip file and extract it into a single folder

2.) Open the LabVIEW project, use the FPGA VI and host VI with your cRIO.

Note: If you change the hardware target at all you will need to recompile the FPGA VI.

3.) Run the real time host vi

Additional Information or References

This example only uses simple timing, and the data transfer from the FPGA will likely lose some data.

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

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

Contributors