LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I calculate a slope for a 1D Array instead of a 2D Array?

In this vi, I would like to calculate for every EMG ( depending on 60 different times and 50 different amplitudes) the slope according to the amplitude difference: (EMG(i)-EMG)/(Ampl(i)-Ampl). The EMG is presented as a 2D Array. How can I calculate the same slopes, if the EMGs going in and coming out of the loop are 1D Arrays?
0 Kudos
Message 1 of 3
(3,693 Views)
If you disable indexing (right-click the node where the array enters the outer for-loop and select "Disable Endexing") for the 2D Array, then you will have the complete array and not just a 1D Array. Then you can use the entire thing. Is that what you were looking for?
J.R. Allen
0 Kudos
Message 2 of 3
(3,693 Views)
Hi JRA,
Thanks a lot for your answer. I think that my question is not very clear. I would like the entering and outcoming EMG 2D Arrays to be 1D. If I change this, then I will have to change the Array functions inside the loops, but I don't know which ones to use.
Summer
0 Kudos
Message 3 of 3
(3,693 Views)