取消
显示结果 
搜索替代 
您的意思是: 

having problem with storing data in array

已解决!
转到解答

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

0 项奖励
11 条消息(共 18 条)
1,652 次查看
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.眨眼表情
0 项奖励
12 条消息(共 18 条)
1,650 次查看

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

0 项奖励
13 条消息(共 18 条)
1,634 次查看

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 项奖励
14 条消息(共 18 条)
1,632 次查看

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 项奖励
15 条消息(共 18 条)
1,623 次查看
解答
已被主题作者 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

16 条消息(共 18 条)
1,615 次查看

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 项奖励
17 条消息(共 18 条)
1,608 次查看

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 项奖励
18 条消息(共 18 条)
1,601 次查看