API Command Reference Appendix A
A-36 NetScan Users Manual
P - Program Trigger Times
TYPE
Channel
EXECUTION
Deferred
SYNTAX
Pstart,
stop
Set the trigger start and/or stop times for an acquisition configured f or s tart
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 m onth,
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 s top times for an
acquisition that is configured for start and/or stop on Absolute Time as c onfigured by the Set Trigger
Configuration (T) command.
The Program Trigger Times command is to be used in concert with the Set Trigger Configurati on c ommand when
it is desired to begin and/or stop an acquisition on certain times and/or dates. The values of the start 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 / s top at a particular
time, independent of the date. If the date for the start/stop tim e 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 st op 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,S12:54:00.0, 01/01/93X
Set the internal clock of the unit
PRINT#1,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,T11,11,0,0X
Configure for start/stop on Absolute Time