02-28-2008 10:28 AM
02-28-2008 10:52 AM - edited 02-28-2008 10:53 AM
02-28-2008 12:11 PM
Well, at least you tried and got some of it right.
I think this should do what you want, but my C is rusty. Is the increment performed before or after the loop executes? If it's after, then I believe the loop should iterate 11 times, not 10.
In any case, you should note that for a literal translation, you would need to add a sequence structure to guarantee that Y was written to only after the inner loop finished because of the way data-flow works.. Also, note that controls and indicators in LabVIEW are not equivalent to variables. They can be used as such, but they usually should not be.
Another point about this is that you probably want to use the correct data type - the orange terminals are floating point indicators (of double precision, in this case) and you want integers.
To learn more about LabVIEW, I suggest you try looking at some of these tutorials.
02-28-2008 12:17 PM
02-28-2008 12:23 PM
JeffOverton wrote:
tst, that would give you b=0,2,4
02-28-2008 12:24 PM
02-28-2008 12:25 PM
Although, then I don't understand how you can get to b=5.
I guess you can consider me confused.
02-28-2008 12:26 PM