Specifications

20 – Using PlantScape Data in Other Applications
470 R400
NAPI_rGetdat_int
Retrieves a single field from a user file in the following formats:
Example To retrieve the current system sinewave value (int) from file 8, record 1, word 114
from server hsserva:
=NAPI_rGetdat_int("hsserva",8,1,114,0)
NAPI_rGetdat_float
See “NAPI_rGetdat_int” on page 470.
NAPI_rGetdat_double
See “NAPI_rGetdat_int” on page 470.
NAPI_rGetdat_long
See “NAPI_rGetdat_int” on page 470.
double double precision (8 bytes) I.E.E.E. floating point
float single precision (4 byte) I.E.E.E. floating point
int two bytes signed integer
long four bytes signed integer
str character string
Server Name of the PlantScape server from which data is retrieved.
File PlantScape database file number.
User files start from file 251 so that user file 1 is file 251, user file 2 is file
252 and so on.
Record The record number in the user file.
Word The word number in the record.
Flags For a circular file, specifies the direction to read. Enter newest for the
newest record or oldest for the oldest record. Enter 0 for non-circular
files.
plscpcg.book Page 470 Monday, May 28, 2001 10:11 AM