{"id":16048,"date":"2024-12-26T18:33:42","date_gmt":"2024-12-26T10:33:42","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=16048"},"modified":"2024-12-30T16:02:27","modified_gmt":"2024-12-30T08:02:27","slug":"zero-basic-tutorial-tsmaster-graph-data-export-csv-function","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/en\/zero-basic-tutorial-tsmaster-graph-data-export-csv-function\/","title":{"rendered":"Sharing | Zero-Basic Tutorial! TSMaster's Graph Data Export CSV Function"},"content":{"rendered":"
In vehicle performance testing, the data generated by the testing process may involve various types of sensor data such as speed, acceleration, fuel consumption, temperature, pressure, vibration, and so on.These data are usually presented in the form of charts or graphs, which are exported to CSV format to facilitate detailed digital analysis.<\/strong>. For example, during crash tests, handling tests, and braking tests, the collected data such as acceleration, force, and vehicle speed can be exported in CSV format, which makes it easy for engineers to further analyze, count, and compare the performance of different vehicles or test conditions.<\/p> One-click export of acquired graphical data is a handy feature during vehicle testing.<\/strong>This article describes how to export the graphical data to a CSV file after the run.<\/p> There are two ways to export graphical data to CSV provided in the TSMaster software:Graphics module built-in export method, API export method<\/strong>.<\/p> TSMaster provides the function ui_graphics_export_csv() to export signal data to csv, which realizes exporting graphic data via API.<\/p> Add the signals to be observed to the graph, run the project, get the graph data, and pause the project, as in Figure 1.<\/p> 2.1 Realization steps<\/strong><\/p> Graph->Options->Export Signal Data Points to csv file in TSMaster to realize one-click exporting of signal data to csv through the built-in function, as in Figure 2.<\/p> 2.2 Realization of effects<\/strong><\/p> The exported CSV is shown in Figure 3, note that the order of all signals in the table corresponds to the order of the signals in the graphical interface.<\/p> 3.1 Description of ui_graphics_export_csv function<\/strong><\/p>Technical background<\/strong><\/h2>
Graphics data export CSV project implementation<\/strong><\/h2>
1. Preparation of engineering environment<\/strong><\/h3>
<\/figcaption><\/figure><\/div>2.Graphics built-in export method<\/strong><\/strong><\/h3>
3.API Export Methods<\/strong><\/strong><\/strong><\/h3>
sports event<\/td> descriptive<\/td><\/tr> [Name]<\/td> ui_graphics_export_csv<\/td><\/tr> [Parameters<\/td> There are five: \u25ba Graphics form name \u25ba Names of all exported signals (separated by commas) \u25ba Full path to the exported CSV file \u25ba Start time of the export (us level), set -1 for override all times \u25ba End time of the export (us level), set -1 for override all times
The types are referenced separately as follows: \u25ba char*\u25ba char*\u25ba char*\u25ba s64\u25ba s64<\/td><\/tr><\/tbody><\/table><\/figure>