Running PSRemote from other programs

Top  Previous  Next

Overview

PSRemote includes an interface library called PSRemoteLib.dll which can be used by other applications to control PSRemote. Also included is a simple command line application called PSRemoteTest.exe which can be used to control PSRemote 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.

PSRemoteLib.dll

PSRemoteLib.dll is a library that can be used by other programs to control PSRemote. It can be found in the PSRemoteTest folder where PSRemote is installed (usually C:\Program Files\BreezeSys\PSRemote\PSRemoteTest). Please see the ReadMe.txt and PSRemoteLib.h files for details.

Files included in the PSRemoteTest directory:

PSRemoteTest.exe - compiled console application

interval_shooting.pl - example Perl script for time-lapse sequences

 

PSRemoteLib.dll - DLL used by PSRemoteTest.exe to interface with PSRemote

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

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

 

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

PSRemoteTest.exe

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

To run PSRemoteTest.exe first run PSRemote and then open a command prompt window and change directory to the PSRemoteTest folder. Then run PSRemoteTest.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 XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

 

C:\>cd C:\Program Files\BreezeSys\PSRemote\PSRemoteTest

 

C:\Program Files\BreezeSys\PSRemote\PSRemoteTest>PSRemoteTest.exe -h

Usage: PSRemoteTest [-w [<shots>] [-i <interval>]] [-a <aperture>] [-s <shutter>]

 

-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

 

-a <aperture>

set the aperture, 0 = widest aperture

 

-s <shutter>

set the shutter speed, 0 = longest shutter speed

 

-e <mode>

set the exposure mode (EOS-1D and EOS-1DS only)

 

-x <comp>

set the exposure compensation

 

-i <quality>

set the image size and quality

 

-I <ISO>

set the ISO

 

-c <comment>

set comment to be added to images (max 255 chars)

 

-o <directory>

set the output directory

 

-q

query output directory

 

-n

don't release shutter

C:\Program Files\BreezeSys\PSRemote\PSRemoteTest>PSRemoteTest.exe -n -o C:\Photos -q

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

 

C:\Program Files\BreezeSys\PSRemote\PSRemoteTest>PSRemoteTest.exe

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

 

C:\Program Files\BreezeSys\PSRemote\PSRemoteTest>

Sample Perl script for time-lapse sequences

interval_shooting.pl is a sample Perl script which can be used to take time-lapse sequences. It connects to the camera, takes a photo and then disconnects from the camera until it is time to take the next photo. The script can be configured to take shots at different intervals with a specified start time and stop time and can take a single shot or take a three shot auto-