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%20Library%20-%20VEX%20Cortex|ROBOTC|Remote%20Control|_____1
You want the VexRT command.
Look in the robotc help file.