LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Array functions on non-double numbers

Hey everyone,

 

Sorry for another newbie question, coming from Labview has spoiled me 🙂  Is there a way to use the Array Operations functions on float numbers?  If not, can anyone recommend a Boost like library that is C based that will handle floats?

 

Thanks,

Austin

0 Kudos
Message 1 of 2
(2,731 Views)

I suppose you are referring to array functions from the Analysis library: unfrtunately those functions are limited to treat doubles only. I don't know of any alternative for floats or doubles: for the simpler of them you may want to create your own equivalent in a for loop; for more complex functions you can create a temporary array of doubles and use ConvertArrayType function to exchange data to and from it before and after calling the array function.

 

Depending on other functions you are using into your application, you can consider promotinig all of your arrays to double and use them: PC are now plenty of memory to use and very fast CPU frequency so it could be a feasible solution.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,727 Views)