This function is deprecated. Use niDCPower_CreateAdvancedSequenceWithChannels instead.

Syntax

ViStatus _VI_FUNC niDCPower_CreateAdvancedSequence(ViSession vi, ViConstString sequenceName, ViInt32 attributeIdCount, const ViInt32 attributeIds[], ViBoolean setAsActiveSequence)

Remarks

Creates an empty advanced sequence. Call the niDCPower_CreateAdvancedSequenceStep function to add steps to the active advanced sequence.

You can create multiple advanced sequences in a session.

Support for this function

You must set the source mode to Sequence to use this function.

Note

This function is not supported on all devices. Refer to Supported Functions by Device for more information about supported devices.

Using the niDCPower_SetSequence function with Advanced Sequence functions is unsupported.

Use this function in the Uncommitted or Committed programming states. Refer to the Programming States topic in the NI DC Power Supplies and SMUs Help for more information about NI-DCPower programming states.

Related Topics:

Advanced Sequencing

Programming States

niDCPower_CreateAdvancedSequenceStep

Parameters

NameDirectionTypeDescription
vi[in]ViSession

Identifies a particular instrument session. vi is obtained from the niDCPower_InitializeWithIndependentChannels function.

sequenceName[in]ViConstString

Specifies the name of the sequence to create.

attributeIdCount[in]ViInt32

Specifies the number of attributes in the attributeIds array.

attributeIds[in]const ViInt32[]

Specifies the attributes you reconfigure per step in the advanced sequence. Refer to Supported Attributes by Device for more information on attributes that can be configured in an advanced sequence and their respective supported device.

setAsActiveSequence[in]ViBoolean

Specifies that this current sequence is active.

Returns

Reports the status of this operation. To obtain a text description of the status code, call niDCPower_error_message. To obtain additional information concerning the error condition, call niDCPower_GetError. The general meaning of the status code is as follows:

Value

Meaning

0

Success

Positive Values

Warnings

Negative Values

Errors