NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

Task.DevicesWithInsertedOrRemovedAccessories Property

  • Updated2023-02-21
  • 1 minute(s) read
Task.DevicesWithInsertedOrRemovedAccessories Property
Indicates the names of any devices that detected the insertion or removal of an accessory since the task started. You must read AccessoryInsertionOrRemovalDetected before you read this property. Otherwise, you will receive an error.

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

Syntax

public string[] DevicesWithInsertedOrRemovedAccessories { get; }
Public ReadOnly Property DevicesWithInsertedOrRemovedAccessories As String()
	Get

Property Value

Type: String
Indicates the names of any devices that detected the insertion or removal of an accessory since the task started. You must read AccessoryInsertionOrRemovalDetected before you read this property. Otherwise, you will receive an error.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

This property returns a copy of the actual array. Avoid calling this property within a for loop because it creates a copy for each iteration of the loop. Avoid using an indexer to set a member of the array because the indexer returns a copy of the object and has no effect on the actual object.

See Also

Log in to get a better experience