LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiply the array of output with an array of constants

Hi everyone, I am a very new user. I need help with converting voltages to loads. Basically, it is a problem of how to convert a two dimensional output array by multiplying the values with another one
dimentional array of constants.
 
I have 50 load measuring devices (known as load cells) which give out voltages when some load is applied on them.
Each load cell has an unique multiplication factor which converts the voltage to load (kiloNewton). So, there are a total of 50 such "multiplication constants".When I run the experiment
with all 50 load cells, Labview gives an array of voltage values (50 columns, because there are 50 cells and number of rows depends on how long I run the program). But I need to see the
results in terms of loads. How do I convert my output array so it can show me the loads instead of voltages ? Thank you in advance.
 
PS: Someone else wrote the original code for this experiment. Since I am a new user, I don't know how to modify it to suit my needs.
0 Kudos
Message 1 of 4
(2,687 Views)

This will multiply each column by the value in an array of coefficients. I'm pretty sure this is what you want.

Message Edited by Marc A on 04-23-2007 04:52 PM

Message 2 of 4
(2,677 Views)

Thank you very much Marc A. Your code was very helpful.

One more question. How do I modify the program so it can read the multiplying constants directly from a text file ?

Thank you.

0 Kudos
Message 3 of 4
(2,665 Views)


@tmalik wrote:

How do I modify the program so it can read the multiplying constants directly from a text file ?



See the attached Vi & txt file.

Hope it helps.

- Partha ( CLD until Oct 2027 🙂 )
Download All
Message 4 of 4
(2,652 Views)