User`s guide

FUNCTIONS
SDK SECTION 11
Page 246
SetShutterEx
unsigned int WINAPI SetShutterEx(int typ, int mode, int closingtime, int openingtime, int extmode)
Description
This function expands the control offered by
SetShutter to allow an external shutter and
internal shutter to be controlled independently (only available on some cameras – please
consult your Camera User Guide). The typ parameter allows the user to control the TTL
signal output to an external shutter. The opening and closing times specify the length of
time required to open and close the shutter (this information is required for calculating
acquisition timings – see SHUTTER TRANSFER TIME).
The mode and extmode parameters control the behaviour of the internal and external
shutters. To have an external shutter open and close automatically in an experiment, set
the mode parameter to “Open” and set the extmode parameter to “Auto”. To have an
internal shutter open and close automatically in an experiment, set the extmode
parameter to “Open” and set the mode parameter to “Auto”.
To not use any shutter in the experiment, set both shutter modes to permanently open.
Parameters
Int typ:
0 Output TTL low signal to open shutter
1 Output TTL high signal to open shutter
int mode:
0 Auto
1 Open
2 Close
int closingtime: time shutter takes to close (milliseconds)
int openingtime: Time shutter takes to open (milliseconds)
int mode:
0 Auto
1 Open
2 Close
Return
Unsigned int
DRV_SUCCESS
DRV_NOT_INITIALIZED
DRV_ACQUIRING
DRV_ERROR_ACK
DRV_P1INVALID
DRV_P2INVALID
DRV_P3INVALID
DRV_P4INVALID
DRV_P5INVALID
Shutter set.
System not initialized
Acquisition in progress
Unable to communicate with card.
Invalid TTL type.
Invalid internal mode
Invalid time to open.
Invalid time to close
Invalid external mode
NOTE
1. The opening and closing time can be different.
2. For cameras capable of controlling the internal and external shutter independently
(capability AC_FEATURES_SHUTTEREX) you MUST use
SetShutterEx.
3. For cameras with an internal shutter (use function IsInternalMechanicalShutter to test) but