-
Notifications
You must be signed in to change notification settings - Fork 0
Data Viewer
You would rather run the data viewer from the data logging application since the two functionalities that it owns will work fine. If you run it as a stand-alone application, only the navigator mode would work.
Disclaimer: This part of the code is neither finished nor optimized. There might be bugs in the code. I am aware that some part of the functionality requires the user follow a certain order of commands.
From the menu bar: Tools -> Data Viewer.
It opens the following window.
This mode will allow you to have a look at the logged data on the TDMS file, and navigate through it.
You can set the window size that you would like to have a look. You can also move the window backward and forward. See the below YouTube video for a demo.
I was confronted with the cases when I needed to see the signals while I was recording signals. Of course, I have built another generic tool, I call it plotting tool, but I thought it could be great if I can see the signals as they are recorded.
The online viewer mode in the Data Viewer will satisfy this need.
See the below YouTube video for a demonstration I made. The data is generated as explained in this Wiki page.
Actually, the Data Viewer reads the TDMS log. It does not read the signals from the variable engine. Therefore, recording settings will affect it. The buffer size is the important factor. When the buffer size is for example 1000 samples it means that data is recorded on the log file in bulks of 1000 samples. If the sampling time 100msec, there is 100sec between every two write on the TDMS log file.
In the demo, I set the sampling to 10msec and buffer size to 10 samples, so the stream of data looks very live and natural. For more practical logging, you may choose larger values, which means updating will be less frequent.
Ehsan Peymani - ehsan.peymani.f [at] gmail.com