Skip to content

Spectrum or waveform as a packed float array

POST
/GetFFT_Base64
curl --request POST \
--url https://api.eianalytic.com/ApiWeb.svc/GetFFT_Base64 \
--header 'Content-Type: application/json' \
--data '{ "machinecode": 1, "pointindex": 1, "fileid": 1, "axis": true, "OutputType": 1, "SignalTypeOut": 0, "hz": true, "Token": "example" }'

The replacement for GetFFT. Returns the series packed as a base64 string that decodes to a 32-bit little-endian float array, which is far smaller over the wire than coordinate pairs.

Media typeapplication/json
object
machinecode
required
integer
pointindex
required
integer
fileid
required
integer
axis

⚠️ Declarado como booleano en la fuente; su efecto no se explica.

boolean
OutputType
required

1 = FFT, 2 = TWF (time waveform).

integer
Allowed values: 1 2
SignalTypeOut
required

0 = G, 1 = mm/s², 2 = mm/s, 3 = in/s, 4 = µm, 5 = mils, 6 = GE.

integer
Allowed values: 0 1 2 3 4 5 6
hz

⚠️ Ojo con el nombre: false devuelve la frecuencia en Hz y true la devuelve en CPM. El nombre sugiere lo contrario.

boolean
Token
required

The database token returned by Login. Sent in the request body, not in a header.

string

The packed series.

Media typeapplication/json
Array<object>
object
Key

The Key half of every response envelope.

object
StatusNumber
required

0 means OK. See the Conventions page for the full table.

integer
Description
required
string
Configs

Present on some responses; empty in the documented examples.

Array<object>
object
Value

One series packed as base64.

object
base64

Decode to bytes, then read as 32-bit little-endian floats.

string
SR

Sample rate. ⚠️ El anexo de la fuente lo declara string pero el ejemplo devuelve un número; se documenta como número.

integer
type

Matches the OutputType requested (1 = FFT, 2 = TWF).

integer
Example
[
{
"Key": {
"StatusNumber": 0,
"Description": "OK"
},
"Value": {
"SR": 25600
}
}
]