AnalogSingleChannelWriter.SynchronizeCallbacks Property
- Updated2023-02-21
- 1 minute(s) read
AnalogSingleChannelWriterSynchronizeCallbacks Property
Specifies how events and callback delegates are invoked.
Namespace: NationalInstruments.DAQmx
Assembly: NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302
Syntax
public virtual bool SynchronizeCallbacks { get; set; }
Public Overridable Property SynchronizeCallbacks As Boolean Get Set
Property Value
Type: Booleanif events and callbacks are invoked through Send(SendOrPostCallback, Object) or Post(SendOrPostCallback, Object). Otherwise, events and callbacks are invoked directly. The default value is .
Implements
ISupportSynchronizationContextSynchronizeCallbacksRemarks
In some cases, callbacks and event handlers are executed in a different thread than the rest of the program.
Therefore, you must take special care when accessing objects that have thread affinity, such as UI controls,
from these callbacks and event handlers. For more information, refer to
Events, Callbacks, and Thread Safety in Measurement Studio .NET Class Libraries.