Export of asynchronous data
Hi,
Iam starting with dewesoft and I have problem with exporting calculated asynchronous values.
I wanted to measure for example voltage that i will be manually seting. Iam interested in the data when the voltage stabilizes and I only need a section from whitch I calculate Average Min and Max values.
I created a formula that generates signal on a keypress.
Than from that signal i crated delayed signal by 500ms. And i used these signals to calculate The Average Min and Max values.
So now when i press button my stat. values are calculated and i want to store those values, change the voltage and calculate them again and so on. So i setup the storing as Fast on trigger with the trigger on positive edge of the delayed keypress signal and the stop condition is its falling edge with post time set to 250ms. So when I press button i will get my calculated values and then the program should store 250ms of that values.
It seems to work fine, my data look as expected.
Iam not sure what those tails are but when zoomed in, theyre not there
So it looks like i have my 12 values as wanted and now i want to export them. This is the settings I used to export.
And there is the issue, the exported data have strange time stamps and there are missing value and some values are there multiple times in random ordes and it doesnt make sence to me. The same results i got when exported to a text file. Missing values for example the first value should be aroun 0. Also 0.6 value is missing but there is the 0.4 value twice in the 4 and 5 row. But in the data viewer i can see all those data just fine.
Can somebody please expland what am I doing wrong and how to fix that? Or if there is a better aproach to this?
Thank you in advance.
Dear Chocholouš,
the way you set up your statistics already gives only 1 value per pressing the trigger button from selected channels. Setting up an additional storing trigger doesn't do much, you could just set storing to Always fast and you'll get the same values from exporting the selected channels. This may also solve the weird exporting.
Regarding which I will look more into it. I've tried replicating it but didn't get the same odd results. Could you please send the .dxd file?
Additionally the tails visible are from software trying to display the graph from previous datapoint which when zoomed in disappears.
I hope I'm interpreting your data correctly. I've tried replicating your setup, but If you provided the .dxd file it would help.
@Staš Jevševar
Tried your suggestion. Set the storing on always fast and disabled storing on the analog channel from
whitch the stat. channels are calculated to save space and the export looks as expected, thank you.
Unfortunately i thought that if Ill just store the stat. channels which are just a few values (22) that the file will be allways the same size, no matter the sampling frequency.
but one dxd file samples with 100Hz is just 0.5MB and one sampled with 20kHz is 9MB. Maybe it is because Iam storing the key press signals but i dont know if there is an option to use them, but not store them.
Needless to say, when i tried the same with the fast on trigger the file sampled at 20kHz was still bigger than the one samled at 100Hz but it was only 2.3MB instead of 9MB.
Here is also the file you asked for the cal_test0.dxd is the one from my post. The 01 is the same but sampled at 20kHz.
The "2" and "3" are with the always fast setup at 100Hz and 20kHz.
Attached files:
@Martin Chocholouš
Reason that the file size depends on the Sample rate, is that in all cases the time column contains timestamps at sampling rate. Faster sample rate from Sync channels means more timestamps in the file.
The keypress channel is Sync so it will store it at sample rate. Set it and keypress/History to "Not stored" and output .dxd will be same regardless of Sample rate. Below is a picture of setup from provided .dxd file.