ZmSetTriggerSyncEnable


Function

Enable/disable the trigger synchronous output.

Format

Ret = ZmCorrection ( 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#: ushort ]
Specify enable/disable.

Definition

Value
[Dec]

Description

ZM_DISABLE

0

Disable

ZM_ENABLE

1

Enable

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.

ZM_ERR_SYS_ENABLE

20109

Enable is out of the settable range.

The others (See also: Details of Error Code)

Initial Value

1 : Enable

Remarks

Enable/disable the trigger synchronous output.
Trigger synchronous output is enabled/disabled for each channel.

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

Example

Set the trigger synchronous output to "0 : Disable" for ChannelNo = 1.

VB.NET

Dim Ret As Integer
Ret = ZmSetTriggerSyncEnable ( Id , 1 , 0 )
 

C, C++

long Ret;
Ret = ZmSetTriggerSyncEnable ( Id , 1 , 0 );
 

C#

int Ret;
Ret = zm.SetTriggerSyncEnable( Id , 1 , 0 );
 

See Also

ZmGetTriggerSyncEnable ZmSetSignalOutputDelay