LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extract numbers one by one from a 1-d array

Funny thing with lab-VIEW.  Something that should be so easy seems so hard until you see how!
 
All I want to do is extract each number one by one from a 1-d array in a loop so I can enter them into a pt by pt routine (specifically Savinsky-Golay ptBypt.vi. 
 
This is so I can process data offline using the Savinsky Golay algorithm. 
 
 
0 Kudos
Message 1 of 5
(2,890 Views)
I never got to using the pt by pt functions, but as for extracting element by element from a 1d array I would suggest you use a for loop, wire the array to it, right-click on the tunnel and select "enable indexing." By default it should already be enabled.
0 Kudos
Message 2 of 5
(2,888 Views)
Thanks Aart-Jan
 
Will display the code when complete
0 Kudos
Message 3 of 5
(2,881 Views)
Hi
is this what  you are looking for ?

Just replace sin wave pt by pt vi with appropiate vi
and modify parameters to suit.

chow
xseadog
0 Kudos
Message 4 of 5
(2,881 Views)
Building the array and then indexing it is not necessary.  The enable indexing terminal is all that is needed.
 

Message Edited by tbob on 09-07-2005 10:41 AM

- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 5
(2,861 Views)