NIFGEN_ATTR_OUTPUT_MODE
IviFgenBase Attribute
Data Type | Access | Applies to | Coercion | High-Level Functions |
---|---|---|---|---|
ViInt32 | R/W | N/A | None | niFgen_ConfigureOutputMode |
Description
Sets which output mode that the signal generator uses. The value that you specify determines which functions and attributes you can use to configure the waveform that the signal generator produces.
Defined Values
NIFGEN_VAL_OUTPUT_FUNC | Standard Function mode— Generates standard function waveforms such as sine, square, triangle, and so on. |
NIFGEN_VAL_OUTPUT_FREQ_LIST | Frequency List mode—Generates a standard function using a list of frequencies you define. |
NIFGEN_VAL_OUTPUT_ARB | Arbitrary Waveform mode—Generates waveforms from user-created/provided waveform arrays of numeric data. |
NIFGEN_VAL_OUTPUT_SEQ | Arbitrary Sequence mode —Generates downloaded waveforms in an order your specify. |
NIFGEN_VAL_OUTPUT_SCRIPT | Script mode—Allows you to use scripting to link and loop multiple waveforms in complex combinations. |
Default Value: NIFGEN_VAL_OUTPUT_FUNC
Standard Function
When you set this attribute to NIFGEN_VAL_OUTPUT_FUNC, you can use the following functions to configure the waveform:
- niFgen_ConfigureStandardWaveform
- niFgen_DefineUserStandardWaveform
- niFgen_ClearUserStandardWaveform
- niFgen_ConfigureFrequency
- niFgen_ConfigureAmplitude
And you can set the following attributes:
- NIFGEN_ATTR_FUNC_WAVEFORM
- NIFGEN_ATTR_FUNC_AMPLITUDE
- NIFGEN_ATTR_FUNC_DC_OFFSET
- NIFGEN_ATTR_FUNC_FREQUENCY
- NIFGEN_ATTR_FUNC_START_PHASE
- NIFGEN_ATTR_FUNC_DUTY_CYCLE_HIGH
Frequency List
When you set this attribute to NIFGEN_VAL_OUTPUT_FREQ_LIST, you can use the following functions to configure the waveform:
- niFgen_CreateFreqList
- niFgen_ClearFreqList
- niFgen_QueryFreqListCapabilities
- niFgen_ConfigureFreqList
- niFgen_ConfigureAmplitude
And you can set the following attributes:
- NIFGEN_ATTR_FREQ_LIST_HANDLE
- NIFGEN_ATTR_FUNC_AMPLITUDE
- NIFGEN_ATTR_FUNC_DC_OFFSET
- NIFGEN_ATTR_FUNC_START_PHASE
Arbitrary Waveform
When you set this attribute to NIFGEN_VAL_OUTPUT_ARB, you can use the following functions to configure the waveform:
- niFgen_QueryArbWfmCapabilities
- niFgen_CreateWaveformF64
- niFgen_CreateWaveformI16
- niFgen_CreateWaveformFromFileI16
- niFgen_CreateWaveformFromFileF64
- niFgen_CreateWaveformFromFileHWS
- niFgen_ClearArbWaveform
- niFgen_ClearArbMemory
- niFgen_ConfigureSampleRate
- niFgen_ConfigureGain
- niFgen_ConfigureArbWaveform
- niFgen_ConfigureClockMode
And you can set the following attributes:
- NIFGEN_ATTR_ARB_WAVEFORM_HANDLE
- NIFGEN_ATTR_ARB_GAIN
- NIFGEN_ATTR_ARB_OFFSET
- NIFGEN_ATTR_ARB_SAMPLE_RATE
- NIFGEN_ATTR_CLOCK_MODE
Arbitrary Sequence
When you set this parameter to NIFGEN_VAL_OUTPUT_SEQ, you can use the following functions to configure the sequence:
- niFgen_QueryArbWfmCapabilities
- niFgen_CreateWaveformF64
- niFgen_CreateWaveformI16
- niFgen_CreateWaveformFromFileI16
- niFgen_CreateWaveformFromFileF64
- niFgen_CreateWaveformFromFileHWS
- niFgen_ClearArbWaveform
- niFgen_ClearArbMemory
- niFgen_QueryArbSeqCapabilities
- niFgen_CreateArbSequence
- niFgen_CreateAdvancedArbSequence
- niFgen_ClearArbSequence
- niFgen_ConfigureSampleRate
- niFgen_ConfigureClockMode
- niFgen_ConfigureArbSequence
- niFgen_ConfigureGain
And you can set the following attributes:
- NIFGEN_ATTR_ARB_SEQUENCE_HANDLE
- NIFGEN_ATTR_ARB_GAIN
- NIFGEN_ATTR_ARB_OFFSET
- NIFGEN_ATTR_ARB_SAMPLE_RATE
- NIFGEN_ATTR_CLOCK_MODE
Script
When you set this parameter to NIFGEN_VAL_OUTPUT_SCRIPT, you can use the following functions to configure the script:
- niFgen_AllocateNamedWaveform
- niFgen_SetNamedWaveformNextWritePosition
- niFgen_WriteNamedWaveformF64
- niFgen_WriteNamedWaveformI16
- niFgen_WriteNamedWaveformComplexF64
- niFgen_WriteNamedWaveformI16
- niFgen_DeleteNamedWaveform
- niFgen_WriteScript
- niFgen_DeleteScript
And you can set the following attribute: