Example Code

niScope Configured Acquisition with Polling

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

  • Modular Instrumentation

    Software

  • LabVIEW

    Driver

  • Other

Code and Documents

Attachment

Overview

This VI is an expansion of the example niScope EX Configured Acquisition.vi which enables resetting the acquisition before the the device is triggered.

 

Description

This VI takes the standard niScope EX Configured Acquisition VI (LabVIEW shipping example) and adds functionality to be able to poll the status of the device. This allows the user to reset the acquisition after the device is armed but not yet triggered or even to abort the program while the device is waiting for a trigger to occur. To poll the device, the niScope Acquisition Status VI is used, which indicates whether the device is armed (waiting for trigger) or the acquisition is complete.

 

Requirements

Software:

  • Labview 2012 (or compatible)
  • NI-Scope driver which is compatible with your hardware and version of LabVIEW

Hardware:

  • NI Scope Device

 

Steps to Implement or Execute Code

1. Select the name of your scope digitizer
2. Run the VI

 

Additional Information or References

VI Block Diagram

 122.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Daniel S.
National Instruments

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