DioStopNotifyTrg


Function

Stops monitoring the trigger of the specified logical bit.

Format

Ret = DioStopNotifyTrg ( Id , TrgBit )

Parameters

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from DioInit.

TrgBit [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
Specify the logical input bit for which you want to stop monitoring trigger.

Return Value

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

Definition

Value

[Dec]

Description

DIO_ERR_SUCCESS

0

Normal completed.

DIO_ERR_SYS_RECOVERED_FROM_STANDBY

7

Execute DioResetDevice function because the device has recovered from standby mode.

DIO_ERR_DLL_INVALID_ID

10001

Invalid ID specified.

DIO_ERR_DLL_CALL_DRIVER

10002

Not call the driver (Failure on DEVICE I/O CONTROL).

DIO_ERR_SYS_NOT_SUPPORTED

20001

This board couldn't use this function.

DIO_ERR_SYS_USING_OTHER_PROCESS

20003

Other process is using the device, not execute.

DIO_ERR_SYS_BIT_NO

20102

Bit No. beyond the limit.

The others (See also: Details of Error Code)

Initial Value

The trigger monitor function is invalid.

Remarks

The trigger monitor function is a function, that uses the device's own timer or the Windows's timer to monitor the change of the specified bit's input value. When the input value of a bit changes from 0 to 1 or from 1 to 0, the change of the bit will be notified to the application through the Window message.

The DioStopNotifyTrg function is used to invalidate the trigger monitor that was validated with the DioNotifyTrg function. Call the DioNotifyTrg function to validate the trigger monitor again.

This function cannot be used with DIO-CPS-BXC200.

Example

Stops the trigger monitor for logical bit 0.

VB.NET

Dim Ret As Integer
Ret = DioStopNotifyTrg ( Id , 0 )
 

C, C++

long Ret;
Ret = DioStopNotifyTrg ( Id , 0 );
 

C#

int Ret;
Ret = dio.StopNotifyTrg ( Id , 0 );
 

Python

Ret = ctypes.c_long()
Ret.value = cdio.DioStopNotifyTrg ( Id , 0 )
 

See Also

DioNotifyTrg