/      日本語

Accelerometer Real-Time Graph

Operation instructions for the Accelerometer Real-Time Graph screen

Windows   macOS   Linux   RasPi

Example Display of Demo Data

Example Display of Demo Data

Overview

This refers to packets received from TWELITE CUE and TWELITE Motion Sensor PAL. It can display accelerometer data in real-time, and includes features for frequency analysis and CSV export.

It supports three modes: CUE mode, MOT mode, and 2525 FIFO mode.

When a continuous series of samples reaches a certain number (analysis window), frequency analysis of the XYZ axes is displayed. However, in 2525 FIFO mode, it is assumed to be always continuous.

When packet boundaries are explicit (e.g., when more than 3 seconds have elapsed since the previous packet, in CUE mode for each packet, or in MOT mode when the packet sequence number is discontinuous), four dummy samples are inserted and a pink background is shown.

Data from up to four nodes are stored on a first-come, first-served basis.

Operation

OperationDescription
Top right
(i)ID# button
Click to switch the ID.
(Note: Continuous sample data in FIFO mode is not suitable for multi-ID operation)
Top right
(f)SMP# button
Click to change the analysis window size among 64, 128, and 256.
Bottom right
(c)Save Display Data button
Exports data in CSV format to the log folder.
Outputs from the oldest sample in the buffer to the latest sample at the right edge of the screen.
(Note: The output is always 5120 samples, with the latest data at the end)
Bottom right
PAUSE( ) button
Pauses display updates.
(Note: Samples are still collected until the internal temporary sample buffer is full)
Mouse drag
(Graph area)
Moves the position of displayed samples.
Mouse drag
(Bottom scrollbar)
Moves the displayed sample position in larger steps.
Arrow keys
Moves the sample display area.
Arrow keys
Zooms in/out on the horizontal axis of samples (1x / 2x / 3x / 4x).
(Note: Up to 2x when the analysis sample count is 256)

Sample Rate Estimation

The sampling rate is calculated from the packet reception times. It averages the reception times of multiple past samples to estimate one sample interval, so packet drops may cause significant errors. Also, the related log timestamp (T_SMPL) is an estimated value and is delayed compared to the packet acquisition time. Once sample rate estimation completes, graph scrolling becomes smooth.

Opening the CUE Graph Mode on Startup

Specify 31 in [STAGE Common Settings → Startup App Selection].

Log Output (Save Display Data)

Pressing the (c) Save Display Data button outputs up to 512 samples starting from the current display position (rightmost sample).

Log file name is {log folder}/acc_snap_{timestamp}.csv.

  • Data has the newest sample at the right edge as sample number 512 (file end).
  • When frequency analysis is performed, the last samples used for frequency analysis are included.
  • Frequency analysis results are added to rows containing frequency analysis target samples (for 64 samples, results appear from sample 449 for 32 rows, showing from DC to high frequency components).
LabelItem NameDescription
#Sample
Number
T_PKT[ms]Packet
Reception Time
Multiple samples may be included in one packet, so samples with the same timestamp are listed.
SEQPacket
Sequence Number
Assigned to each packet; continuity indicates no packet loss.
T_SMPL[ms]Sample
Time (Virtual/Estimated)
Timestamp generated for each sample from packet reception time.
Does not match the actual sampling time.
(Note: Sample rate is estimated from packet reception intervals, and sample times are cumulatively added, so timestamps are delayed by one packet interval compared to actual sample time)
X[G]X-axis Sample ValueUnit is G. Based on sensor values.
Y[G]Y-axis Sample ValueUnit is G. Based on sensor values.
Z[G]Z-axis Sample ValueUnit is G. Based on sensor values.
FD#Frequency Analysis Calculation IndexFor 64 samples, ordered as DC,1,2,...,31.
HzFrequency Analysis Frequency Axis ValueEstimated frequency, calculated as (FD# / FD_Len) * FD_Freq.
XFrequency Analysis Value on X-axis
YFrequency Analysis Value on Y-axis
ZFrequency Analysis Value on Z-axis
LabelAdditional Info NameSee table below
InfoAdditional InfoSee table below

Additional Information

Info NameDescription
ModuleSIDSerial number of the sender
Tick[ms]System time when the log file was opened
(Note: TWELITE STAGE app side)
DateDate when the log file was opened
TimeTime when the log file was opened
Time_Msec_partSub-second part of time when the log file was opened [ms]
SamplesValid sample data
FD_LenFrequency analysis sample count
FD_Start#Frequency analysis start sample number
FD_FreqEstimated frequency range for frequency analysis [Hz]
(Note: estimated from sample reception interval)

Log Output (Auto Save)

When the Accelerometer Real-Time Graph screen is opened and data is input, log files are automatically saved.

Log file name is log folder/accel_{serial number}_{timestamp}.csv.

LabelItem NameDescription
#Sample
Number
T_PKT[ms]Packet
Reception Time
Multiple samples may be included in one packet, so samples with the same timestamp are listed.
SEQPacket
Sequence Number
Assigned to each packet; continuity indicates no packet loss.
T_SMPL[ms]Sample
Time (Virtual/Estimated)
Timestamp generated for each sample from packet reception time.
Does not match the actual sampling time.
(Note: Sample rate is estimated from packet reception intervals, and sample times are cumulatively added, so timestamps are delayed by one packet interval compared to actual sample time)
X[G]X-axis Sample ValueUnit is G. Based on sensor values.
Y[G]Y-axis Sample ValueUnit is G. Based on sensor values.
Z[G]Z-axis Sample ValueUnit is G. Based on sensor values.
LabelAdditional Info NameSee table below
InfoAdditional InfoSee table below

Additional Information

Info NameDescription
ModuleSIDSerial number of the sender
Tick[ms]System time when the log file was opened
(Note: TWELITE STAGE app side)
DateDate when the log file was opened
TimeTime when the log file was opened
Time_Msec_partSub-second part of time when the log file was opened [ms]