LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Scale1D usage question

I have an array that stores values and I would like to divide each element in array by the same integer value. The integer value will range between 2 and 100. Is it possible to do this with the CVI function Scale1D? I find the Scale1D documentation rather confusing regarding what the function actually does. Specifically, I find the statement "The scaled output array is in the range [–1:1]" confusing. I assume that if it is possible that I would pass 1/X where X is the integer value by which I would like to divide the array. I assume that I would also use an offset of 0.

Thanks in advance.

Best Regards,
Matthew

0 Kudos
Message 1 of 4
(3,685 Views)
Well, Doh!Smiley Very Happy I answered my own question after more closely reading the documentation. The function does not do what I would like to do.

Thanks anyway.
0 Kudos
Message 2 of 4
(3,679 Views)
Matthew,

I believe that the function LinEv1D() will do what you want.

Regards,
Colin.

0 Kudos
Message 3 of 4
(3,676 Views)
Thanks. It works exactly as I would like it to.

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