10-13-2020 09:54 AM
Hello world,
Im a newbie with dasylab, i did a little project to extract the maximum and the minimum for a variable sine signal, and i want to extract the values in two different file,
my list value is for exemple :
a1
a2
a3
b1
b2
b3
.
.
.
and i want to get the a value in file 1 and the b value in file 2
All the value are getting from a 1Hz signal with a variation of the amplitude every 3 cycle.
can some one help me with this ?
Than kyou in advance
Solved! Go to Solution.
10-13-2020 10:23 AM
Use the Statistics/Min-Max module to compute the minima and the maxima.
Set it up with two inputs, and branch your signal to both inputs. Configure one channel to output Minimum and the other to output Maximum.
I used a List instead of a file.
10-13-2020 12:23 PM - edited 10-13-2020 12:36 PM
Thank you CJ for the feedback,
The main problem is not the maximum and minimum, i made a project to extract the maximum and minimum. but i get all the maximum in one list and all the min in one list.
attached a example for the signal, what i want is to extract after only all the green maximum in one fil and the black one in other file.
10-13-2020 12:38 PM
Ah... is it always 3 points, alternating?
The signal router module might do it... set for time, with 3 blocks alternating.
10-13-2020 12:55 PM
its not always 3pts, some time can be only two, and its alternating,
I tried the signal router before, the problem with is i cant defind the high amplitude and the low amplitude, it will be only a serie off block every time, and if for exemple my signal start with on Green value and after go to 3 black value i will get all the data wrong.
10-13-2020 01:00 PM
what determine the two sets of values?
10-13-2020 01:21 PM - edited 10-13-2020 01:22 PM
im using a cell load, cabled to instrunet interface. the two sets of value represent the reaction force under and without pressure, the load cell mouve with 1hz frequency, but the pressure cycle is a trapezoidal signal of 7sec period, this why i get a phase every time,.
10-13-2020 01:29 PM
attached my project and a file data for my cell load signal, for the pressure i didnt found the way to represente the trapezoidal signal, so i chosed only +/- rectangle to see. and also i changed in this one the instrunet input by a simple generator to avoid any opening problem.
10-21-2020 09:08 AM
Any help ? 🙂
10-21-2020 10:00 AM
Using the control signal in the input file, I was able to do this....
Circles show the extrema.