LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

having problem with storing data in array

Solved!
Go to solution

How do i increment an array ? If i wan to start reading from the 2nd data.

0 Kudos
Message 11 of 18
(1,569 Views)
Index Array gives you a single element from the index you specify Perhaps you might want Array Subset if you want the entire rest of the array starting at the index you specify. I recommend browsing around the array palette with Context Help turned on. Hover over each function in turn. You may be surprised at what you can learn.Smiley Wink
0 Kudos
Message 12 of 18
(1,567 Views)

I can't store my data into the array. It keep overwrite at the same location. Below is the attached vi.

0 Kudos
Message 13 of 18
(1,551 Views)

Hi ander99,

small tip: shiftregisters are your friends, the wire is the variable.

 

What do you try to do? Can you explain please? You should upload your example with values in your arrays. Insert your values and make them default.

 

Mike

0 Kudos
Message 14 of 18
(1,549 Views)

Sorry i forget about the value. I did with shift registers. Maybe i do not know the correct way. Thank for your help mike.

0 Kudos
Message 15 of 18
(1,540 Views)
Solution
Accepted by topic author ander99

Hi ander99,

can you please explain which array you mean? I changed a bit in your vi and added a build array component, maybe it was the correct place for it.

 

Hope it helps.

Mike

Message 16 of 18
(1,532 Views)

Hi Mike,

 

Sorry is the Loss (401) i want as output. Because it keep overwrite at the 1st index. Hmm..sorry i can't open that file. I'm using Labview 7.1. Thank for your time.

0 Kudos
Message 17 of 18
(1,525 Views)

Adnan's post in reply 5 gave the answer.   How come you didn't implement that?

 

Here is a screenshot of Mike's code as LV 7.1 is too far to say back to without extra effort and a PC with LV 8.0 installed on it.  The code is duplicated just to show the other case of the case structure without broken wires.

Advantages:  no local variables, no stacked sequences

Message Edited by Ravens Fan on 02-26-2009 09:05 AM
0 Kudos
Message 18 of 18
(1,518 Views)