# Plotting Tool - User Guide This is an attempt to standardize data plotting in Space Team Aachen, or at least to create a standard tool for it. If you just want to use the tool, read the first two parts of the article. If you want to help to develop the tool, then go to the section “Developer information”. Do you miss some functionalities which aren't listed in the section “Developer information”? Feel free to comment them down below.
The tool is currently in the beta phase. I did some tests and everything should work, but I'm not quite sure that my tests covered all cases. So if problems occur, don't hesitate to write me a message (Max Heckmann).
### Functionalities Currently, the plotting tool covers the following functionalities: - Process “tdms” files - Process multiple files at once - generate time values with increment - Automatically creates a folder-structure for the results - Freely selectable start and end time - Choose custom label for y-axis (x-axis is always time in seconds) - Generate a normal plot - Generate a plot of the data processed by a move-mean filter (20th order) - Generate a spectrogram of the fourier analysis ### Accessing the tool First, you're going to need MATLAB. Thankfully, the RWTH provides a free Matlab license for all students. Click [here](https://www.matlab.rwth-aachen.de/cms/matlab/~tjyju/Campuslizenz/) for further information. Next, you need the plotting tool itself. If you already set up your git account and key, just clone the repository. Don't forget to pull before every use, in order to get all the updates. Don't worry, there is another solution for all mechanical engineers and other people who are not that familiar with “new” technology. With this solution, you still need access to Space Team Aachen GitLab, but you don't have to set up the SSH-Key. Press the download button in the right corner, as you can see in the picture. [](https://wiki.intern.spaceteamaachen.de/uploads/images/gallery/2022-12/git.PNG) Once you have all the files on your PC. Open the file “PlottingTool.mlapp”. (Compare with the picture) [](https://wiki.intern.spaceteamaachen.de/uploads/images/gallery/2022-12/filesplottingtool.PNG) This probably takes some time. First, Matlab will open up. Then, without doing anything, a smaller window will open which looks like this: [](https://wiki.intern.spaceteamaachen.de/uploads/images/gallery/2022-12/VIDuimatlabplotter.PNG) ### Using the tool Press “Select Folder” in order to choose the folder which contains the data. Important: Don't select a file – only the folder. The software is able to handle multiple files in a folder. After that, press the “Load” button. This might take some time as well. You can only press the load button ones. Restart the software if you made a mistake. The UI should look similar to this. [](https://wiki.intern.spaceteamaachen.de/uploads/images/gallery/2022-12/uiload.PNG) The software generates a row with bold letters for each file. This row provides settings for the whole file. So, in the example above, there were 4 relevant files in the folder. Under each of these file-setting-rows are rows for the different channels, which provide the possibility for specific channel settings. That means, for example, the 03\_AIC.tdms file probably looked like this:**N2 Valves** | **N2 Purge** | **N2 Supply** | **N2O Supply DLR** | **Injector** |
1.23 | 24.3 | 53.2 | 12.2 | 12.0 |
3.0 | 22.7 | 19.1 | 23.8 | 2.4 |
... | ... | ... | ... | ... |
The following paragraph describes the usage of the "First row secs" checkbox, which is a feature, which isn't implemented yet, although it is already visible in the UI.
If you measured the time separately, because the measurement frequency isn't constant, check the box called “First row secs”. If this checkbox is ticked, the software would assume that the file “03\_AIC.tdms” looks like this:**Time \[s\]** | **N2 Valves** | **N2 Purge** | **N2 Supply** | **N2O Supply DLR** | **Injector** |
0.1 | 1.23 | 24.3 | 53.2 | 12.2 | 12.0 |
0.2 | 3.0 | 22.7 | 19.1 | 23.8 | 2.4 |
... | ... | ... | ... | ... | ... |