NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

DaqSystem.SetDevicePowerUpState Method (String, String[], DigitalPowerUpState[])

  • Updated2023-02-21
  • 2 minute(s) read
DaqSystem.SetDevicePowerUpState Method (String, String[], DigitalPowerUpState[])
Updates the power up states to which to set digital physical channels on a device when the device powers up or when you reset the device.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

public void SetDevicePowerUpState(
	string deviceName,
	string[] virtualChannels,
	DigitalPowerUpState[] powerUpStates
)
Public Sub SetDevicePowerUpState ( 
	deviceName As String,
	virtualChannels As String(),
	powerUpStates As DigitalPowerUpState()
)

Parameters

deviceName
Type: SystemString
The name, as configured in Measurement Automation Explorer (MAX), of the device to which this operation applies.
virtualChannels
Type: SystemString
The digital lines or ports for which to set new power up states. Each value in this array specifies a virtual channel string that is assigned the power up state at the corresponding position in the powerUpStates parameter. You cannot set power up states for dedicated digital input lines. You can specify a string that contains a list or range of digital lines or ports.
powerUpStates
Type: NationalInstruments.DAQmxDigitalPowerUpState
The physical channels and power up states to set. Each value in this array applies to the virtual channel name at the corresponding position of the virtualChannels parameter.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

Power up states are stored in EEPROMs that you can write to only a limited number of times. Therefore, you should use this method as infrequently as possible. This method writes to the EEPROM only if a setting you request is different from the one currently stored on the EEPROM. This method 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.

See Also

Log in to get a better experience