This article discusses how to setup a simple program in Crimson as a user defined action.
APPLICABLE PRODUCTS
PRE-REQUISITES
IN THIS ARTICLE
This article covers step by step instructions for creating and translating a simple program as a user defined action in Crimson 3.x
First, select programs, click new program. You will see the program code window as below. In this example I'm using the pushbutton primitive to reset the counter display to zero when pressed. To do that I use the script cnt_reset=0;
Program 2 in this example is to delete a data log file manually from the file viewer primitive. This script is found under the system> system functions> file options in the right-side resource pane.
Please note once you have your Program code script typed out. You will need to translate the program. If you do not you will see a yellow diamond instead of green in the program list view, left side.
You can see program 3 above is yellow. To translate the program script with your cursor anywhere in the program code window. Click on the program name and then select translate. If the compiler accepts the script. The diamond will turn green. If it finds a syntax error, it will give you an error description in the program code window.
Last, you have to assign the program script to the action button. In this example I'm using a pushbutton primitive as a user defined action, on press. Select the display page with the primitive you are working with. Click on it, then select properties.
Under the action tab set your action mode as user defined. Then select you program from the program list in the right-side resource pane and drag over to the action, on press editor.
Once you are done editing your database. Click file> save as and save to a location of your choice. Click link>options and verify your comm port settings. Last, click link> send to download the database.
HMS Support
If you need further assistance, you can contact us here.
Create a support ticket here
ADDITIONAL INFO
Link to Crimson download page Crimson 3.x download link
Link to Crimson 3.x manual Crimson 3.x reference manual
© HMS Networks AB 2026