visual3d:documentation:visual_3d_formating:json_formats
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:visual_3d_formating:json_formats [2024/06/17 17:08] – removed sgranger | visual3d:documentation:visual_3d_formating:json_formats [2024/07/17 15:46] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== JSON Formats ====== | ||
+ | |||
+ | Saving data in JSON (Javascript Object Notation) format is useful for web-based graphing and presentations. JSON is a human-readable format and is typically used to pass data from a web server to a javascript program in a web browser.\\ | ||
+ | |||
+ | |||
+ | The JSON output file from Visual3D can then be parsed and used by a javascript, ES6, or PHP program for use on the web. | ||
+ | |||
+ | \\ | ||
+ | //This option is only available in Visual3D version 2020.06.01 and later.//\\ | ||
+ | There is an example javascript parsing program available for web graphing of Visual3D data. However, because it requires specialized coding knowledge it is only available by request from C-Motion support. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | ===== Report Graph Export ===== | ||
+ | |||
+ | **The first option is used to export the data used in a report graph.** This requires that you first create your report and graphs ([[Visual3D: | ||
+ | |||
+ | \\ | ||
+ | {{: | ||
+ | |||
+ | If the mean and standard deviation were displayed in the graph, they will be in the exported data too. The JSON format for mean and std dev are similar to the normal ASCII output in that the 2 X-components are listed first, and then the 2 Y components. The graphed data is listed in X and Y sections together. | ||
+ | |||
+ | The JSON output is a single array for the graph, with sub-arrays for signal information and for data. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | {" | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ]} | ||
+ | ===== Export Data As ASCII Command ===== | ||
+ | |||
+ | **The more general option** is to use the [[Visual3D: | ||
+ | |||
+ | The resulting JSON output format for that is: | ||
+ | |||
+ | {" | ||
+ | {" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | ]} | ||
+ | ]} | ||
+ | |||
visual3d/documentation/visual_3d_formating/json_formats.1718644128.txt.gz · Last modified: 2024/06/17 17:08 by sgranger