Appendix A API Commands
ChartScan User’s Manual A-45
P - Program Trigger Times
TYPE
Channel
EXECUTION
Deferred
SYNTAX
Pstart,
stop
Set the trigger start and/or stop times for an acquisition configured for start
and/or stop on absolute time, where start and stop are in the standard
time/date stamp format: HH:MM:SS:T,mm/dd/yy where H is hours,
MM is minutes, SS is seconds, T is tenths of a second, mm is month,
dd is day, and yy is year.
P?
Query current start and stop times in the form: Pstart,stop
DESCRIPTION
The Program Trigger Times (P) command may be used to set the trigger start and/or stop tim es for an
acquisition that is configured for start and/or stop on Absolute Time as configured by the Set Tri gger
Configuration (T) command.
The Program Trigger Times command is to be used in concert with the Set Trigger Configuration command when
it is desired to begin and/or stop an acquisition on certain times and/or dates. The values of the st art and stop
times are only used when the start and/or stop events have been configured for Absolute Time.
If only the start time is needed, the stop argument should be set to 00:00:00.0,00/00/00. Likewise, if
only the stop time is needed, the start argument should be set to 00:00:00.0,00/00/00.
In addition to the ability to start/stop on a particular time/date the unit has the ability to start/stop at a partic ular
time, independent of the date. If the date for the start/stop time is of no concern, then the date portion of the
time/date field should be set to 00/00/00. In this way, the unit can start or stop an acquisition at a particular
time regardless of the date. This feature is particularly useful when using the auto-rearm feature of the unit since
it will allow the collection of data at a particular time each day without user intervention.
EXAMPLE
PRINT#1,“OUTPUT07;S12:54:00.0,
01/01/93X”
‘ Set the internal clock of the unit
PRINT#1,“OUTPUT07;P01:00:00, 0,
01/01/93, 02:00:00.0, 01/01/93X”
‘ Set start (1:00 am) and stop (2:00 am)
acquisition times
PRINT#1,“OUTPUT07;T11,11,0,0X”
‘ Configure for start/stop on Absolute Time