09-15-2011 09:44 AM
Hello Experts! I am very new to this DIAdem. Currently I´m helping my friend with his thesis.
After running a test we got values for x-axis and y-axis that perform a waveform-curve , repeating itself like a sinus-graph (in graphic below).
We tried to determine the max and min values for each cycle (each circle in the graphic require min and max values). They have Channel 1 as X-axis and Channel 2 as Y-axis. Could anyone help me with the script to get the result for 100 cycles in a new Channels.
09-19-2011 08:24 AM
Hi!
At first you have to copy the values of the first cycle to a new channel(x). Then u get the extreme values of this new channel(x) and and save them to two new other channels(y,z). Next step is to put this function into a loop.
The loop runs 100 times and always copies the next cycle to the channel (x) by overwriting it. After that you get the extreme values again, and write them into the channels (y,z).
After 100 loops you have two new channels (y,z) with all the extreme values of your cycle.
It is important, that the distances between two cycles are always the same!
I hope I could help you
09-19-2011 09:32 AM
Thank you for your answer!