Home > Function descriptions > History back  Previous chapter  Next chapter  Print  

SetIOMask

uEye ActiveX Manual Version 4.00

SetIOMask

Syntax

LONG SetIOMask (LONG nIOMask)

Description

Using SetIOMask(), you can define each GPIO as an input or output. The SetIO() function sets the additional digital outputs (GPIOs) of the uEye.

Hinweis

The GPIOs are available with the GigE uEye HE and USB uEye ME/LE (board level only) cameras. The GPIOs are not provided with optocouplers and use TTL voltages. For information on GPIO wiring, please refer to the "Electrical specifications" chapter in the uEye Manual.

Hinweis

To use hardware triggering with the uEye cameras, we suggest that you use the trigger input provided for this purpose (see SetExternalTrigger()).

To connect and control a flash (strobe) unit for the uEye cameras, it is recommended to use the flash output provided (see SetFlashStrobe()).

Parameters

nMask

Bit mask for inputs/outputs.

0x00 (00)

Use both GPIOs as inputs.

0x01 (01)

Use the first GPIO as output, the second one as input.

0x02 (10)

Use the first GPIO as input, the second one as output.

0x03 (11)

Use both GPIOs as outputs.

IS_GET_INPUT_MASK

Returns the IOs to be used as inputs.

IS_GET_OUTPUT_MASK

Returns the IOs to be used as outputs.

Return values

IS_SUCCESS

Function executed successfully

IS_NO_SUCCESS

General error message

When used with
IS_GET_INPUT_MASK
IS_GET_OUTPUT_MASK.

Bit masks of the IOs to be used.

Related functions

SetIO()

GetIOMask()

GetIO()

SetFlashStrobe()

SetExternalTrigger()


Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!

For technical questions please contact you local distributor or use the support form on our website.


© 2012 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com