abfAddReals()

Appends a series of floating point values to the currently open component.

Syntax

void abfAddReals(void *val, int len);

Inputs

val
A pointer to the values to be appended.
len
The number of values.

Example

double vals[256];
/* read in vals here */
abfOpenDatatype("Acceleration");
abfOpenRequest("Head");
abfOpenComponent("X");
abfAddReals(vals, 256);

Comment

The values are represented in the binary format specified by abfSetPrecision() or via abfDefaultPrecision().

Unlike AddReal(), which performs precision conversions, the values pointed to must be in the correct binary format.

The results of using abfAddReals() with a component defined as integer (via abfUseFloatingPoint (0)) are undefined.