Write Static
- Updated2023-02-17
- 3 minute(s) read
Write Static
Writes a static state to the specified pins. The selected pins remain in the specified state until the next pattern burst or call to this node.
If there are uncommitted changes to levels or the termination mode, this node commits the changes to the pins.
This node does not change the selected pin function. If you write a static state to a pin that does not have the Digital function selected, the new static state is stored by the instrument, and affects the state of the pin the next time you change the selected function to Digital.
Inputs/Outputs

session in
Instrument session obtained from the niDigital Initialize with Optionsnode.

channel list
List of channel names or list of pins. Do not pass a mix of channel names and pin names.
An empty string denotes all digital pattern instrument channels.
Specify channel names using the form PXI1Slot3/0,2-3 or PXI1Slot3/0,PXI1Slot3/2-3, where PXI1Slot3 is the instrument resource name and 0, 2, 3 are channel names.
To specify channels from multiple instruments, use the form PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3. The instruments must be in the same chassis.
Site Considerations and Syntax
Pin names and pin groups apply to all enabled sites, unless the pin name explicitly specifies the site. You can specify a pin in a specific site using the form siteN/pinName, where N is the site number. This node ignores pins that are not mapped to the digital pattern instrument.

state
Parameter that specifies one of the following digital states to assign to the pin.
| 0 |
Specifies to drive low. |
| 1 |
Specifies to drive high. |
| X |
Specifies to not drive. |

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

session out
Handle that identifies the session in all subsequent NI-Digital node calls.

error out
Error information.
The node produces this output according to standard error behavior.