Back to Adaptive Vision Library Lite website

You are here: Start » NET SynView » SynView_GetDigitalIOStates

SynView_GetDigitalIOStates


Header: ThirdPartySdk.h
Namespace: avl

Gets SynView digital IO states.

Syntax

void avl::SynView_GetDigitalIOStates
(
	SynView_GetDigitalIOStatesState& ioState,
	atl::Optional<const atl::String&> inDeviceID,
	int inLineNumber,
	bool& outState
)

Parameters

Name Type Range Default Description
ioState SynView_GetDigitalIOStatesState& Object used to maintain state of the function.
inDeviceID Optional<const String&> NIL Tries to find the camera in all available IDs (UserID, VendorName, ModelName...)
inLineNumber int 1 - 32 I/O line for querying
outState bool& Current status of the selected line

Description

This filter gets the logical state of the selected Digital IO line.

The line mapping is fixed for all camera families - all PicSight and CheckSight models. It's briefly summarized in the following table, details are listed in SynView Manual Sections: "Input and output signals" and "Connector and cable description".

I/O lines Mapped signals
Line1 - Line4 Optocoupler inputs
Line5 - Line8 Reserved
Line9 - Line12 Optocoupler outputs
Line13 - Line16 Reserved
Line17 - Line18 TTL inputs
Line19 - Line24 Reserved
Line25 - Line26 TTL outputs
Line27 - Line32 Reserved

Remarks

Camera driver software

This filter is intended to cooperate with cameras using their vendor's SDK. In order to connect with the camera, it is required to install SynView SDK software with camera dedicated drivers.

SynView SDK can be downloaded from the following website: https://net-gmbh.com/en/machine-vision/products/software

To verify the driver installation, you can run SynView Explorer (in the directory where camera drivers where installed). If the camera was detected and you can see the view from the camera, you can use SynView camera SDK in Adaptive Vision Studio.

Recommended SynView SDK version for Adaptive Vision Studio usage is 1.03.003.

Camera identification

When there is only one camera connected, the field inDeviceID can be set to Auto. In this situation, the first available camera will be used.

inDeviceID can be used to pick one of multiple cameras connected to the computer. DeviceID can be set to:

  • UserID - User ID (also known as nickname) of the selected device,
  • VendorName - Name of the manufacturer of the device,
  • ModelName - Model name of the device,
  • DisplayName - Device display name,
  • IPAddress - Current IP address of the selected device (GigE Vision devices only),
  • MACAddress - MAC address of the selected device (GigE Vision devices only),
  • SerialNumber - String representation of camera's unique serial number.

Multithreaded environment

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

See Also