DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Declaring a channel as a variable

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.

V1.JPG

0 Kudos
Message 1 of 3
(3,664 Views)

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

0 Kudos
Message 2 of 3
(3,636 Views)

Thank you for your answer!

0 Kudos
Message 3 of 3
(3,631 Views)