DAQmx Set Power Up States (VI)

DAQmx - Data Acquisition VIs and Functions

Edition Date: January 2019

Part Number: 370469AP-01

»View Product Info
Download Help (Windows Only)
Owning Palette: DAQmx System Setup VIs and Functions
Installed With: NI-DAQmx

Updates the states to which to set physical channels on a device when the device powers up or when you reset the device. A device stores power up states in non-volatile memory that you can write to only a limited number of times. Therefore, you should use this VI as infrequently as possible. This VI writes to the non-volatile memory only if a setting you request is different from the one currently stored. This VI writes power up states in the sequential order of the power up states array. Therefore, any physical channels with multiple entries in that array use the highest array index.

The instances of this polymorphic VI specify whether to set power up states for analog or digital physical channels.

Use the pull-down menu to select an instance of this VI.

Digital State

Updates power up states for digital physical channels.

DAQmx Set Power Up States (Digital)

/images/reference/en-XX/help/370469AP-01/civrn.gif

device in is the name as configured in MAX of the device to which this operation applies. A DAQmx device name constant lists all devices installed in the system.

/images/reference/en-XX/help/370469AP-01/c1dcclst.gif

power up states contains the physical channels and power up states to set. Each element of the array contains a physical channel and the power up state to set for that physical channel.

/images/reference/en-XX/help/370469AP-01/civrn.gif

physical channel is the digital line or port to modify. You cannot modify dedicated digital input lines. The DAQmx physical channel constant lists all lines and ports for devices installed in the system. You also can wire a string that contains a list or range of digital lines or ports to this input. If you have an array of lines or ports, use the DAQmx Flatten Channel String VI to convert the array to a list.

/images/reference/en-XX/help/370469AP-01/cu16.gif

power up state is the power up state to set for the physical channel specified with the physical channel input.

High (10192)

High logic.

Low (10214)

Low logic.

Tristate (10310)

High-impedance state. You can set this power up state only on devices with bidirectional ports, and you can set it only on entire ports. You cannot set this power up state on dedicated digital output lines.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

device out is the name of the device the operation applied to.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital Logic Family

Sets the digital logic family to use when the device powers up.

DAQmx Set Power Up States (Digital Logic Family)

/images/reference/en-XX/help/370469AP-01/civrn.gif

device in is the name as configured in MAX of the device to which this operation applies. A DAQmx device name constant lists all devices installed in the system.

/images/reference/en-XX/help/370469AP-01/ci32.gif

logic family specifies the logic family to set the device to when it powers up. A logic family corresponds to voltage thresholds that are compatible with a group of voltage standards. Refer to device documentation for information on the logic high and logic low voltages for these logic families.

2.5 V (14620)

Compatible with CMOS signals.

3.3 V (14621)

Compatible with LVTTL and LVCMOS signals.

5.0 V (14619)

Compatible with TTL and CMOS signals.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

device out is the name of the device the operation applied to.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Digital Pull Up Pull Down

Sets the resistor level to pull up or pull down for lines when they are in tristate logic.

DAQmx Set Power Up States (Digital Pull Up Pull Down)

/images/reference/en-XX/help/370469AP-01/civrn.gif

device in is the name as configured in MAX of the device to which this operation applies. A DAQmx device name constant lists all devices installed in the system.

/images/reference/en-XX/help/370469AP-01/c1dcclst.gif

pull up pull down levels specifies the tristate logic level (either pull up or pull down) for each line.

/images/reference/en-XX/help/370469AP-01/civrn.gif

physical channel is the digital line or port to modify. You cannot modify dedicated digital input lines. The DAQmx physical channel constant lists all lines and ports for devices installed in the system. You also can wire a string that contains a list or range of digital lines or ports to this input. If you have an array of lines or ports, use the DAQmx Flatten Channel String VI to convert the array to a list.

/images/reference/en-XX/help/370469AP-01/ii32.gif

power up state is the pull up pull down level to set for the physical channel specified with the physical channel input.

Pull-up (15950)

High logic.

Pull-down (15951)

Low logic.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

device out is the name of the device the operation applied to.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog

Updates power up states for analog physical channels.

DAQmx Set Power Up States (Analog)

/images/reference/en-XX/help/370469AP-01/civrn.gif

device in is the name as configured in MAX of the device to which this operation applies. A DAQmx device name constant lists all devices installed in the system.

/images/reference/en-XX/help/370469AP-01/c1dcclst.gif

voltage power up states contains the physical channels and power up states to set. Each element of the array contains a physical channel and the power up state to set for that physical channel. You can set voltage power up states only for physical channels that support voltage output.

/images/reference/en-XX/help/370469AP-01/civrn.gif

physical channel is the physical channel to modify. The DAQmx physical channel constant lists all physical channels for devices installed in the system. You also can wire a string that contains a list or range of physical channels to this input. If you have an array of physical channels, use the DAQmx Flatten Channel String VI to convert the array to a list.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

value is the power up state to set for the physical channel specified with the physical channel input.

/images/reference/en-XX/help/370469AP-01/c1dcclst.gif

current power up states contains the physical channels and power up states to set. Each element of the array contains a physical channel and the power up state to set for that physical channel. You can set current power up states only for physical channels that support current output.

/images/reference/en-XX/help/370469AP-01/civrn.gif

physical channel is the physical channel to modify. The DAQmx physical channel constant lists all physical channels for devices installed in the system. You also can wire a string that contains a list or range of physical channels to this input. If you have an array of physical channels, use the DAQmx Flatten Channel String VI to convert the array to a list.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

value is the power up state to set for the physical channel specified with the physical channel input.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/iivrn.gif

device out is the name of the device the operation applied to.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Analog With Output Type

Updates power up states for analog physical channels.

DAQmx Set Power Up States (Analog With Output Type)

/images/reference/en-XX/help/370469AP-01/c1dcclst.gif

analog power up states contains the physical channels and power up states to set. Each element of the array contains a physical channel and the power up state to set for that physical channel.

/images/reference/en-XX/help/370469AP-01/civrn.gif

physical channels is the digital line or port to modify. You cannot modify dedicated digital input lines. The DAQmx physical channel constant lists all lines and ports for devices installed in the system. You also can wire a string that contains a list or range of digital lines or ports to this input. If you have an array of lines or ports, use the DAQmx Flatten Channel String VI to convert the array to a list.

/images/reference/en-XX/help/370469AP-01/ci32.gif

output type specifies the output type of the physical channel.

Voltage (10322)

Voltage output.

Current (10134)

Current output.

High-Impedance (12527)

High-impedance state.

/images/reference/en-XX/help/370469AP-01/cdbl.gif

value specifies the value to set the physical channel to on power up.

/images/reference/en-XX/help/370469AP-01/cerrcodeclst.gif

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

/images/reference/en-XX/help/370469AP-01/cbool.gif

status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.

/images/reference/en-XX/help/370469AP-01/ci32.gif

code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/cstr.gif

source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

/images/reference/en-XX/help/370469AP-01/ierrcodeclst.gif

error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.

/images/reference/en-XX/help/370469AP-01/ibool.gif

status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.

/images/reference/en-XX/help/370469AP-01/ii32.gif

code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.

/images/reference/en-XX/help/370469AP-01/istr.gif

source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

WAS THIS ARTICLE HELPFUL?

Not Helpful