DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

merge files with different sampling rates

Hello friends,

i am pretty new to work with DIADEM and it would be great if someone could help me with my questions:

I have a set of binary dat/r64 files that were produced with different sample rates (e.g. 200,1000, 4000 Hz). Each file has also a time channel included. I would like to create a script, to combine all included channels for analysis in DIADEM with ONE common time channel, so it would be possible to view the channels synchronized in parallel. (The time channel has a fixed name).

That means the time channel should be resolved in DIADEM at the highest frequency with 4000 samples/sec and e.g. each value of a 1000 Hz file is then shown 4 times...

Is that possible and what is the easiest way to do it?

Another question I have is:

I have lots of sets of dat/r64 files that have the same name (only with different ending) e.g.
CommonNameA_1.dat
CommonNameA_1.r64
CommonNameA_2.dat
CommonNameA_2.r64
...
CommonNameB_1.dat
CommonNameB_1.r64
CommonNameB_2.dat
CommonNameB_2.r64
...
Is it possible to create a dialog that shows only the CommonNames of a certain folder:
CommonNameA
CommonNameB
...
Then one could choose a set of files represented by the common name and ALL related files would be loaded to DIADEM.

Does someone have ideas how to do this?

Thanks a lot for ideas and help! Smiley Happy

 
0 Kudos
Message 1 of 14
(5,952 Views)
Hello Roooky,
 
Let me ask a quick question first : Is the whole purpose to view the data after they have a single time channel ?
DIAdem can display channels with different sample rates in a single chart. You can have a separate time channel for each Y-channel and DIAdem automatically calculate the range for the x-axis correctly.
 
Let me know if you want to go beyond simply displaying the data...
 
Andreas
0 Kudos
Message 2 of 14
(5,941 Views)
Hello Andreas,

yes the main purpose is to view the high frequent data together with the lower frequent in one chart - and this should be done more or less automatically for a data file set with a certain time channel as X-axis. So all data files have a channel included  named "testtime" with the time stamps for each sample in it.

Thanks for your help!
0 Kudos
Message 3 of 14
(5,935 Views)
Hello Rooky
 
If you load a ".dat" file into DIAdem, DIAdem creates a group in the DataPortal for this file. Assuming that your time channel is the first channel in your group, all you need to do is to drag the group into an empty 2-D axis system in REPORT. Then you should see a sequence of curves, each of them referring to the first channel in the group as the channel for the x-axis data.
 
Please let me know whether this works.
 
Andreas
0 Kudos
Message 4 of 14
(5,923 Views)
Hi Andreas,

that works fine and is in deed a very helpful function for that - thanks a lot for the hint Smiley Happy.

Now I also understand your previous question, because the graphic is good now, but the values (with different sample frequency) in the channel table are not comparable 1:1. Do you have an idea how to do it if I want to "stretch" the lower freqency columns, so I see the actual values for each high frequent time stamp?

I also tried to record that workflow to generate an automatic script, but the drag and drop of groups is not recorded. Do you know how I can automatically load certain files to DIADEM and then trigger the graphical display?


0 Kudos
Message 5 of 14
(5,914 Views)
Hello Roooky,
 
to map from one frequency to another please use "CHNMAPLINCALC". This function allows you to define one pair of channels (x/y) as source and another x-channel to define the time values your source should be mapped to.
 
If you want to load a sequence of file, please use "DATAFILELOAD".
 
Your sequence woud be probably something like
 
DataDelAll()
0 Kudos
Message 6 of 14
(5,904 Views)
Hello Roooky,
 
to map from one frequency to another please use "CHNMAPLINCALC". This function allows you to define one pair of channels (x/y) as source and another x-channel to define the time values your source should be mapped to.
 
If you want to load a sequence of file, please use "DATAFILELOAD".
 
Your sequence woud be probably something like
 
DataDelAll() '
0 Kudos
Message 7 of 14
(5,904 Views)
Hello Roooky,
 
to map from one frequency to another please use "CHNMAPLINCALC". This function allows you to define one pair of channels (x/y) as source and another x-channel to define the time values your source should be mapped to.
 
If you want to load a sequence of file, please use "DATAFILELOAD".
 
Your sequence woud be probably something like
 
DataDelAll() ' make
0 Kudos
Message 8 of 14
(5,903 Views)
Hello Roooky,
 
to map from one frequency to another please use "CHNMAPLINCALC". This function allows you to define one pair of channels (x/y) as source and another x-channel to define the time values your source should be mapped to.
 
If you want to load a sequence of file, please use "DATAFILELOAD".
 
Your sequence woud be probably something like
 
DataDelAll() ' make sure
0 Kudos
Message 9 of 14
(5,903 Views)
Hello Roooky,
 
to map from one frequency to another please use "CHNMAPLINCALC". This function allows you to define one pair of channels (x/y) as source and another x-channel to define the time values your source should be mapped to.
 
If you want to load a sequence of file, please use "DATAFILELOAD".
 
Your sequence woud be probably something like
 
DataDelAll() ' make sure everything is
0 Kudos
Message 10 of 14
(5,902 Views)