VC Digital IO Example

<< Click to Display Table of Contents >>

Navigation:  Image Manager > Example Applications > Visual C++ >

VC Digital IO Example

 

Aim

The aim of the Common Vision Blox Digital I/O examples is to show how the I/O ports of an image acquisition device like a frame grabber or a camera can be controlled using Common Vision Blox.

 

Instructions

To control the I/O ports of a image acquisition device, a vin- driver that supports the DigIO interface has to be loaded. This is done by selecting the 'Open Image' button and loading a VIN file. With an image acquisition device driver loaded that supports the DigIO interface the 'IO Properties', 'Listen to port #0' and 'Toggle port #0' buttons become active. The 'IO Properties' button displays the property page of the Digital I/O Control.

 

The 'Listen to port #0' button creates a listener object, this object checks the state of port 0 and 'Listener Event' is fired after port has changed state, a message box is displayed in this event.

 

The 'Toggle port #0' button changes the state of the ouput port number 0.

 

Location

Startmenu:        Common Vision Blox -> Image Manager-> Visual C++ -> VC Digital IO Example

Path:                 %CVB%Tutorial\Image Manager\VC\VCDigIO

 

Functions Used

GetIsBasicDigIO, 

BitListenerCreate, 

BitListenerStart, 

BitListenerStop, 

BitListnerDestroy, 

BitTogglerCreate, 

BitTogglerStart, 

BitTogglerDestroy, 

ShowPropertyFrame, 

SetGrab