7-byte floating-point ASCII (GOESTable()
format option 1)
The 7-byte floating-point ASCII data type is a fixed-width format with variable precision.
-
Operating range of ±7999, depending on placement of decimal point (see 7-byte floating-point ASCII data).
-
Variable precision of 0.001 to 1, depending on placement of decimal point (see 7-byte floating-point ASCII data).
-
Precision (placement of decimal point) is automatically determined based on the magnitude of the value (7-byte floating-point ASCII data).
-
Number are rounded to selected precision during conversion. For example, +12.345, will be rounded to +12.35.
-
Value is always 7 characters including a trailing comma.
-
Value is always signed (+/-).
-
Leading zeros and trailing zeros are added to maintain the width (7 characters) of the value transmitted.
-
Value always has a trailing comma. This includes the last value sent.
-
Valid data outside of operating range are set to –7999 or +7999, unless it is a NAN, +INF, or -INF (see 7-byte floating-point ASCII data).
Range | Maximum precision | Example ASCII output |
---|---|---|
±7.999 | 0.001 | +1.200, |
±79.99 | 0.01 | +12.00, |
±799.9 | 0.1 | +120.0, |
±7999 | 1 | +1200., |
NAN1 = –8190., | ||
+INF2 = +8191., | ||
-INF2 = -8191., | ||
Example output (with 10 fields):
GoesTable()
Fields_Scan_Order = FALSE, Newest_First=FALSE, Format = 1
GoesField()
Decimation = 1
<CR><LF>-7994.,-7994.,+8191.,-8191.,-8190.,+8191.,-8191.,-8190.,+13.10,+27.32,
GoesTable()
Fields_Scan_Order = FALSE, Newest_First=FALSE, Format = 1
GoesField()
Decimation = 4
<CR><LF>-7997.,-7997.,+8191.,-8191.,-8190.,+8191.,-8191.,-8190.,+13.15,+26.08,
<CR><LF>-7996.,-7996.,+8191.,-8191.,-8190.,+8191.,-8191.,-8190.,+13.16,+26.04,
<CR><LF>-7995.,-7995.,+8191.,-8191.,-8190.,+8191.,-8191.,-8190.,+13.17,+26.03,
<CR><LF>-7994.,-7994.,+8191.,-8191.,-8190.,+8191.,-8191.,-8190.,+13.19,+26.18,
GoesTable()
Fields_Scan_Order = True, Newest_First=FALSE, Format = 1
GoesField()
Decimation = 1
<CR><LF> -7994.,
<CR><LF> -7994.,
<CR><LF> +8191.,
<CR><LF> -8191.,
<CR><LF> -8190.,
<CR><LF> +8191.,
<CR><LF> -8191.,
<CR><LF> -8190.,
<CR><LF> +13.13,
<CR><LF> +27.72,
GoesTable()
Fields_Scan_Order = True, Newest_First=FALSE, Format = 1
GoesField()
Decimation = 4
<CR><LF>-7997.,-7996.,-7995.,-7994.,
<CR><LF>-7997.,-7996.,-7995.,-7994.,
<CR><LF>+8191.,+8191.,+8191.,+8191.,
<CR><LF>-8191.,-8191.,-8191.,-8191.,
<CR><LF>-8190.,-8190.,-8190.,-8190.
<CR><LF>,+8191.,+8191.,+8191.,+8191.,
<CR><LF>-8191.,-8191.,-8191.,-8191.,
<CR><LF>-8190.,-8190.,-8190.,-8190.,
<CR><LF>+13.12,+13.12,+13.12,+13.11,
<CR><LF>+27.59,+27.59,+27.59,+27.60,