Dear readers,
I have been trying to write a sub-vi that outputs an array of numbers. The inputs to the sub-vi are simply the starting number, the stopping number and the total number of elements to be created between the starting and stopping numbers.
For example, if I choose the starting number to be 0, the stopping number to be 10, and the number of elements to be generated to be 11, then the output array should have the values 0,1,2 ... 9,10.
So far, I can make a normal vi with a for-loop (or even while-loop) that does what I want, but I'd like to have a sub-vi that I can re-use to make things more convenient.
Unfortunately, I trie
d to convert the lab-view vi to a subvi, but I get those problems with 'you have a front panel control/indicator in the subvi', and things like that. Also, when I try to pass the start, stop, and number-of-elements values into the subvi, the arrays contained within loops in the sub-vi never register anything. They don't get any values as they normally do in the normal vi.
I've included my little 'normal' vi file that does the function I need. Now I'm trying to have a re-usable subvi that does the same thing.
Could someone please give me some advice to point me in the right direction? Thanks very much for any help in advance.
Kenny