4. Interfacing to the world 62
Note
The Invert property affects output signals only. It has no effect on input sig-
nal decoding.
4.5.2 Open collector
The high voltage output mode can be directly set by your application. The following code sets port 4 as
open-collector:
Example Code 4.9 | Drive 24 V input signals
if (device.PIOPorts[4].OpenCollectorModeAvailable)
device.PIOPorts[4].OpenCollectorMode = true;
4.5.3 Software output
The logic level of any output port can be directly set by your application. The following code sets port 3
as a software-controlled output and sets the output level as logic ‘1’:
Example Code 4.10 | Output controlled via software
device.PIOPorts[3].Invert = false; // Logic '1' == electric High
device.PIOPorts[3].Value = true; // Set port 3 output high
device.PIOPorts[3].Source = OutputSource.Manual; // Port 3 output now manually driven
Note
The electrical level generated at the output port is related to the state of
the Invert and the OpenCollectorMode properties (see Sections 4.5.1 and
4.5.2).
4.5.4 Trigger Output
Output signals generated by the trigger manager module can be connected to output ports. This allows
synchronizing ancillary devices to the camera acquisition phases: for example, a lighting device can be
synchronized to the camera exposure using the Strobe signal output. The next paragraphs illustrate how
these signals can be routed to output ports and how to congure them.
4.5.4.1 Exposure
The exposure signal is active during the exposure phase of each line capture (the time the shutter is open).
The following code sets the exposure signal as the source for output port 3.