Difference between pages "Creating an RBC file" and "Template:Vex2-drivers"

From ROBOTC API Guide
(Difference between pages)
Jump to: navigation, search
 
 
Line 1: Line 1:
<yambe:breadcrumb self="Creating an RBC file">Main|Main page</yambe:breadcrumb>
+
{|width="560px" style="border: 1px solid;"
 +
|-
 +
|style="font-size: 120%; font-weight: normal; background-color: #EAEAEA;"|The drivers for the CORTEX Microcontroller and VEXnet Joysticks are included in the ROBOTC 3.0 installers. If, for any reason, you need to download them separately, here are the downloads:
 +
|-
 +
|style="background-color: #F7F7F7;|
 +
*[downloads.robotc.net/drivers/VEX_Driver_Installer_110111.zip CORTEX & VEXnet Joystick Drivers (for XP and Windows 7)]
 +
*[downloads.robotc.net/drivers/prolific_usb_driver.zip Prolific USB-to-Serial Driver (XP)]
 +
*[downloads.robotc.net/drivers/win7_prolific_drivers.zip Prolific USB-to-Serial Driver (Win 7)]
 +
*[downloads.robotc.net/drivers/WIN8_Prolific_Drivers.zip Prolific USB-to-Serial Driver (Win 8)]
 +
|-
 +
|style="font-size: 120%; font-weight: normal; background-color: #EAEAEA;"|Download Network Driver (in addition to required driver) if ROBOTC will run from a network:
 +
|-
 +
|style="background-color: #F7F7F7;|
 +
*[http://www.robotc.net/files/ROBOTC_3xx_Redistributables.exe Network Driver]
 +
|}<noinclude>
  
{{tl|1|}}
+
To use this template, just copy and paste the following code:
 
+
<pre>
== What is an RBC file? ==
+
{{vex2-drivers}}
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
</pre>
|-
+
</noinclude>
|An RBC file is a special type of XML file that can be used with ROBOTC v3.52 or later. Once an RBC file is created properly, you will be able to configure ROBOTC's Platform Type, Compiler Target, Menu Level, and other important settings all with the click of a button. You can even configure the RBC program to load a user program and automatically download it to a robot or Virtual World of your choosing.
+
|-
+
|}
+
 
+
== How to create an RBC file ==
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
|
+
|-
+
|}
+
 
+
== XML parameters ==
+
===XML Version===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| The XML Version parameter will identify the document as valid XML. This must always be at the top of the RBC document.
+
*'''<?xml version="1.0" encoding="UTF-8"?>'''
+
|-
+
|}
+
===RBC Version===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| Identifies the current RBC specification being used.  As of today, this value should be specified as 1.0.0.
+
*'''<RBCVersion>1.0.0</RBCVersion>'''
+
|-
+
|}
+
===Platform Type===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| Sets the platform type in ROBOTC. Requires the ROBOTC installation to have an appropriate license activated and valid in order to work properly.
+
*'''<Platform>PlatformType</Platform>'''
+
|-
+
|}
+
===Compiler Mode===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| Sets ROBOTC’s compiler mode (Compiler Target) – used to switch between real robots, the PC-based emulator, and Virtual Worlds compiling targets.
+
*'''<CompilerMode>CompilerTarget</CompilerMode>'''
+
|-
+
|}
+
===Cortex Download Method (VEX Cortex only)===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| Sets the Cortex Download Method – used to modify the cortex download method to allow the Cortex to either require a VEXnet/USB cable in order to run, or to allow “standalone” mode to run a user’s program without searching for a COMM link. If the Cortex is using the VEXNet system or will be physically tethered to a Joystick Controller using the USB A-to-A cable, the VEXNet option should be used. Otherwise, use the USB-Only mode
+
*'''<CortexDLMethod>DownloadMode</CortexDLMethod>'''
+
|-
+
|}
+
===Virtual World Index===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| Sets the numerical type of the RVW Level Pack Index that should be launched. – This is only a numerical number that references the RVW Level Pack “ID” number.
+
*'''<VirtualWorldIndex>IndexNumber</VirtualWorldIndex>'''
+
|-
+
|}
+
===Compile and Download===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| Flag to specify if the source code should be “compiled” or “compiled and downloaded”. If set to “Yes”, the code will automatically be downloaded to the robot or Virtual World. Otherwise ("No", it will only be compiled.
+
*'''<CompileAndDownload>Yes</CompileAndDownload>'''
+
|-
+
|}
+
===Menu Level===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| Sets the ROBOTC GUI Menu Level. Used to show/hide functionality by adjusting the menu level types (Basic, Advanced, and Super User)
+
*'''<MenuLevel>Level</MenuLevel>'''
+
|-
+
|}
+
===RVW Parameters===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| Command Line Parameters that will be passed the next time Robot Virtual Worlds is launched. If the “CompileAndDownload” flag is set to “NO”, these parameters will be stored for the next execution. After the Virtual Worlds has been executed once, these parameters are discarded.
+
*'''<RVWParameters>parameter1 parameter2 parameter3</RVWParameters>'''
+
|-
+
|}
+
===Source File Name===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| Name of the file that will be saved/displayed on the ROBOTC tab-bar at compile time – Note this file only is used if SourceCode is provided.
+
*'''<SourceFileName>Name_Of_Program.c</SourceFileName>'''
+
|-
+
|}
+
===Circuit Board===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| This specifies the circuit board to be used. Has only real application with Arduino to differentiate between different board models (Uno,1280,2560,etc). Default value of blank (no value) for all other platforms.
+
*'''<CircuitBoard></CircuitBoard>'''
+
|-
+
|}
+
===Source Code===
+
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0"
+
|-
+
| Source Code of program to be open/compiled/downloaded. This is not a reference to an existing file but rather the actual contents of the file. Because the RBC file uses XML formatting, the file cannot contain any XML escape markups in the Source Code section. Instead, the escape markups must be replaced with the characters below:
+
|-
+
|}
+

Revision as of 21:16, 7 April 2014

The drivers for the CORTEX Microcontroller and VEXnet Joysticks are included in the ROBOTC 3.0 installers. If, for any reason, you need to download them separately, here are the downloads:
  • [downloads.robotc.net/drivers/VEX_Driver_Installer_110111.zip CORTEX & VEXnet Joystick Drivers (for XP and Windows 7)]
  • [downloads.robotc.net/drivers/prolific_usb_driver.zip Prolific USB-to-Serial Driver (XP)]
  • [downloads.robotc.net/drivers/win7_prolific_drivers.zip Prolific USB-to-Serial Driver (Win 7)]
  • [downloads.robotc.net/drivers/WIN8_Prolific_Drivers.zip Prolific USB-to-Serial Driver (Win 8)]
Download Network Driver (in addition to required driver) if ROBOTC will run from a network:

To use this template, just copy and paste the following code:

{{vex2-drivers}}