01-02-2006 03:47 AM
01-02-2006
04:27 AM
- last edited on
04-27-2025
10:17 PM
by
Content Cleaner
Hi Chris,
Happy New Year to you too!
Hereare links which discuss how to create / use sub VI's.
https://www.ni.com/docs/en-US/bundle/labview/page/creating-subvis-from-sections-of-a-vi.html
http://digital.ni.com/public.nsf/allkb/1FA00093A04BFCF5862570920049E482
Here there is a discussion on how to re-use a same sub VI multiple times in a main VI.
https://forums.ni.com/t5/LabVIEW/Need-to-place-sub-VI-in-VI-a-number-of-times/m-p/60132
These should you a good start on how to use Sub Vi's effectively.
Regards
Dev
Message Edited by devchander on 01-02-2006 04:27 AM
01-02-2006 01:06 PM
Hello Dev,
many thanks, I read thro your suggested URLs and although I understand the basics of how to construct a subvi, the links were excellent. Particularly the suggestion to select a code area and subvi it. I vaguely remember this feature but never used it. It also helps to partly answer my origonal question as I can see it is creating references when generating the subvi, making me think I was on the right lines although I still dont know how to use them yet.
I dont think theres a magic bullet allowing me to easily subvi an entire while looping program with this method as it throws up lots of scary hex address errors when i try to sub vi 'too much' (or is it too complicated ) code snippets?
I imagine the auto sub vi feature is really there as a way of simply condensing straight forward serially running code.
I greatly appreiciate your help and advice.
Regards
Chris