12-17-2014 08:17 PM
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
12-17-2014 08:41 PM
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.
12-17-2014 09:28 PM
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
12-18-2014 01:09 AM - edited 12-18-2014 01:09 AM
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!