From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Programmatically Calculate FGEN or ARB Memory

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

The amount of onboard memory available on a NI Signal Generator is part number specific (i.e. not model specific). This example provides a way to determine how much onboard memory is avaialbe on your Signal Generator.

 

Description

This VI will programmatically return the memory size information for the selected Function Generator or Arbitrary Waveform Generator.

The VI performs the following actions:

    1.  Opens a session to the specified signal generator.

    2a.Uses the NI-FGEN property node to get the amount of memory in bytes on the signal generator.

    2b.Converts the amount of memory from bytes to megabytes.

    3.  Closes the signal generator session.

 

Requirements

Software

   LabVIEW 2012 (or compatible)

   NI-FGEN

Hardware

   NI Signal Generator

 

Steps to Implement or Execute Code

1. Select your signal generator in the Resource Name control

2. Run the VI

 

 

Additional Information or References

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