08-19-2014 08:52 AM
Please find attached
Thanks again
08-19-2014 08:53 AM
@Rcano_1982 wrote:
Hi Gerdw
thanks for your reply.
I am not able to do what I want with your example. Please see attached my attempt. I do not find a way to store the final count incremented 1 by 1 as per every iteration.
The way to handle arrays in Labview, even the simplest operations really do not get into my brain these days
Any advise?
Thanks a lot
That is nowhere close to GerdW's example. Look closely at his last example as it is as simple as it will get.
08-19-2014 08:57 AM
08-19-2014 09:09 AM
Hi GerdW,
Please see attached.
Your snippet does not do what I am trying to do.
Maybe I didnt make myself clear, the result of the comparation must increment(a unit/iteration) only that specific element that matches the value in both Data Array and DataComp.
08-19-2014 09:13 AM - edited 08-19-2014 09:16 AM
Hi Rcano,
my snippet does exactly that!
Edit:
Your VI still doesn't look like my snippet.
And it may help to initialize the feedback node. That node is just to show how to store the data. You could use a shift register in your data analysis loop…
08-19-2014 09:19 AM
Could you check I am using you snippet correctly please?
Please find attached.
Thanks
08-19-2014 09:22 AM
That looks correct.
08-19-2014 09:35 AM
Right,
So do you mean that if put it into a for loop and substitute the feedback node for a shift register, it should work?
No it does not! unless I am missing something else about how to integrate your snippet into my
I have tried with the shift register and it does the same
08-19-2014 09:36 AM
08-19-2014 09:38 AM
The screenshot above is how the array looks like after the first iteration.
When it should be (0,0,1,1,0,0)
Am I missing anything?