You are using EasyC calls in RobotC.
http://help.robotc.net/WebHelpVEX/index.htm#Resources/topics/VEX_Cortex/ROBOTC/Remote_Control/vexRT-Ch.htm%3FTocPath%3DCommand%2520Library%2520-%2520VEX%2520Cortex|ROBOTC|Remote%2520Control|_____1
You want the VexRT command.
Look in the robotc help file.