LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

having problem with storing data in array

Solved!
Go to solution

Hi,

 

I'm having problem on storing data in array. My problem is that each time it loops, the array just keep overwrite instead save to the next index. Like at 0 the value is 123, and 1 is 234. But i having that all data capture all overwrite at 0 till the last data it still show at 0. How do i correct this problem?

0 Kudos
Message 1 of 18
(4,237 Views)
Is it possible for you to post your code or a snapshot of it? It's much easier to help out when we can visualize the issue you are facing.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 18
(4,235 Views)

Could you please post your current approach?

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 18
(4,234 Views)
Below are my files
Download All
0 Kudos
Message 4 of 18
(4,226 Views)
You will need to use shift registers. Have a look at the attached image.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 5 of 18
(4,205 Views)
How do i reverse the process? Since i can add data to array. How do i read out one by one ?
0 Kudos
Message 6 of 18
(4,176 Views)
Message Edited by ander99 on 02-25-2009 05:41 PM
0 Kudos
Message 7 of 18
(4,164 Views)
 
0 Kudos
Message 8 of 18
(4,163 Views)

Hi ander99,

to get an element from an array you can use the "index array" function. Another solution would be to connect your array to a for loop.

 

Mike

0 Kudos
Message 9 of 18
(4,155 Views)

How to use array to do comparison? Like Array 1 go thru array 2 to get data Loss out and build an array. Like Array 1 ,1000,1024,1048,etc before 1520 fall in between Array 2 range 1000-1500. So Freq 1000,1024,1048 etc will get Loss value as 1 and 1520 fall in between 1500-2000 will output Loss 2. and so on till the end of the list. How should do this? Need help on this.

 

 

Array 1                                                Array 2

 

Freq                                                   Freq   Loss

1000                                                  1000      1

1024                                                  1500      2

1048                                                  2000      3

1100                                                   :

1200                                                   :

:                                                         18000

:

:

1520

 :

:

18000

0 Kudos
Message 10 of 18
(4,120 Views)