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

NameTypeDescription
channelNamestring

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

TypeDescription
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.