![]() |
RMP Motion Controller
10.3.8
The RMP Motion Controller APIs
|
Learn to run a RapidScript program using the C# RapidSequencer API. More...
RapidScript is a basic programming language we created to make programming motion applications simple and fun.
To create an application using our RapidScript language you will need to use our RapidSetup Tool. The tool contains an IDE (Integrated Development Environment) so you can write, debug, and run code.
Check out our Product Page to get a quick overview about RapidSequencer.
Explore our Docs to learn how to use our RapidScript language.
Below is an example of creating a RapidSequencer instance and running a RapidScript file using the RapidSequencer C# API. Replace the following with the correct values for the system:
1. _platform
: An enum specifying which platform to create the sequencer on (Windows or INtime).
2. _nodeName
: The string name of the INtime node to run the sequencer on (if platform is INtime).
3. _rmpNodeName
: The string name of the INtime node RMP is running on.
4. workingDir
: The path to the directory where the RapidSequencer executable is (as a string).
5. port
: The port number the RapidSequencer will listen for requests on.
6. "RapidSequencer"
: The "friendly" name to assign to the RapidSequencer process (as a string).
7. fileNameString
: The name of the file to run (as a string). For sample apps, set this to the name of the sample app, such as "MoveSCurve.sq"
.
8. entryPoint
: The function in the sequencer file to run (as a string). Common practice (and the default value) is to run the "main"
function.
Prior to running any RapidScript application, users should configure their system properly. See the Configuration page for more information. In most cases, either using the rsiconfig utility or RapidCode functions to configure a system is preferred over using RapidScript.
Example configuration of a phantom axis:
Preparing an axis for motion:
Modules | |
Axis Analog Jogging | |
Learn how to jog an axis with RapidScript. | |
Hello Sequencer | |
A brief demonstration of how to interact with various RapidCode objects in RapidScript. | |
Loop Timing | |
Executes a specified number of loops and prints out both the total execution time and the average execution time of each loop. | |
Motion: MoveSCurve | |
Learn how to configure use the MoveSCurve function in RapidScript. | |