IviFgen_ConfigureSampleRate

CVI/LabWindows IVI Class Driver

IviFgen_ConfigureSampleRate

IviFgenArbWfm Capability Group

C Function Prototype

ViStatus IviFgen_ConfigureSampleRate (ViSession vi, ViReal64 sampleRate);

Purpose

This function configures the sample rate attribute, which determines the rate at which the function generator produces arbitrary waveforms. When you configure the function generator to produce an arbitrary sequence, this is the sample rate for all arbitrary waveforms in the sequence.

Parameters

Name Type Description
vi ViSession The instrument handle that you obtain from the IviFgen_init or IviFgen_InitWithOptions functions. The handle identifies a particular IVI session.
sampleRate ViReal64 Pass the sample rate at which you want the function generator to output arbitrary waveforms. The driver sets the IVIFGEN_ATTR_ARB_SAMPLE_RATE attribute to this value.

Units: Samples-per-Second (Samp/s).

Return Values