niHSDIO_ConfigureInitialStateU32

NI Digital Waveform Generator/Analyzer

niHSDIO_ConfigureInitialStateU32

Specific Function

C Function Prototype

ViStatus niHSDIO_ConfigureInitialStateU32 (ViSession vi, ViUInt32 initialState);

Purpose

Sets the Initial state for a dynamic generation operation. The Initial state of each channel is driven after the session is initiated using niHSDIO_Initiate. Channels remain unchanged until the first waveform sample is generated.

Unlike niHSDIO_ConfigureInitialState which uses a string, this function uses a binary format to only represent high and low. If you require more choices for your Initial state, use the niHSDIO_ConfigureInitialState function.

Parameters

Name Type Description
vi ViSession This handle identifies your instrument session. vi was obtained from niHSDIO_InitGenerationSession.
initialState ViUInt32 Specifies the bit mask representing the Initial state. High is specified with a 1, and low is specified with a 0.

The first character in initialState corresponds to the first channel in channelList. The number of characters in the pattern must equal the number of channels specified in channelList or NI-HSDIO returns an error.

Return Value