SetScriptTriggerMaster(string, ITClockSynchronizableDevice)
- Updated2025-10-07
- 1 minute(s) read
Sets the script trigger master session.
Syntax
Namespace: NationalInstruments.ModularInstruments.SystemServices.TimingServices
public void SetScriptTriggerMaster(string channelName, ITClockSynchronizableDevice scriptTriggerMaster)
Parameters
| Name | Type | Description |
|---|---|---|
| channelName | string | Valid values for the channelName are "<tt>scriptTrigger0</tt>", "<tt>scriptTrigger1</tt>", "<tt>scriptTrigger2</tt>", and "<tt>scriptTrigger3</tt>". An empty string is treated as "<tt>scriptTrigger0</tt>". |
| scriptTriggerMaster | ITClockSynchronizableDevice | An ITClockSynchronizable object that represents a modular instrument connected to the system. |
Exceptions
| Type | Description |
|---|---|
| System.InvalidOperationException | The DeviceToSynchronize object does not belong to a TClock object. |
| System.ObjectDisposedException | The ITClockSynchronizable object that is contained in the DeviceToSynchronize object has been disposed. |
| NationalInstruments.ModularInstruments.ModularInstrumentsException | The underlying driver returned an error. |
| System.ArgumentNullException | The value being set on the property is null. |