User`s guide
SdfYdataWrite
Syntax int SdfYdataWrite (short fn, long offset, short dataNo,
short rowNo, short colNo, long scanNo, long pnts,
short dataType, float far *y);
Returns an integer(short) of zero or minus one. A return of 0 indicates no error; a return of
-1 indicates an error.
This function writesY-axis data from an array and puts it in an open SDF file , where y is the pointer to
the array, and fn is the number of the open SDF file (for details, see SdfOpen).
When you use SdfYdataWrite, data is converted back into its original form before writing to your file.
For example, suppose the data in your file is in integer format and you use SdfYdata with a dataType of
FLOAT32. In this case, SdfYdata converts the data from your file into 32-bit floating point and scales the
data based on the value of channelScale. If you use SdfYdataWrite to write data back to your file, the
data is converted back into integer form before it is written to your file. If any data value exceeds
channelScale (in SDF_CHANNEL_HDR), that data will be clipped.
Note When the dataType specified is floating point (FLOAT32 or DOUBLE64), Y-axis data
is read with window-correction and engineering-unit factors applied, and it is written
back to the SDF file with these factors removed. For further details about dataType, and
for a description of the parameters used with this function, see SdfYdata .
Using SDF Data with C Programs
SdfYdataWrite
6-16