05-17-2022 06:16 AM
05-17-2022 06:51 AM
To me the question is not clear.
What do you want to connect ? You need a 1D num array and we can see only two 1d nums arrays here : "Data" and the output of your signal/numeric conversion.
05-17-2022 06:57 AM
Thank you for your answer. I want to average each of the four parameters 0, 1, 2 and 3 separately. But I don't know if I should use the data conversion before linking it to the average program (or "mean") on the right
05-17-2022 07:06 AM
Later I tried to average the values of each of the four parameters using data partitioning, but the data obtained seemed to be only the average of the current value, not the average of all values.
05-17-2022 07:16 AM
The average function is doing its job right, that's for sure.
Have you probes your wires to check the inputs ? What is coming out your HMB block : 4 carateristics / 1 measure or 4 caracteristics / n measures?
05-17-2022 07:53 AM - edited 05-17-2022 07:54 AM
You could just use a FOR loop to do the averages for you. No need to split the signals and will work when you add or remove channels.
05-17-2022 08:22 AM
Thank you for your reply! What comes out of the HBM are four parameters, namely force, angle, and two torques. All are sensors connected to the motor and displayed through HBM amplifiers.
05-17-2022 08:32 AM
Thanks for the reply, I tried to use the FOR loop, but no data, you can see the pic below
05-17-2022 08:37 AM
Hi Han,
@han0504 wrote:
I tried to use the FOR loop, but no data,
Why do you think there is "no data"? There definitely is data, the indicator shows a zero…
Why do you use only the last value of the FOR loop to display as "mean"?
Don't you need to average of all waveforms in your waveform array?
-> Set the output tunnel of the FOR loop to autoindexing - and convert the scalar mean indicator to an array…
Which format do you specify for that indicator? Did you use the same format as for your Drehmoment value? You know "0.00083…" rounds to "0.00" when using a %.2f format…
05-17-2022 08:52 AM
Hi GerdW,
Thanks for ur kind reply.
I changed it and now I can show the average, but one question is, because the data from HBM is the data of four sensors, so the average value directly connected to HBM is the total average of four parameters (force, angle, moment 1, moment 2), not the average value of one parameter alone, do I need to split the data?
Thank you for your opinion!
Best wishes
Han