Chapter 2
NI 5450 Overview
©
National Instruments Corporation
2-63
NI PXIe-5450 User Manual
occur under any sample rate. You can develop applications that generate waveforms
smaller than those listed in the device specifications at slower sample rates. If a data
underflow occurs, NI-FGEN reports the error when the generation is aborted. This is
typically accomplished by calling the niFgen Abort Generation VI or the
niFgen_AbortGeneration
function, or if you call the niFgen Wait Until Done, or
niFgen Is Done VIs (or the
niFgen_WaitUntilDone
or
niFgen_IsDone
functions)
while the device is generating a signal. To monitor error conditions during waveform
generation, the niFgen Is Done VI or the
niFgen_IsDone
function can be called
repeatedly while the device is generating a signal.
The maximum waveform size allowed depends on the remaining available
space in the onboard memory of the device. The remaining available space
depends on factors such as any waveforms and generation instructions
currently occupying memory space in the onboard memory. The maximum
allowable size equals the memory size of the device minus the data already
in memory. Query the Max Waveform Size property or the
NIFGEN_ATTR_MAX_WAVEFORM_SIZE
attribute for the current largest size
waveform that can be downloaded to the device.
You can download floating point, signed 16-bit binary, or complex
floating-point waveforms to the device onboard memory. For information
about downloading waveforms to the onboard memory in LabVIEW, refer
to the niFgen Create Waveform or niFgen Write Waveform VIs for more
information. For information about downloading waveforms to the onboard
memory in C, refer to the
niFgen_CreateWaveformF64
,
niFgen_CreateWaveformI16
,
niFgen_CreateWaveformComplexF64
,
niFgen_WriteWaveform
,
niFgen_WriteBinary16Waveform
, or
niFgen_WriteWaveformComplexF64
functions for more information.
Waveform Quantum
Quantum is the increment in samples that waveform sizes must adhere to.
The NI 5450 has a sample quantum of two, allowing waveforms of any
even numbered size (between the maximum and minimum waveform
sizes) to be downloaded.
For example, if while in Arbitrary Waveform mode, you request to load a
waveform of seven samples, the task will not complete successfully
because the waveform is not an integer multiple of the quantum size.
Waveform sizes that meet the conditions include 2, 4, 8, 10, 12, and so on,
up to maximum allowable waveform size.