Spectrum or waveform as a packed float array
const url = 'https://api.eianalytic.com/ApiWeb.svc/GetFFT_Base64';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"machinecode":1,"pointindex":1,"fileid":1,"axis":true,"OutputType":1,"SignalTypeOut":0,"hz":true,"Token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
⚠️ Declarado como booleano en la fuente; su efecto no se explica.
1 = FFT, 2 = TWF (time waveform).
0 = G, 1 = mm/s², 2 = mm/s, 3 = in/s, 4 = µm, 5 = mils, 6 = GE.
⚠️ Ojo con el nombre: false devuelve la frecuencia en Hz y true la devuelve en CPM. El nombre sugiere lo contrario.
The database token returned by Login. Sent in the request body, not
in a header.
Responses
Section titled “Responses”The packed series.
object
The Key half of every response envelope.
object
0 means OK. See the Conventions page for the full table.
Present on some responses; empty in the documented examples.
object
One series packed as base64.
object
Decode to bytes, then read as 32-bit little-endian floats.
Sample rate. ⚠️ El anexo de la fuente lo declara string pero el ejemplo devuelve un número; se documenta como número.
Matches the OutputType requested (1 = FFT, 2 = TWF).
Example
[ { "Key": { "StatusNumber": 0, "Description": "OK" }, "Value": { "SR": 25600 } }]