Multi Record Analog Trigger using NI-Scope, NI-P2P, and NI FlexRIO™

Publish Date: Nov 29, 2016 | 6 Ratings | 2.67 out of 5 | Print | Submit your review


This example program uses NI-SCOPE, NI FlexRIO™, and NI-P2P streaming API to perform a multi record acquisition using an analog trigger and acquisition engine implemented with LabVIEW FPGA.

Table of Contents

  1. Details
  2. Related Information

1. Details

This project consists of a host VI and an FPGA VI compiled for multiple NI FlexRIO targets.  Select the appropriate FPGA target using the Configure Open FPGA VI Reference dialog of the Open FPGA VI Reference VI in the host VI.  The host VI configures the digitizer for a continuous acquisition, configures a P2P endpoint on the digitizer to stream the selected channel, and links the P2P stream between the endpoints on the digitizer and the NI FlexRIO FPGA device.  The host VI also uses a DMA FIFO to retrieve and display records acquired on the FPGA.  The FPGA VI implements a simple acquisition engine.  This VI acquires pre-trigger samples from the P2P FIFO, waits for a reference trigger, acquires post-trigger samples, transfers the completed record back to the host, and then waits for an advance trigger from the host. 


The following is a list of possible hardware to be used with this example program:

Digitizer: NI PXIe-5122, NI PXIe-5622
NI FlexRIO FPGA Module: NI PXIe-7961R, NI PXIe-7962R, NI PXIe-7965R

Note: To enable peer-to-peer streaming on the PXIe-5122 or the PXIe-5622, a new firmware update must be installed. This firmware update for the PXIe-5122 is included with NI-SCOPE 3.6. The firmware update for the PXIe-5622 can be obtained through KnowledgeBase 54FDCPLY. More information regarding the firmware update may be found in the NI-SCOPE 3.6 Readme.

Back to Top

2. Related Information

An Introduction to Peer-to-Peer Streaming
NI Peer-to-Peer Streaming Help
Getting Started with NI-SCOPE
Digitizer/Oscilloscope Fundamentals
Developer Zone Example: Working with Interleaved Data using NI-Scope, NI-P2P, and NI FlexRIO™
Peer-to-Peer Streaming Help for NI PXIe-5122
Peer-to-Peer Streaming Help for NI PXIe-5622

Back to Top

Bookmark & Share



niScope EX P2P Multi Record An
alog Trigger using LV FPGA



Rate this document

Answered Your Question?
Yes No