Image Manager (CVCDriver.dll) 15.0
IBasicDigIO

Interface for controlling a digital input/output device. More...

Functions

cvbres_t BDIOGetInBit (IMG Image, cvbval_t lNum, cvbval_t &lBit)
 Reads the state of an input port. More...
 
cvbres_t BDIOGetInDword (IMG Image, cvbval_t lNum, cvbuint32_t &dwValue)
 Reads the state of an input port group. More...
 
cvbres_t BDIOGetNumInputs (IMG Image, cvbval_t &lNum)
 Returns the number of available input ports. More...
 
cvbres_t BDIOGetNumOutputs (IMG Image, cvbval_t &lNum)
 Returns the number of available output ports. More...
 
cvbres_t BDIOGetOutBit (IMG Image, cvbval_t lNum, cvbval_t &lBit)
 Returns the state of an output port. More...
 
cvbres_t BDIOGetOutDword (IMG Image, cvbval_t lNum, cvbuint32_t &dwValue)
 Returns the state of an output port group. More...
 
cvbres_t BDIOSetOutBit (IMG Image, cvbval_t lNum, cvbval_t lValue)
 Sets the state of an output port. More...
 
cvbres_t BDIOSetOutDword (IMG Image, cvbval_t lNum, cvbuint32_t dwValue, cvbuint32_t dwMask)
 Sets the state of an output port group. More...
 
cvbbool_t CanBasicDIO (IMG Image)
 This function verifies whether the image supports the BasicDigIO interface. More...
 

Detailed Description

Interface for controlling a digital input/output device.

Function Documentation

◆ BDIOGetInBit()

cvbres_t BDIOGetInBit ( IMG  Image,
cvbval_t  lNum,
cvbval_t &  lBit 
)

Reads the state of an input port.

Parameters
[in]ImageHandle of image object.
[in]lNumPort number to access.
[out]lBitState of the port.
Returns
0 : OK
<0 : an error occured
Supported platforms:
Win32
Win64
Linux
Examples:
Visual C++ - VC MDI Example (DLL only)

◆ BDIOGetInDword()

cvbres_t BDIOGetInDword ( IMG  Image,
cvbval_t  lNum,
cvbuint32_t &  dwValue 
)

Reads the state of an input port group.

Parameters
[in]ImageHandle of image object.
[in]lNumPort group number to access.
[out]dwValueState of the port group.
Returns
0 : OK
<0 : an error occured
Supported platforms:
Win32
Win64
Linux
Related Topics:
Reading and writing individual ports or port groups.
Examples:
Visual C++ - VC MDI Example (DLL only)

◆ BDIOGetNumInputs()

cvbres_t BDIOGetNumInputs ( IMG  Image,
cvbval_t &  lNum 
)

Returns the number of available input ports.

Parameters
[in]ImageHandle of image object.
[out]lNumNumber of input ports.
Returns
0 : OK
<0 : an error occured
Supported platforms:
Win32
Win64
Linux
Examples:
Visual C++ - VC MDI Example (DLL only)

◆ BDIOGetNumOutputs()

cvbres_t BDIOGetNumOutputs ( IMG  Image,
cvbval_t &  lNum 
)

Returns the number of available output ports.

Parameters
[in]ImageHandle of image object.
[out]lNumNumber of output ports.
Returns
0 : OK
<0 : an error occured
Supported platforms:
Win32
Win64
Linux
Examples:
Visual C++ - VC MDI Example (DLL only)

◆ BDIOGetOutBit()

cvbres_t BDIOGetOutBit ( IMG  Image,
cvbval_t  lNum,
cvbval_t &  lBit 
)

Returns the state of an output port.

Parameters
[in]ImageHandle of image object.
[in]lNumPort number to access.
[out]lBitState of the port.
Returns
0 : OK
<0 : an error occured
Supported platforms:
Win32
Win64
Linux
Examples:
Visual C++ - VC MDI Example (DLL only)

◆ BDIOGetOutDword()

cvbres_t BDIOGetOutDword ( IMG  Image,
cvbval_t  lNum,
cvbuint32_t &  dwValue 
)

Returns the state of an output port group.

Parameters
[in]ImageHandle of image object.
[in]lNumPort group number to access.
[out]dwValueState of the port group.
Returns
0 : OK
<0 : an error occured
Supported platforms:
Win32
Win64
Linux
Related Topics:
Reading and writing individual ports or port groups.
Examples:
Visual C++ - VC MDI Example (DLL only)

◆ BDIOSetOutBit()

cvbres_t BDIOSetOutBit ( IMG  Image,
cvbval_t  lNum,
cvbval_t  lValue 
)

Sets the state of an output port.

Parameters
[in]ImageHandle of image object.
[in]lNumPort number to access.
[in]lValueState of the port.
Returns
0 : OK
<0 : an error occured
Supported platforms:
Win32
Win64
Linux
Examples:
Visual C++ - VC MDI Example (DLL only)

◆ BDIOSetOutDword()

cvbres_t BDIOSetOutDword ( IMG  Image,
cvbval_t  lNum,
cvbuint32_t  dwValue,
cvbuint32_t  dwMask 
)

Sets the state of an output port group.

Parameters
[in]ImageHandle of image object.
[in]lNumPort group number to access.
[in]dwValueState of the output port group.
[in]dwMaskUsed mask.
Returns
0 : OK
<0 : an error occured
Supported platforms:
Win32
Win64
Linux
Related Topics:
Reading and writing individual ports or port groups.
Examples:
Visual C++ - VC MDI Example (DLL only)

◆ CanBasicDIO()

cvbbool_t CanBasicDIO ( IMG  Image)

This function verifies whether the image supports the BasicDigIO interface.

Parameters
[in]ImageHandle of image object.
Returns
TRUE if the image supports the BasicDigIO interface, FALSE otherwise.
Supported platforms:
Win32
Win64
Linux
Examples:
Visual C++ - VC MDI Example (DLL only)