|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#18
|
||||
|
||||
|
Re: sample code to move robot autonomously
Glad it helped you.
The easiest way to use this code in teleop also is to make it a subvi. To do this, select all the code for the state machine (while loop included). Then, go to the "Edit" menu and select "Make SubVI". LabVIEW with put the code in a new vi and automatically creat the inputs for you. Save this vi, then you can drop it in teleop to use it. Note: for this to work, the state machine must stop the loop when it's done. If you want to run the state machine in autonomous more then once, you can make another state machine which calls the sub state machine. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sample code | johncap100 | NI LabVIEW | 2 | 01-02-2010 08:18 |
| Missing sample code | ajdecker1022 | Java | 3 | 28-01-2010 19:39 |
| Sample Code | Belly | Programming | 1 | 21-01-2010 14:34 |
| Sample Code | Japper | Programming | 2 | 01-12-2008 22:36 |
| Sample PID code??? | EHaskins | Programming | 14 | 08-08-2006 14:18 |