キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Very Newbie Question - Passing values back into a while loop.

I wrote a while loop that reads voltage and populates an array on the outside of the loop. From the array I produce a standard deviation...but I want to use that value as "value <= constantSTDEV" to stop the while loop. I'm not sure what I'm doing wrong. Can anyone help.

CCU Student
(VERY new to labview)
0 件の賞賛
メッセージ1/5
3,210件の閲覧回数
You need to make your array inside of the loop instead of outside. You can do this using shift registers and the build array function. See the attached vi for an example. Hope it helps!

Brian
0 件の賞賛
メッセージ2/5
3,210件の閲覧回数
Brian,
I can't open your VI. I get a message saying that resources are missing. I'm using 5.1...could that be that problem?
0 件の賞賛
メッセージ3/5
3,210件の閲覧回数
Sorry, didn't realize that you were using 5.1. Try this copy that I saved for version 5 instead.
0 件の賞賛
メッセージ4/5
3,210件の閲覧回数
try populating the array on the inside of the loop by using shift register
to add a new element to the array each time the loop executes. of course
then you will have to calculate the st. dev. inside the loop as well for
each execution of the loop, then simply use the value as your boolean stop
loop condition.


labview-student wrote in message
news:506500000008000000CC2E0000-1003545641000@exchange.ni.com...
> I wrote a while loop that reads voltage and populates an array on the
> outside of the loop. From the array I produce a standard
> deviation...but I want to use that value as "value <= constantSTDEV"
> to stop the while loop. I'm not sure what I'm doing wrong. Can
> anyone help.
>
> CCU Student
> (VERY new to labview)
0 件の賞賛
メッセージ5/5
3,210件の閲覧回数