LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert from 16 bit integer to 1D array of double

Solved!
Go to solution

I try to know the mean of a signal, to know its offset and later substract it , And I try to make this program

capture 11.png

The important part is: 

capture 13.png

 

I that way I can indicate the mean later that I stop it. But how you can see I have a incompability problem that says: 

 

capture 12.png

 

How I can do this conversion? 

0 Kudos
Message 1 of 2
(2,857 Views)
Solution
Accepted by HereFrank

Right click the terminal before the broken wire. Select Tunnel Mode>Indexing.

 

Note that with for loops, the default tunnel mode is Indexing. For while loops it's last value. but by right clicking you can convert both terminals to how you want it to be. The tunnel mode for while loops is not indexing, because the loop could run endlessly, and the array will grow and grow until memory is full. So it's a less obvious thing to do for while loops (but OK if you know what you're doing).

 

Also insert a "To Double" function, either before the terminal (inside the loop), or after the terminal (outside the loop).

0 Kudos
Message 2 of 2
(2,842 Views)