|
Re: Adding Inputs or Outputs to existsing VIs
You want to generate number sin Vision and then use them in Teleop?
If so, then just create a global variable, write to it in Vision and read from it in Teleop.
Step By Step:
1. From Block Diagram, right click, bring up Pallete, select the loops button
In the pallet you can select a GLOABL variable. Do it and drop it on the
Block diagram.
2. Double Click on that to bring up it's front panel. Drop what ever kind of control you want - you probably want a numeric of some kind. Save it
3. Now go click on the Global variable on the block diagram (to refresh the display)
4. Now you can write to that variable. Put it in your vision app and write to it.
5. Make a copy of it and drag or paste that into the teleop routine.
Right click and select "Change to Read"
Now you can read from that variable.
Bottom Line: Create a variable you can write to, then use that to create a version you can read from.
Let me know if you need more.
- Rick Folea
Atlanta Beta Team
|