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. By default, callbacks are executed 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. For more information about the effects and purpose of SynchronizingObject, refer to Events.
Events
Exceptions
| Type | Description |
|---|---|
| NationalInstruments.DAQmx.DaqException | The NI-DAQmx driver returned an error. |