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

File I/O does not save elements in array

已解决!
转到解答

Reading the file at the beginning of the program only updates the numeric array.  Once the loop starts, you overwrite the numeric array with new data that comes out of your A1 timer subVI.  And that returns to zero because that is how you are initializing inside of it.

 

What you need to do is turn your subVI into an Action Engine that has the normal state of running, but also an initialization state where you feed it the data that you read in from the file and save that data into the uninitialized shift registers as your starting time.

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

The subVI does not use shift registers, rather "feedback nodes"

 

Is it still possible to feed the data that is read in from the file? From my understanding an AE is a Functional Global that stores information. I have already "initialized on compile or load" for the feedback node. What am I missing? How would I put file read/write into the SUBVI code otherwise? I have gone to the forums but to no avail 难过表情

 

 

mhaque

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

From what I recall looking at your subVI (don't have it in front of me now), you can feed the values you read from the file into it and use them to initialize your FN.

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

where would I place the data read into the feedback node?

 

mhaque

下载全部
0 项奖励
14 条消息(共 18 条)
1,250 次查看

In place of the zero filled arrays that you are creating.

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

I have worked with probes, but I can't seem to figure out where the initialization takes place.

 

altenbach originally wrote the subVI.

 

mhaque

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

Do you mean in this thread?  Can LabVIEW pickup from where it left off?.

 

Why did you go off and start a whole new thread about the same programming issue you were having?

 

Keep everything in one thread where you were already being helped 5 days before you started this thread.  You've basically caused us to duplicate our efforts and wasted our time.

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

Actually the 2 issues merged. In one thread I was trying to save and the other dealt with the stop watch.

 

Either way I'm sorry about the inconvenience and thanks for all the help from the LabVIEW community.

 

mhaque

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