ZmGetTriggerSyncEnable


Function

Get the enable/disable of trigger synchronous output.

Format

Ret = ZmGetTriggerSyncEnable ( Id , ChannelNo , Enable )

Parameters

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ]
Specify the device ID retrieved from ZmInit.

ChannelNo [ VB.NET: UShort ] [ C, C++: unsigned short ] [ C#: ushort ]
Specify the channel number.

Enable [ VB.NET: UShort ] [ C, C++: unsigned short * ] [ C#: out ushort ]
Specify the variable address for storing enable/disable.

Return Value

Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ]

Definition

Value
[Dec]

Description

ZM_ERR_SUCCESS

0

Normality completion

ZM_ERR_SYS_CHANNEL_NO

20100

Channel No is out of the settable range.

The others (See also: Details of Error Code)

Initial Value

1 : Enable

Remarks

Get the enable/disable of trigger synchronous output.
Enable/disable of trigger synchronous output is gotten for each channel.

For details about trigger synchronous output, please refer to the glossary "Trigger Synchronous Output".

Example

Get the enable/disable of trigger synchronous output for ChannelNo = 1.

VB.NET

Dim Ret As Integer

Dim Enable As UShort
Ret = ZmGetTriggerSyncEnable ( Id , 1 , 0 , Enable )
 

C, C++

long Ret;

unsigned short Enable;
Ret = ZmGetTriggerSyncEnable ( Id , 1 , 0 , &Enable );
 

C#

int Ret;

ushort Enable;
Ret = zm.GetTriggerSyncEnable ( Id , 1 , 0 , out Enable );
 

See Also

ZmSetTriggerSyncEnable ZmGetSignalOutputDelay