IviFgen_ConfigureOutputMode

CVI/LabWindows IVI Class Driver

IviFgen_ConfigureOutputMode

IviFgen Base Capability Group

C Function Prototype

ViStatus IviFgen_ConfigureOutputMode (ViSession vi, ViInt32 outputMode);

Purpose

This function configures the output mode of the function generator. The output mode determines the kind of waveform the function generator produces. For example, you can output a standard waveform, an arbitrary waveform, or a sequence of arbitrary waveforms.

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.
outputMode ViInt32 Pass the output mode you want the function generator to use. The driver sets the IVIFGEN_ATTR_OUTPUT_MODE attribute to this value. The value you specify determines which functions and attributes you use to configure the waveform the function generator produces.

Defined Values:

IVIFGEN_VAL_OUTPUT_FUNC—Standard Function Output

IVIFGEN_VAL_OUTPUT_ARB—Arbitrary Waveform Output

IVIFGEN_VAL_OUTPUT_SEQ—Arbitrary Sequence output

Parameter Discussion for outputMode

This section describes the use of outputMode with the IVIFGEN_VAL_OUTPUT_FUNC, IVIFGEN_VAL_OUTPUT_ARB, and IVIFGEN_VAL_OUTPUT_SEQ values.

outputMode with IVIFGEN_VAL_OUTPUT_FUNC

When you set outputMode to IVIFGEN_VAL_OUTPUT_FUNC, use the IviFgen_ConfigureStandardWaveform function to configure the waveform.

Instead of using IviFgen_ConfigureStandardWaveform, you can set the following attributes:

outputMode with IVIFGEN_VAL_OUTPUT_ARB

When you set outputMode to IVIFGEN_VAL_OUTPUT_ARB, use the following functions to configure the waveform:

Instead of using the IviFgen_ConfigureSampleRate and IviFgen_ConfigureArbWaveform functions, you can set the following attributes:

outputMode with IVIFGEN_VAL_OUTPUT_SEQ

When you set outputMode to IVIFGEN_VAL_OUTPUT_SEQ, use the following functions to configure the sequence:

Instead of using the IviFgen_ConfigureSampleRate% and IviFgen_ConfigureArbSequence functions, you can set the following attributes:

Return Values