NI-HSDIO C Function Reference

niHSDIO_AssignDynamicChannels

  • Updated2023-02-21
  • 1 minute(s) read

ViStatus = niHSDIO_AssignDynamicChannels ( ViSession vi, ViConstString channelList);

Purpose

Configures channels for dynamic acquisition (if vi is an acquisition session) or dynamic generation (if vi is a generation session).

Note Note  A channel cannot be assigned to static generation and dynamic generation at the same time.

Related topics:

Parameters

Input
Name Type Description
vi ViSession Identifies your instrument session. vi was obtained from the niHSDIO_InitAcquisitionSession or niHSDIO_InitGenerationSession function.
Channel List ViConstString Identifies which channels are reserved for dynamic operation.

Valid Syntax

0-19 or 0-15,16-19 or 0-18,19
"" (empty string) or VI_NULL to specify all channels
"none" to unassign all channels

Channels cannot be configured for both static generation and dynamic generation.

Return Value

Name Type Description
Status ViStatus

Reports the status of this operation. To obtain a text description of the status code, call the niHSDIO_error_message function. To obtain additional information concerning the error condition, use the niHSDIO_GetError and niHSDIO_ClearError functions.

The general meaning of the status code is as follows:

Value Meaning
0 Success
Positive Values Warnings
Negative Values Errors

Log in to get a better experience