09-20-2006 09:08 AM
I want to
read the voltage in four channels, for example. It works fine without the
calibration, the graphic it perfect. However, I need to multiply each channel,
so that it shows me the real value.
I used the index array and then multiplied it, but the graphic is absurd and I’ve
tried everything I know!
Thanks
09-20-2006 09:39 AM - edited 09-20-2006 09:39 AM
I don't understand what you are doing in the for loop - the image is too small to read. To multiply every element in an array by a constant, you simply wire the array (1D or 2D) to the multiply function and a constant to the other terminal as shown in the picture. If each channel is a different constant, then the for loop still doesn't make sense. If you just wire the 2D array through the for loop, it will automatically index the array by row. Each row is a separate channel.
Message Edited by Dennis Knutson on 09-20-2006 08:40 AM
09-20-2006 09:50 AM
Sorry about
the small picture.
The for loop you were asking is because I’m reading the constants from an excel
file and I must multiply each channel by them.
Thanks
09-20-2006 10:33 AM
09-21-2006 08:56 AM
I made this changes, the graphic is ok now. Thanks a lot. When I took out the number 9 as you said, an error appeared.
However, I got another problem. I’m using a NI USB-6009 to get the voltage, but the variation is not linear. The calibration is working, but when I vary the tension the rms value doesn’t match with the multimeter. What should I do?
Thanks