GetScriptTriggerMaster(string)
- Updated2025-10-07
- 1 minute(s) read
Gets the script trigger master session.
Syntax
Namespace: NationalInstruments.ModularInstruments.SystemServices.TimingServices
public ITClockSynchronizableDevice GetScriptTriggerMaster(string channelName)
Remarks
Returns an ITClockSynchronizable object that represents a modular instrument connected to the system.
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>". |
Exceptions
| Type | Description |
|---|---|
| System.ArgumentNullException | channelName cannot be null. |
| 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. |
| System.InvalidOperationException | Cannot call this method before the session is opened. |
| NationalInstruments.ModularInstruments.ModularInstrumentsException | The underlying driver returned an error. |