SynchronizingObject
- Updated2026-02-03
- 1 minute(s) read
Obsolete: Use SynchronizeCallbacks to specify that the object marshals callbacks across threads appropriately. Will warn if used
Gets or sets the object that marshals event-handler and callback calls.
Syntax
Namespace: NationalInstruments.DAQmx
public ISynchronizeInvoke SynchronizingObject { get; set; }
Remarks
The ISynchronizeInvoke representing the object that marshals the event-handler and callback calls. The default value is null.
When the value of this property is null, event-handler and callback calls are raised in the default manner. This behavior could mean that the calls happen from a thread other than the main thread. Avoid this behavior by setting this property to an object that implements ISynchronizeInvoke, such as a Control or Form.
Note
For more information, refer to Events, Callbacks, and Thread Safety in Measurement Studio .NET Class Libraries.
Exceptions
| Type | Description |
|---|---|
| NationalInstruments.DAQmx.DaqException | The NI-DAQmx driver returned an error. |