Example Code

Fetching More Than Available Memory at Sample Rates Greater Than 2 GS/s with the NI 5185/5186

Code and Documents

Attachment

Overview

This example demonstrates how to stream data from the NI 5185/5186 Digitizer/Oscilloscope at sample rates higher than 2 GS/s.

Description

This example expands upon the niScope EX Multi Record Fetch More Than Available Memory shipping example.  Normally, at sample rates higher than 2 GS/s, the niScope Fetch function will be blocked until acquisition is complete on the NI 5185/5186.  This is not ideal for applications that need to acquire data sets that require more memory than is available in the onboard memory. To avoid this behavior, the “End of Record to Advance Trigger Holdoff” property needs to be used.  This example shows how to use that property to fetch more records than available memory at sample rates higher than 2 GS/s.

Steps to Implement or Execute Code

  1. Choose a valid resource name on the front panel.
  2. Enter the desired values for the controls on the front panel.
  3. Run the VI.
  4. Press the stop button to terminate the acquisition.

Requirements

Software

LabVIEW 2014 or later

NI-SCOPE 14.1 or later

Hardware

Any NI Digitizer/Oscilloscope with sampling rates greater than 2 GS/s.  This code was tested on the PXIe-5186.

Additional Images

screenshot.JPG

VI Snippet

snippet.png

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

Comments
STARWARS
NI Employee (retired)
on

I found that scope 14.0 didn't have the attribute of “End of Record to Advance Trigger Holdoff”, so it seems like scope 14.1 or later should be installed.

Capture.PNG

smoores
NI Employee (retired)
on

Good catch.  I am updating the description.

Contributors