12-27-2005 10:48 PM
12-27-2005 10:59 PM - edited 12-27-2005 10:59 PM
Hi Rujuta,
Herez an example where i am initialising 10 elements in a 1D array and and replacing an element in it
Hope you can get an idea on what you want to achieve from this.
Regards
Dev
Message Edited by devchander on 12-27-2005 11:00 PM
12-27-2005 11:29 PM
@Ruju wrote:
Here I am using an array as a buffer, on the initialisation i am feling it with some data and after each iteration, i am updating the buffer by replacing the data in that array, but the problem is after each iteration, array is not updating as i replace the data into it, instead it is holding the data which is already it has taken at the inisialisation, then what i should do? can you please prompt me any solution,
12-27-2005 11:33 PM
Hiii, Dev
Thanks for the reply, and yes the link u ve given in another erply was for this problem, but now, i am using the Output Array as input buffer next time, and thats where problem starts, the outout buffer is not updating.
Thank you,
Rujuta
12-27-2005 11:39 PM
12-27-2005 11:47 PM - edited 12-27-2005 11:47 PM
Message Edited by devchander on 12-27-2005 11:50 PM
12-28-2005 12:58 AM
Hey, Alton...,
Thanks for the reply, but bcoz of some reason i am not able to attach the code, but can you please explain me the proper function of shift register in general and for the particular application.
Thank you,
Rujuta
12-28-2005
01:09 AM
- last edited on
04-28-2025
04:27 PM
by
Content Cleaner
12-28-2005 01:20 AM - edited 12-28-2005 01:20 AM
Essentially shift registers take a value ( be it a numeric, string, array or a cluster) into a loop and 'remember/store' that value from each previous iteration of the loop.
At the beginning of the loop, you can initialise the shift register.
Inside the loop, you can read this initial value and depending on its type, replace it/ append to it/ delete from it/replace it/add/subtract etc from the initial/prevoius loop's value in all successive loops.
The final value of the shift register after the loop termination can be read by putting an indicatior on the output of shift register.
Hope this gives you an idea reg use of shift tregisters.
Message Edited by devchander on 12-28-2005 01:20 AM
12-28-2005 03:49 AM
Thanks, Dev,
Thanks for the reply, and i am now able to understand the use of the shift registers, i ve already seen use of it in many VIs but i was not able to undstnd it, but now for sure. but i am still in some what confusion, and i am putting a question, in the attached vi, about the initialized the shift registers, so please explaint more about that.
Thank you,
Rujuta