LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why doesn't the result look right when comparing?

Why doesn't the result look right even I used higlight execution to check true and false and found to be correct right?
0 Kudos
Message 1 of 6
(2,994 Views)
At first I was not sure what you were asking. After looking more closely, I think I can answer your question.

First of all, you need to initialize your shift register. This is the array of Boolean results. The first time through it works OK, but subsequent runs are also added on instead of replacing the results, even though you used a local to "clear" the array first.

You are adding 2 to the iterations and indexing on the new number. This is a so that you skip the first two "bad" values. Therefore, you only have 13 data points and should only be running the FOR loop 13 times. Change the FOR loop count constant to 13 (or get the array size and subtract 2 and wire it in if the number of tests is variable).

Also, there is an 'In Range a
nd Coerce' node that will perform the two tests and the AND all in one node. This was not an error, of course, but it does make it a bit easier to read.
Message 2 of 6
(2,994 Views)
Hi

Thanks for your great help. But I found your Fixed Test4a is meant for Labview ver 7.1 so I have difficulty opening it as I used Labview ver 7.0(trial evaluation) and I cannot find the trial evaulation for ver 7.1. Can you save it as ver 7.0 in Ni-website? You can use save with option.

Many thanks in advance

regards
Clement Yap
0 Kudos
Message 3 of 6
(2,994 Views)
0 Kudos
Message 4 of 6
(2,994 Views)
Thanks for conversion.

Many thanks again.

regards
Clement Yap
0 Kudos
Message 5 of 6
(2,994 Views)
Sorry about that. I have attached it again as a 7.0 file.

And for what it is worth, I think that there is a 7.1 Evaluation version somewhere on the NI site or ask your local sales rep if it's not.
0 Kudos
Message 6 of 6
(2,994 Views)