07-25-2016 10:44 AM
Hi All,
I am using the function 2^nextpow2(L) in Matlab and now I need to use it in Labview as well. could any of you tell me how to do like this function in Labview?
many thanks
Thoalfukar
07-25-2016 10:49 AM
I'm not familiar with Matlab. Can you tell us what that function actually does in mathematical terms?
Look on the mathematics palette and I bet you can find the functions there you would need to recreate it.
07-25-2016 10:58 AM
I don't believe there is any function like this in LabVIEW, but there are a ton of toolkits and one of them might have it. You can quickly google finding the next power of 2 and many algorithms will show up. Implement the one of your choice in LabVIEW.
07-25-2016 12:25 PM
It is not clear from Mathworks documentation what should happen with values -1 to 1. If it should give 1, then replace epsilon constant with 1.