I want to program our Ev3 for FLL (class assignment), and I want to use an object oriented approach in a very procedural environment. Is there a programmatic way to execute another program inside the same project using the augmented LabView? (This is more like using other programs as methods rather than programs, and then calling the "methods" to do a certain task like pull a lever, push a button, move the wheels...)
-
to clarify, I only can use LabView, unfortunately we can't use C++ or Java.– AMDGCommented Dec 8, 2014 at 15:40
-
As a general note, LabVIEW is a dataflow-driven language, rather than OOP or procedural. Just like OOP is a great aid for certain situations, using a dataflow-driven language is helpful for control system programming.– apnortonCommented Dec 21, 2014 at 17:29
-
see what I didn't realize before is I can make my own blocks with the Ev3. That's how I have other "Programs" to execute.– AMDGCommented Dec 22, 2014 at 14:41
Add a comment
|
1 Answer
This is more of a LabView answer than a Mindstorms answer, but you should be able to create a SubVI that represents a task, and then you can place that in the main VI.
This help document might be useful: http://zone.ni.com/reference/en-XX/help/372962A-01/lvnxt/creatingusingsubvi/