Example Code

Generate User Defined Waveform At 1Gbit/s Using the NI-6587 Adapter Module for FlexRIO

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

  • Other

    Software

  • LabVIEW

    Driver

  • NI RIO

Code and Documents

Attachment

Overview

    This example continously outputs a user defined waveform at 1Gbt/s using the NI-6587 adapter module for FlexRIO.

 

Description

    This example continously outputs a user defined waveform at 1Gbt/s using the NI-6587 adapter module for FlexRIO.   The code is compiled to run on a NI-7962R series FlexRIO card.  If you are using a different card, the code will need to be recompiled.

     In the Host VI, the user defines one period of the waveform to be generated.  The Load FIFO.VI can be used to generate one period of a sine wave for testing purposes.    The user can choose to use a count up pattern to output data or to use a the user defined wave data.     The FPGA code uses the Connector Serdes CLIP.   This code loads the wave data on a FPGA memory block and then reads the data back in the Data Output SCTL.  The Data Output loop must run on the Gen_Regional_Clock.  The FPGA memory block is limited to 1024 elements, so the user defined wave period can have no more than 1024 elements.  Please refer to the code documentation for additional explaination of the code operation.


Requirements
    Software
        LabVIEW 2012 (or compatible)
        NI FlexRIO 14.0 (or compatible)
    Hardware

        NI-6587
        NI-7962R


Instructions

    1. Input Sine Wave Data (max 1000 elements)
    2. Select the correct resource name
    3. Input the length of the sine wave array (max 1000)
    4. Select to Count Up(T) or User Input (F)
    5. Press Run. When the Ready to Start LED turns on, press the start generation button

 

Additional Information or References 微信截图_20170308161853.png

 

**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.