Difference between revisions of "Preview data"

From WICE Wiki v2.91
Jump to navigation Jump to search
(started rewriting this page)
(Rewrote the signal preview page to be more structured and reflect the layout in 2.84)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
THIS PAGE IS IN THE MIDDLE OF EDITING. TOO SEE THE OLD VERSION SCROLL DOWN TO "How to use", TOO SEE A GUIDE TO THE NEW FEATURES WAIT A COUPLE OF HOURS.  
This is a tool used to graph signal values from MDF-files, preview Video and visualize GPS-data.
 
== Quick usage guide ==
Here is a step by step guide walking you through a simple use case to get you started. For more detailed info on the different settings or function read the article below.
 
#Select a "Source" (file or measurement) from the source list on the left hand side of the screen.
#A list of signals will show up in the signal list on the right hand side of the screen. Select one or more.
#Each selected signal will show up as a thumbnail at the bottom of the screen.
#In order to inspect a signal more closely, double click or "drag and drop" the signal into the Master signal preview to plot it.
#If there is any GPS data available, then that data will be visualized in the map.
# If there is any video or audio data available, then a media controller is visible below the main plot. '''See [[Preview data#Integrated video and audio preview|Preview data#Integrated video and audio]]'''


== Source List ==
== Source List ==
Line 13: Line 23:
To remove a file you drag it from the bottom box to the top box which makes the file disappear in the bottom box.
To remove a file you drag it from the bottom box to the top box which makes the file disappear in the bottom box.


When you are done adding and removing files you press the button "Add FIles to preview" at the right side of the screen to get back to the preview.
When you are done adding and removing files you press the button "Add Files to preview" at the right side of the screen to get back to the preview with the files from the bottom box.


== Signal List ==
==Signal List ==
[[File:Signal list.png|thumb|From left to right is the button to show/hide modules, apply signal selections and save signal selections]]
From the signal list you select which signals you want to view from the selected source. To help you find which signals you want to view there is a search bar at the top of the list. You can also at the bottom of the list select to see signals from a specific module.


=== Save signal selection ===
=== Save signal selection===
If you want to save a set of selected signals for suture use you start by selecting the signals you want to save and then pressing the "Save selection" button on the bottom of the signal list. This will open a small window where you first need to enter a name and then press "Save collection" to save your selected signals.


=== Apply saved signal selection ===
===Apply saved signal selection ===
To apply a saved set of selected signals you will press the "Apply signals" button which opens a small window. Here you will see all saved sets and you can apply one by selecting the one you want to apply and click "Apply collection". Note that this will only select and not deselect signals so if you only want to have the signals in the set selected you first need to make sure that no signals are selected (which can be done with the "Unselect all signals" button).


=== Show/Hide module prefix ===
===Show/Hide module prefix===
If you want to have the module name as a prefix to the signal name you can enable that by pressing the "Show modules button" and you can also disable it by pressing the "Hide modules" button. Note that this also affects the signal names in the dashboards signal preview.


== Dashboard ==
== Dashboard==
In the Dashboard you find multiple tabs with different functions and purposes which you can read about below.


=== Signal preview ===
===Signal preview===
The Signal preview tab shows you a small preview of all selected signals in the signal list tab. By double clicking on or dragging a preview into the master preview you will plot the signal. Here you can also deselect (and in that way stop a signal from being plotted by pressing the "x" on the preview.


=== File information ===
===File information===
Here you will find information about the selected source file.


=== Data export ===
===Data export===
Here you can export the data from the plotted signals as a text file. To do this select the signals you want to plot in the left most box, specify what interval you want data from, set a download description and then press "To text file".


=== Statistics ===
===Statistics===
Here you find statistics like amount of data points, mean and global max about the plotted signals.


=== Plot Options ===
===Plot Options===
Here you can set how the Y-axes of the signals should behave. By default its set to "Fit to curve" meaning all signals will be fitted to the curve making the signals max value the highest point and the signals min value as the signals lowest point. The other option "Signal default" makes the vertical axis be scaled based on a signals predetermined minimum and maximum values which are embedded into the MDF file. Which makes it easier to compare the same signal from different measurements and possible shows the signal in a more appropriate scale.


=== Audio Playback ===
===Audio Playback ===
When plotting a signal with accompanying video and audio you can use this panel to control the audio being played.


== Master Preview ==
==Master Preview==


=== Preview Modes ===
===Preview Modes===
[[File:Plot button.png|left|frameless]]
[[File:Plot button.png|left|frameless]]


Line 46: Line 68:


"Master signal preview" has four different preview modes which you can select from the bottom left corner of the "Master signal preview" window:
"Master signal preview" has four different preview modes which you can select from the bottom left corner of the "Master signal preview" window:
#View only one plot
# View only one plot
#View a plot, and video side by side
#View a plot, and video side by side
#View a plot and GPS data visualization side by side (this is the default view)
#View a plot and GPS data visualization side by side (this is the default view)


==== Integrated video and audio preview ====
====Integrated video and audio preview====
[[File:Video-in-preview.png|thumb|400x400px| Preview Data Window - Video]]If video mode is selected then the preview tool will automatically detect if there is any video correlated to the currently selected file. If such video exists, a media controller chart will be visible below the main play. See screenshot "Preview Data Window - Video".
[[File:Video-in-preview.png|thumb|400x400px| Preview Data Window - Video]]If video mode is selected then the preview tool will automatically detect if there is any video correlated to the currently selected file. If such video exists, a media controller chart will be visible below the main play. See screenshot "Preview Data Window - Video".


Line 66: Line 88:
]]
]]


==== Integrated GPS data visualization ====
====Integrated GPS data visualization ====
By default the map will be set to display a plot, along side of a map. Once a signal is selected and pushed up into the mater signal preview any available GPS data will be visualized in the map, see Figure "Preview Data Window - GPS". If you click on the plot line a marker will be placed in the map which indicates where the car was at that point in time.
By default the map will be set to display a plot, along side of a map. Once a signal is selected and pushed up into the mater signal preview any available GPS data will be visualized in the map, see Figure "Preview Data Window - GPS". If you click on the plot line a marker will be placed in the map which indicates where the car was at that point in time.


=== Right click context menu ===
===Right click context menu===
 
When right clicking on the plot there appears a context menu where you can control settings of the plot which are described below. An important thing to note is that even when an element of the plot is hidden you can still change it even though you will not see the change until the element is revealed again.
==== Set title ====
 
==== Hide/show title ====
 
==== Hide/show Y-Axes titles ====
 
==== Hide/Show Y-Axes ==== 
 
 
 
This is a tool used to graph signal values from MDF-files, preview Video and visualize GPS-data.
 
== How to use ==
# Select a "Source" (file or measurement) from the source list on the left hand side of the screen
# A list of signals will show up in the signal list on the right hand side of the screen. Select one or more.
# Each selected signal will show up as a thumbnail at the bottom of the screen
# In order to inspect a signal more closely, double click or "drag and drop" the signal into the Master signal preview.
# If there is any GPS data available, then that data will be visualized in the map.
# If there is any video or audio data available, then a media controller is visible below the main plot. '''See [[Preview data#Integrated video and audio preview|Preview data#Integrated video and audio]]'''
 
== Integrated video and audio preview ==
To see what videos are available a signal needs to be selected and inserted into the master signal preview.
 
The preview tool will automatically detect if there is any video correlated to the currently selected file. If such video exists, a media controller chart will be visible below the main play. See screenshot "Preview Data Window - Video and Audio".
 
=== Control playback of audio and video measurements ===
There are several ways of controlling the playback for the found media measurements.  By default the playback starts from time = 0 when the user clicks the play icon in toolstrip below the media chart. If there is any media file at the current position (as in the example) the playback of the measurements is automatically started. One can also choose to start from a certain position by either clicking between the audio and video bars in the chart or by ctrl+left mouse click on the plot in the main chart.
 
When the playback is started, the red marker is moving in the two grids and the play button is replaced by the pause button. Simply click the pause button to pause the playback.
 
To stop and revert the playback to the start position, click the stop button. The left and right buttons to the right of the stop buttons are used to jump to the nearest media measurement on the timeline.
 
If both audio and video measurements exists (like in the example) one can choose to only play the video measurement by clicking the video measurement bar in the graph. This also applies to when there are multiple overlapping videos.
 
If there are multiple overlapping videos, on of the videos can be viewed in "picture in picture-mode". To enable this, click the three dots in the bottom right corner of the video and select "Picture in picture" in the sub menu appearing.
 
This can of course also be used for a single video as well.
 
== Integrated GPS data visualization ==
By default the map will be set to display a plot, along side of a map. Once a signal is selected and pushed up into the mater signal preview any available GPS data will be visualized in the map, see Figure "Preview Data Window - GPS". If you click on the plot line a marker will be placed in the map which indicates where the car was at that point in time.
 
== Y-axis scaling ==
By default the vertical axis is scaled based on a signals predetermined minimum and maximum values which are embedded into the MDF file. This has two advantages. Primarily it makes the same signal from two different measurements easier to compare, but it should also help display the signal using a scale that is relevant for that particular signal. There are however a set of circumstances in which this principle is abandoned in favor of auto fit:
* If the signal has no default min/max values
* If the signals min value is greater than its max value
* If the actual signal is outside of the predetermined min/max bounds.
* If the predetermined max is a lot higher than the actual max of the signal. This is to prevent the previewed signal from being displayed as nothing but a flat line at the bottom of the graph.
If any of these conditions are true, then the vertical min/max will be automatically fitted to the curve based on the curves extreme values.
 
== Plot toolbar ==
 
=== Preview modes ===
[[File:Preview-views.png|frameless]]
 
"Master signal preview" has four different preview modes which you can select from the bottom left corner of the "Master signal preview" window:
# View only one plot
# View two plots side by side
# View a plot, and video side by side
# View a plot and GPS data visualization side by side (this is the default view)
 
=== Window size ===
If you want to have a bigger "Master signal preview" you can press the fullscreen button on the bottom right of the Master signal preview window, or you can manually hide other areas you do not wish to see by pressing the "H" on them. To show the areas again you can press the "S".
 
=== Switching between plots ===
There are always two plots even though there might only be one shown. This means you can always use the button "Switch" to make the plots switch places. When there are two plots shown they switch positions but when there is only one plot shown the shown plot (the left one) will switch with the hidden plot (the right one). This can be useful when comparing signals.
 
=== Zooming ===
To zoom in on graphs you drag between two points(not necessarily data points) on the graf and it will zoom in between those two points.To zoom out you press "Reset zoom" for L or R depending on which plot you want to zoom out. Notice that "Zoom out (R)" is only clickable when you show two plots and that is because even if there always are two plots you can only zoom out and clear shown plots.
 
=== Statistics ===
You can see statistics for the plots and their signal(s) at the bottom under the tab "Statistics". To the left you have a button for if you want to show the left or right plot. What being showed is the plots signal and x/y min/max, mean value, standard devation, total amount of data samples and shown amount of data samples for each signal. Note that the plot can only show 500 samples for each signal and therefore need to hide samples for bigger signals. The plot will always try to have an as even as possible space between the samples and if it is showing a signal with 502 signals it will show 251 as it will give the smoothest and most accurate view even if its not showing as many samples as it could.


== Other features ==
==== Set title====
[[File:Chart elements.png|thumb|These are the different elements of the plot the right click context menu can affect. ]]
With the "Set filename/signalnames as title" button you can switch between having the signals names as the title of the plot or having the filename as the plot title.


=== Export options ===
==== Hide/show title====
At the bottom you can also download a plot as a text file. Under the tab "Data export" you select which plot you want to download, select between which time values it should download data points, set a download description (optional) and then press "To text file" to make the file ready for download. The text file you download is supported in Excel.
By pressing the "Hide/Show chart title" button you will either make the title disappear or reappear.


=== Saving signals ===
====Hide/show Y-Axes titles====
You can save the currently selected signals by pressing the signal symbol with a plus on it located on the bottom right of the "Signal List". This allows you to reload these signals in any source as long as that source contains signals with exactly matching names.
By pressing the "Hide/Show yaxis titles" button the titles on the all the yaxes will disappear or reappear.


=== Quick selection mode ===
====Hide/Show Y-Axes====
This selection mode allows you preview the same set of signals from an array of files with ease. Here is how it works:
With the "Hide/Show YAxes" button you will make all the YAxes disappear or reappear (including the axis titles).
# This requires you to have selected two or more files before you entered the signal preview interface.
# Beneath the source list to the left you will find a checkbox that says "Quick selection mode". Click it.
# Select a file by clicking on a file in the source list.
# Select any number of signals in the signal list.
# If you want to add any of the signals into the master preview, then do so by dragging and dropping (or double clicking) the thumbnails as usual.
# You can now swap between files by selecting any file you like from the source list. When you swap file the signals you selected previously will now be selected again in the new file.
'''Notice: This will only work if both files have signals with the exact same name. Any deviation in signal naming will cause the program to be unable to find the signal, thus skipping it and moving on to the next signal'''

Latest revision as of 10:29, 3 July 2023

This is a tool used to graph signal values from MDF-files, preview Video and visualize GPS-data.

Quick usage guide

Here is a step by step guide walking you through a simple use case to get you started. For more detailed info on the different settings or function read the article below.

  1. Select a "Source" (file or measurement) from the source list on the left hand side of the screen.
  2. A list of signals will show up in the signal list on the right hand side of the screen. Select one or more.
  3. Each selected signal will show up as a thumbnail at the bottom of the screen.
  4. In order to inspect a signal more closely, double click or "drag and drop" the signal into the Master signal preview to plot it.
  5. If there is any GPS data available, then that data will be visualized in the map.
  6. If there is any video or audio data available, then a media controller is visible below the main plot. See Preview data#Integrated video and audio

Source List

The source list is a list of all source files that have been added to the signal preview. Here you chose which file you want to view signals from by clicking on it and when switching between sources they will try to keep selections as similar as possible. This means that if 2 sources share signals and you select and plot a shared signal in one source and then switch to the other the signal will stay selected and plotted.

At the bottom of the source list you can switch between showing the sources as their filenames or as their measurement dates.

Adding/removing source files without loosing setting and selections

At the bottom left of the screen you can press the button "Add more files" to add new files and remove current files without removing your settings or which signals are selected. By pressing this button the tasks panel will re-open but with a second list of files at the bottom which shows the selected files in the preview.

To add new files you search for the file you want to add and drag it from the top box to the bottom box where it will now appear.

To remove a file you drag it from the bottom box to the top box which makes the file disappear in the bottom box.

When you are done adding and removing files you press the button "Add Files to preview" at the right side of the screen to get back to the preview with the files from the bottom box.

Signal List

From left to right is the button to show/hide modules, apply signal selections and save signal selections

From the signal list you select which signals you want to view from the selected source. To help you find which signals you want to view there is a search bar at the top of the list. You can also at the bottom of the list select to see signals from a specific module.

Save signal selection

If you want to save a set of selected signals for suture use you start by selecting the signals you want to save and then pressing the "Save selection" button on the bottom of the signal list. This will open a small window where you first need to enter a name and then press "Save collection" to save your selected signals.

Apply saved signal selection

To apply a saved set of selected signals you will press the "Apply signals" button which opens a small window. Here you will see all saved sets and you can apply one by selecting the one you want to apply and click "Apply collection". Note that this will only select and not deselect signals so if you only want to have the signals in the set selected you first need to make sure that no signals are selected (which can be done with the "Unselect all signals" button).

Show/Hide module prefix

If you want to have the module name as a prefix to the signal name you can enable that by pressing the "Show modules button" and you can also disable it by pressing the "Hide modules" button. Note that this also affects the signal names in the dashboards signal preview.

Dashboard

In the Dashboard you find multiple tabs with different functions and purposes which you can read about below.

Signal preview

The Signal preview tab shows you a small preview of all selected signals in the signal list tab. By double clicking on or dragging a preview into the master preview you will plot the signal. Here you can also deselect (and in that way stop a signal from being plotted by pressing the "x" on the preview.

File information

Here you will find information about the selected source file.

Data export

Here you can export the data from the plotted signals as a text file. To do this select the signals you want to plot in the left most box, specify what interval you want data from, set a download description and then press "To text file".

Statistics

Here you find statistics like amount of data points, mean and global max about the plotted signals.

Plot Options

Here you can set how the Y-axes of the signals should behave. By default its set to "Fit to curve" meaning all signals will be fitted to the curve making the signals max value the highest point and the signals min value as the signals lowest point. The other option "Signal default" makes the vertical axis be scaled based on a signals predetermined minimum and maximum values which are embedded into the MDF file. Which makes it easier to compare the same signal from different measurements and possible shows the signal in a more appropriate scale.

Audio Playback

When plotting a signal with accompanying video and audio you can use this panel to control the audio being played.

Master Preview

Preview Modes

Plot button.png



"Master signal preview" has four different preview modes which you can select from the bottom left corner of the "Master signal preview" window:

  1. View only one plot
  2. View a plot, and video side by side
  3. View a plot and GPS data visualization side by side (this is the default view)

Integrated video and audio preview

Preview Data Window - Video

If video mode is selected then the preview tool will automatically detect if there is any video correlated to the currently selected file. If such video exists, a media controller chart will be visible below the main play. See screenshot "Preview Data Window - Video".

There are several ways of controlling the playback for the found media measurements. By default the playback starts from time = 0 when the user clicks the play icon in toolstrip below the media chart. If there is any media file at the current position (as in the example) the playback of the measurements is automatically started. One can also choose to start from a certain position by either clicking between the audio and video bars in the chart or by ctrl+left mouse click on the plot in the main chart.

When the playback is started, the red marker is moving in the two grids and the play button is replaced by the pause button. Simply click the pause button to pause the playback.

To stop and revert the playback to the start position, click the stop button. The left and right buttons to the right of the stop buttons are used to jump to the nearest media measurement on the timeline.

If both audio and video measurements exists (like in the example) one can choose to only play the video measurement by clicking the video measurement bar in the graph. This also applies to when there are multiple overlapping videos.

If there are multiple overlapping videos, on of the videos can be viewed in "picture in picture-mode". To enable this, click the three dots in the bottom right corner of the video and select "Picture in picture" in the sub menu appearing.

This can of course also be used for a single video as well.

Preview Data Window - GPS

Integrated GPS data visualization

By default the map will be set to display a plot, along side of a map. Once a signal is selected and pushed up into the mater signal preview any available GPS data will be visualized in the map, see Figure "Preview Data Window - GPS". If you click on the plot line a marker will be placed in the map which indicates where the car was at that point in time.

Right click context menu

When right clicking on the plot there appears a context menu where you can control settings of the plot which are described below. An important thing to note is that even when an element of the plot is hidden you can still change it even though you will not see the change until the element is revealed again.

Set title

These are the different elements of the plot the right click context menu can affect.

With the "Set filename/signalnames as title" button you can switch between having the signals names as the title of the plot or having the filename as the plot title.

Hide/show title

By pressing the "Hide/Show chart title" button you will either make the title disappear or reappear.

Hide/show Y-Axes titles

By pressing the "Hide/Show yaxis titles" button the titles on the all the yaxes will disappear or reappear.

Hide/Show Y-Axes

With the "Hide/Show YAxes" button you will make all the YAxes disappear or reappear (including the axis titles).