Specifications
20 – Using PlantScape Data in Other Applications
472 R400
NAPI_rGethstpar_date
Retrieves history parameter value for a single point by date and time.
Example To retrieve the 10 values of fast history at 8:00am on 8 October 98 for the PV of
point PNTANA1 from server HSSERVA:
=NAPI_rGethstpar_date("hsserva",6,date(1997,10,8)-date(1981,
1,1),8*60*60,10,"", NAPI_rGetPnt_Num("hsserva","pntana1"),0)
Server Name of the PlantScape server from which data is retrieved.
HistoryType History type of the point to retrieve. For example, 6 for 5
second fast history.
The history types and the parameter values are:
• H1M (one minute history)—1
• H6M (six minute history)—2
• H1H (1 hour history)—3
• H8H (8 hour history)—4
• H24H (24 hour history)—5
• H5SF (fast history snapshots)—6
• H1HE (1 hour extended history)—7
• H8HE (8 hour extended history)—8
• H24HE (24 hour extended history)—9
HistoryDate Starting date of historical data to retrieve. This must be
entered as the number of days since 1 January 1981.
HistoryTime Starting time of historical data to retrieve. This must be
entered as the number of seconds since midnight.
NumHistoryValues Number of history values to retrieve.
ArchivePath Set this to “ ”
PointNumber Point number of the point. See “NAPI_rGetPnt_Num” on
page 474 for details of how to obtain the point number for
a point ID.
PointParameter The point parameter of interest, for example, PV.
Refer to Table 8.1, “Summary of Point Parameter Types,” on
page 134 for a list of parameter types.
plscpcg.book Page 472 Monday, May 28, 2001 10:11 AM