04-17-2009 12:26 PM
Solved! Go to Solution.
04-17-2009 12:35 PM - edited 04-17-2009 12:37 PM
Welcome to LabVIEW. You may want to spend some time learning about LabVIEW, it will make using it much easier. A good place to start is the Learning Center at the Developer Zone. You may also want to take a look at the free online courses offered here.
A for loop that is five indices long where each index holds the iteration number of the loop would look like this in LabVIEW:
After re-reading your post I see that you want something slightly different than the solution above, but the example I showed you should be enough to get you going on the solution you are looking for. Feel free to ask questions as they come up!
04-17-2009 12:38 PM - edited 04-17-2009 12:39 PM
04-17-2009 12:41 PM
04-17-2009 12:44 PM
You can initialize an array with the "Initialize Array" function, located in the palette at "Programming >> Array >> Initialize Array".
Chris M
04-17-2009 12:45 PM - edited 04-17-2009 12:45 PM
Is this what you are looking for?
04-17-2009 12:49 PM - edited 04-17-2009 12:49 PM
This is what CMal is talking about:
04-17-2009 12:51 PM - edited 04-17-2009 12:52 PM
Can be done this way. Not sure why you need to initialize and then replace. Much easier to just create using autoindexing.
04-17-2009 12:55 PM - edited 04-17-2009 12:59 PM
Wayne.C wrote:Can be done this way. Not sure why you need to initialize and then replace. Much easier to just create using autoindexing.
Message Edited by Wayne.C on 04-17-2009 01:52 PM
Memory Allocation? 🙂
04-17-2009 12:59 PM
If one needs to demonstrate how to initialize an array of a given size with a predetermined constant and then demonstrate how to replace values of that array, I suppose my way works. Assignment?