Back to Adaptive Vision Library website

You are here: Start » Function Reference » XIMEA » M3API_SetDigitalOutputModes_Deprecated

M3API_SetDigitalOutputModes_Deprecated


Manages digital outputs in a XIMEA camera.

Syntax

void avl::M3API_SetDigitalOutputModes_Deprecated
(
	M3API_SetDigitalOutputModes_DeprecatedState& ioState,
	atl::Optional<int> inDeviceID,
	atl::Optional<avl::XIMEAGPOState::Type> inGPIO1State,
	atl::Optional<avl::XIMEAGPOState::Type> inGPIO2State,
	atl::Optional<avl::XIMEAGPOState::Type> inGPIO3State,
	atl::Optional<avl::XIMEAGPOState::Type> inGPIO4State
)

Parameters

Name Type Default Description
ioState M3API_SetDigitalOutputModes_DeprecatedState& Object used to maintain state of the function.
inDeviceID Optional<int> NIL Camera chip ID
inGPIO1State Optional<XIMEAGPOState::Type> NIL Sets GPIO1 state
inGPIO2State Optional<XIMEAGPOState::Type> NIL Sets GPIO2 state
inGPIO3State Optional<XIMEAGPOState::Type> NIL Sets GPIO3 state
inGPIO4State Optional<XIMEAGPOState::Type> NIL Sets GPIO4 state

Description

XIMEAGPIOState may take one of the values:
  1. SET_ZERO - sets gpio to zero
  2. SET_ONE - sets gpio to one
  3. SET_EXT_EVENT - sets gpio to input external event
  4. SET_STROBE_OUT - sets gpio to output "strobe out" signal (device busy)
  5. SET_TRIGGER - sets gpio to trigger input
  6. SET_STROBE_OUT_INV - sets gpio to output inverted "strobe out" (device busy)
  7. SET_STROBE_OUT_INT - sets gpio to output "strobe out" signal (integration)
  8. SET_STROBE_OUT_INT_INV - sets gpio to output inverted "strobe out" (integration)

To be able to use a XIMEA camera, you need to install camera driver. You can find it at the following address (select binaries):

https://www.ximea.com/support/wiki/apis/XIMEA_API_Software_Package

To install XIMEA camera driver, follow the steps below:

  1. Connect your camera to your computer.
  2. Manually select the path to the unpacked camera driver and install it.

To verify the driver installation, you can run newCCDtest_mm.exe (in the directory, where camera driver was unpacked). If the camera was detected and you can see the image from it, you can use your XIMEA camera in Adaptive Vision Studio.

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.

See Also