Answers.Body: <p>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.</p>
  
  <p>This help document might be useful:
  <a href="http://zone.ni.com/reference/en-XX/help/372962A-01/lvnxt/creatingusingsubvi/" rel="noreferrer">http://zone.ni.com/reference/en-XX/help/372962A-01/lvnxt/creatingusingsubvi/</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-09T15:13:32.180Z
Answers.LastActivityDate: 2014-12-09T15:13:32.180Z
Answers.UserDisplayName: Tom Brendlinger
Body: <p>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...)</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-08T15:40:40.153Z
Comments.Text: to clarify, I only can use LabView, unfortunately we can't use C++ or Java.
Comments.UserDisplayName: AMDG
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-21T17:29:20.597Z
Comments.Text: 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.
Comments.UserDisplayName: apnorton
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-12-22T14:41:16.707Z
Comments.Text: 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.
Comments.UserDisplayName: AMDG
Tags: <mindstorms><ev3><programming><labview>
Title: Execute program programmatically
UserDisplayName: AMDG
ThreadText: # Execute program programmatically
  
  (Asked by: username_0 on 2014-12-08)
  
  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...)
  
  **Tags:** mindstorms, ev3, programming, labview
  > **Comments:**
  > **username_0**: to clarify, I only can use LabView, unfortunately we can't use C++ or Java.  
  > **username_1**: 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.  
  > **username_0**: 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.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2014-12-09. Score: 5 | Accepted 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/>
  
  
  ---
  
  