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>]
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- |