EXAMPLE: VTRGRAB.CMD


Contents Summary

Detailed Contents
1. Introduction
2. Starting DigImage
3. Basic Operation
4. Sample Session
5. Command Files
6. Movies
7. Coordinate Systems
8. Warnings, Errors and Crashes
9. Utilities
10. Macros
11. Other Considerations
12. Updates
Appendix A: Menus
Index


5.5 EXAMPLE: VTRGRAB.CMD

The following example, VTRGRAB.CMD will acquire a series of buffers at a constant spacing by controlling the VTR. Like INTRLACE.CMD, this command file may be used either at the top most level, prompting for values, or nested with passed values. Note the use of the !!G format specifier for variables !!2 and !!3. This is necessary to produce the variables in their floating point form. This is also necessary when accessing the !!T pseudo variable to accept data in the DigImage time format.

################################################################
# VTRGrab.CMD                                                  #
#   Command sequence for acquiring a series of buffers from    #
#   video tape.                                                #
#                                                              #
#   Variable usage:                                            #
#       !!1     Number of buffers to be acquired               #
#       !!2     Offset of first buffer - accessed as !!G2      #
#               since we require a real value.                 #
#       !!3     Spacing of buffers - accessed as !!G3 since    #
#               we require a real value                        #
################################################################
# Start from main menu
; Return to main menu
#
# If this command file is nested, then assume !!1, !!2 and !!3
# contain required values, otherwise prompt user for buffer range
!!L>0 :RangeSpecified
  !^ Acquire how many buffers ?
  !!1:=!!B
  !^ Offset time for first buffer ?
  !!2:=!!GT
  !^ Time between buffers ?
  !!3:=!!GT
!!:RangeSpecified

# Now enter [;VGC Grab constant spaced sequence]
V: Video Tape Recorder Control
G  SVHS Grab sequence
C  Grab constant spaced sequence

# Provide the data controlling the acquisition
!!G2   # Offset time (real) for fist buffer
!^ Spacing...
!!G3   # Spacing of buffers
!^ Number ...
!!1    # Number of buffers to be acquired

# The VTR may be either Repositioned at the end of the sequence,
# or Left where it was. We shall reposition it.
Reposition

; Return to main menu


Note that the buffers are acquired with the first image going into buffer !!1 and the last to buffer 1.

If you are using the older AG-7330 video, then you must ensure the OPERATION switch is in the REMOTE position on the video. The computer is not able to control the video when the switch is in the LOCAL position. With the newer AG-7350 the VTR does not need to be switched between manual and computer control.

Goto next document (Contour)


Links

SYSTEM OVERVIEW

Contents
Index

OTHER

DigImage documentation page
DigImage home page
Stuart Dalziel's home page


Stuart Dalziel, last page update: 21 June 1999