LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, How would I change a wire from a character (%s) to double(%d)

Just use "index array" with the following inputs: (2D array, x-index, y-index). The selected element exits magically on the right. 🙂
0 Kudos
Message 11 of 14
(649 Views)
Thanks- will do. I have a question about the Delete from Array. Can I use that vi to seperate evry third string I receive? I tried, however nothing was deleting- I suppose my inputs were incorrect.Could you explain. I will send my file, however, if you could look only at the delete from array in the top right corner- that would be great! Thanks!
0 Kudos
Message 12 of 14
(649 Views)
Hi, could you also explain to me how the indexing works with the delete from array? thanks!
0 Kudos
Message 13 of 14
(649 Views)
Well, there is always the online help. If you try to delete a size zero, i'd expect that you won't get anything. 😉 Also don't forget to initialize the shift register on the left.
Delete from array is very inefficient to get a row, in your case you get a 0x0 2D array which you append into a 3D array, blowing everything out of proportion.
To get a single row of a 2D array, use index array with one index disconnected.

However, this seems a bit too convoluted to do this simple task. Why don't you just simply only pick every third element to store in the second array, such as in the code of the attached picture.

In general, it is not a good idea to grow arrays indefinitely, you'll eventually run
out of memory. You should rethink your design, e.g. use a fixed size 2D array which keeps the last 100 values only.
0 Kudos
Message 14 of 14
(649 Views)