Digital I/O Control Reference 15.0
Events

Functions

void CVCError (ErrorCode ErrorCode, BSTR ErrorString, boolean *Continue)
 This event is fired if an error occurs in the Digital I/O Control. More...
 
void ImageUpdated ()
 Generated when the image object has changed.
 
void Listener (__int3264 Listener, long Port, State Value)
 This event is fired when the monitoring listener thread, which was started with BitListenerStart or DWORDListenerStart, detects the event defined in BitListenerCreate or DWORDListenerCreate respectively. More...
 
void Toggler (__int3264 Toggler, long Port, long Value)
 This event is fired when a bit toggle, invoked with BitTogglerStart, has completed. More...
 

Detailed Description

Function Documentation

◆ CVCError()

void CVCError ( ErrorCode  ErrorCode,
BSTR  ErrorString,
boolean *  Continue 
)

This event is fired if an error occurs in the Digital I/O Control.

Attention
Please include the appropriate header file for your compiler (cvcerror.*).
Parameters
[in]ErrorCodeA unique number describing the error. The following error codes have been defined:
1CVC_E_ERROR
 This error cannot be described more precisely.
11CVC_E_PROPERTYREAD
 A property could not be read.
12CVC_E_PROPERTYWRITE
 A property could not be written.
13CVC_E_INVALIDPORT
 An invalid port was selected.
14CVC_E_PORTREAD
 A port could not be read.
15CVC_E_PORTWRITE
 A port could not be written.
16CVC_E_NOIMAGE
 No image at all.
17CVC_E_NOINTERFACE
 No interface available.
[in]ErrorStringSpecifies the error text of the output.
[in]ContinueThis specifies whether execution should continue despite the error. The user can overwrite the value in order to change the default action. The default value depends on the function that caused the error.
TRUE specifies that a messate box will appear to inform the user of the error. FALSE means that it is possible to perform custom error handling, e.g. use a self-defined message-box.

◆ Listener()

void Listener ( __int3264  Listener,
long  Port,
State  Value 
)

This event is fired when the monitoring listener thread, which was started with BitListenerStart or DWORDListenerStart, detects the event defined in BitListenerCreate or DWORDListenerCreate respectively.

Parameters
[in]ListenerHandle of the BitListener or DWORDListener object belonging to this event.
[in]PortMonitored port.
[in]ValueValue of the port when the event is fired.
Related Topics:
BitListenerCreate, DWORDListenerCreate
Examples:
Delphi - Delphi Digital I/O Example
Visual Basic - VB Digital I/O Example
Visual C++ - VC Digital I/O Example

◆ Toggler()

void Toggler ( __int3264  Toggler,
long  Port,
long  Value 
)

This event is fired when a bit toggle, invoked with BitTogglerStart, has completed.

Parameters
[in]TogglerHandle of the BitToggler object belonging to this event.
[in]PortToggled port.
[in]ValueValue of the toggled port after the toggle is complete.
Examples:
Delphi - Delphi Digital I/O Example
Visual Basic - VB Digital I/O Example
Visual C++ - VC Digital I/O Example