NIHSDIO_ATTR_DYNAMIC_CHANNELS
Specific Attribute
Data type |
Access | Applies to | Coercion | High-Level Functions |
---|---|---|---|---|
ViString | R/W | N/A | None | niHSDIO_AssignDynamicChannels |
Description
Assigns channels for dynamic operation. The group of dynamic channels is changed each time this attribute is set. For example, setting this attribute to 0-10 and then setting it to 5-8 results in only channels 5-8 being assigned to dynamic. Channels 0-4 and 9-10 are no longer assigned to the dynamic operation by the second configuration.
Setting an empty string to this attribute configures all channels for dynamic operation. Writing None removes all channels from the dynamic operation. The session must be committed before changes to this attribute will take affect (refer to niHSDIO_CommitDynamic for more information about committing a session).
You can configure a channel for more than one simultaneous operation. A channel can be simultaneously configured for the following operations:
- Dynamic generation and any (static and/or dynamic) acquisition
- Static generation and any (static and/or dynamic) acquisition
- Both static and dynamic acquisition
Note You cannot configure a particular channel for simultaneous dynamic and static generation. |
Unconfiguring a dynamic generation channel frees that channel to be reconfigured for static generation. Unconfiguring a dynamic generation channel does not stop the channel from driving its current valueany value already written to the channel continues to be driven.
Syntax examples:
- 2-15 or 15-2 set channels 2 through 15 to dynamic
- 0, 3, 10 or 3, 10, 0 set channels 0, 3, and 10 to dynamic
- "" (empty string) sets all channels for dynamic
- None removes all channels from dynamic