Running DSLR Remote Pro for Windows from other programs

Top  Previous  Next

Overview

DSLR Remote Pro for Windows includes an interface library called DSLRRemoteLib.dll which can be used by other applications to control DSLR Remote Pro for Windows. Also included is a simple command line application called DSLRRemoteTest.exe which can be used to control DSLR Remote Pro for Windows from a command prompt or a batch file. For example a batch file could be written to take a series of photos using different apertures and shutter speeds to bracket the exposure.

 
DSLRRemoteLib.dll

DSLRRemoteLib.dll is a library that can be used by other programs to control DSLR Remote Pro for Windows. It can be found in the main folder where DSLR Remote Pro for Windows is installed (usually C:\Program Files\BreezeSys\DSLR Remote Pro). Please see the DSLRRemoteTest\ReadMe.txt and DSLRRemoteLib.h files for details.

 
Files included:

DSLRRemoteTest.exe - compiled console application

 

DSLRRemoteLib.dll - DLL used by DSLRRemoteTest.exe to interface with DSLR Remote Pro for Windows

DSLRRemoteLib.lib - lib for C++ apps to link to the DLL

DSLRRemoteLib.h - header file for C++ applications using the DLL

 

DSLRRemoteTest - directory containing a VC++ project and source code for DSLRRemoteTest.exe

 
DSLRRemoteTest.exe

DSLRRemoteTest.exe is a simple command line application that communicates with DSLR Remote Pro for Windows and allows the shutter to be released and some of the camera settings to be changed. DSLRRemoteTest.exe and complete source code to build it using Visual C++ .Net can be found in the DSLRRemoteTest folder where DSLR Remote Pro for Windows is installed (usually C:\Program Files\BreezeSys\DSLR Remote Pro).

 
To run DSLRRemoteTest.exe first run DSLR Remote Pro and then open a command prompt window and change directory to the DSLR Remote Pro for Windows installation folder. The run DSLRRemoteTest.exe -h to get a list of the available commands.

Here is the output from a simple session where the output directory is set and the shutter is released (commands typed in by the user are shown in bold):

 
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

 

C:\>cd C:\Program Files\BreezeSys\DSLR Remote Pro

 

C:\Program Files\BreezeSys\DSLR Remote Pro>DSLRRemoteTest.exe -h

Usage: DSLRRemoteTest <options>
       -h              print this usage information
       -w <shots>      run camera as a webcam for <shots> shots
                       images are saved as webcam.jpg in the current directory
       -t <interval>   specify the number of seconds between shots when
                       used as a webcam
       -S <camera#>    select camera (multi-camera versions of DSLR Remote Pro only)
       -C <connect>    connect or disconnect from the camera
       -a <aperture>   set the aperture, 0 = widest aperture
       -b <WB>         set the white balance or kelvin color temp
       -e <mode>       set the exposure mode (1D series cameras only)
       -s <shutter>    set the shutter speed, 0 = longest shutter speed
       -x <comp>       set the exposure compensation
       -i <quality>    set the image size and quality
       -I <ISO>        set the ISO
       -L <enable>     display/hide live view window
       -E <pathname>   capture live view frame to JPEG file
       -f <step>       focus lens: 1=near3, 2=near2, 3=near1, 4=far1, 5=far2, 6=far3
       -c <comment>    set comment to be added to images (max 255 chars)
       -p <prefix>     set the filename prefix (max 255 chars)
       -o <directory>  set the output directory
       -B <duration>   press shutter button for <duration> tenths of a sec
       -q              query output directory
       -n              don't release shutter
       -X              exit DSLR Remote Pro

C:\Program Files\BreezeSys\DSLR Remote Pro>DSLRRemoteTest.exe -n -o C:\Photos -q

Output directory: C:\Photos\2007-01-15\

 

C:\Program Files\BreezeSys\DSLR Remote Pro>DSLRRemoteTest.exe

Success, image saved as: C:\Photos\2007-01-15\IMG_0001.JPG

 

C:\Program Files\BreezeSys\DSLR Remote Pro>