LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate Modulus of two arrays

Dear Sir

 

I have two arrays Id and Iq. Both arrays obtained by capturing real time data from the current sensor and arrays are saved in excel file. I want to calculate modulus of them i.e modulus of Id + jIq. Can any one guide me how to do it in LabVIEW 2012.

 

Kind Regards

 

Irfan

0 Kudos
Message 1 of 4
(3,046 Views)

There is the Square, Add, and Square Root functions in the numeric palette.  Those functions will even work directly on your arrays.  Just square both sets, add them together, and then square root.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 4
(3,032 Views)

Dear Sir

 

I am thankful to your reply. Can you please check my block diagram to confirm that I have done it in correct way.

 

Kind Regards

 

Irfan

0 Kudos
Message 3 of 4
(3,016 Views)

Hi tronoh,

 

some hints:

- Stay away from ExpressVIs (like DAQAssistent). They use DDT which will hide the real data(type) from clear view…

- To me it seems you want to calculate the absolute value of some numbers, but not their modulus. (Or do I have problems to translate the terms into my mother tongue?)

- If you want to calculate the absolute value then there is the Abs() function in the numerics palette. And guess what: it's polymorphic and can handle complex numbers perfectly!

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(2,988 Views)