01-18-2021 04:49 AM
Hello,
I want to analyze data from two different sources. One source has a measurement frequency of 10 minutes and the other 30 minutes.
I would like to know if it is possible to load the data 30 minutes and insert by linear interpolation two additional points .
example raw data
18.01.2021 11:00:00, 10
18.01.2021 11:30:00, 40
...
desired result
18.01.2021 11:00:00, 10
18.01.2021 11:10:00, 20
18.01.2021 11:20:00, 30
18.01.2021 11:30:00, 40
...
thanks for your help
Solved! Go to Solution.
01-18-2021 04:52 AM
I forgot to specify I would like to open the .dat file in Diadem.
thanks
01-18-2021
07:03 AM
- last edited on
03-24-2025
05:29 PM
by
Content Cleaner
Hi,
DIAdem comes vith a resampling function that might help you.
Let the input of your function be:
And the output:
You can write this vb code, and you'll have your 30-minute sampled variable resampled with a rate of 10 minutes.
Call ChnResampleChnBased("Group1/time1", "Group1/VAL1", "Group2/time2", "Group2/VAL2", "Automatic", False, False, "Akima")
About your second question. There are several different .dat file formats. I'm used to working with ETAS .dat file (standard automotive files), and they are managed by DIAdem. But there are many other different fomrats with .dat extension.
If there is a Data Plugin available, you'll probably be able to manage it.
I usually look for Data Plugin in this page, but it seems it has changed and there aren't all the plugins there used to be: https://www.ni.com/en/support/downloads/dataplugins.html
Alternatively, you can go from DIAdem. Settings -> Extensions -> Data Plugin -> Add Data Plugin from Web [Arrow down]
Hope it will help.
01-18-2021 07:45 AM
Right in the bull's-eye!
This is exactly what I was looking for, thanks for the quick and accurate answer!
For the second part of the question i have made a plugin with the wizard to load the data in the right form.
thanks a lot !