Advertisement

Name of Technique

Started by July 05, 2001 12:14 PM
0 comments, last by tememe 23 years, 7 months ago
In programming, it often occurs that one has an array in a loop, recieves data from an arbitrary source, and substitutes the new value in to the array. What is this called? By the way, I''m trying to do this in LabVIEW and it isn''t working correctly. Any suggestions?
There''s no name for it that I know, that''s just assignment of an array. Are you doing anything with the array values that exist before the loop or are you just overwriting them?

To do this in LabView:
- put down a for loop
- wire the input array to the left side of the loop
- leave your condition unwired--this will dereference every index of the array in turn
- wire your input data source to the left side of the loop, or put it inside the loop if you can.
- do whatever math you need to do to the variable/array
- wire the output of the math to the right side of the loop
- wire the output from the loop to the array variable output symbol. You should see an array (thick) pipe.

This topic is closed to new replies.

Advertisement