loading

Set Variable

The Set Variable module allows you to assign other variables, time settings, or direct number/text values to variables. The module will also create new variables and assign them the specified value. You can use this module as a quick way to assign values to variables that can be used within the If Statement or in VBScript modules.

Interface

Instructions

1. Variable - Select the variable to set the value of. If the variable does not yet exist simply type the name into the provided combo box.

2. Value - Type in the value to assign to the variable. If you wish to assign the value of another variable to this variable then select that variable in the dropdown list as [variable name]. If you wish to set the variable to a particular time do so by selecting the appropriate time specification with []. You can also use the expressions in the value field to create new variables based on mathematical expressions of other variables/numbers.

3. Set Once - If you wish to set this variable as an initial configuration but then allow the value to change on each successive evaluation of the pipeline then select the "Set Once" checkbox. This checkbox will ensure that the variable is only assigned the specified value ONCE on program start. If unselected a variable will be set each time a new image is processed and will overwrite the current value.

4. Is Array - Specifies that the value for the variable is an array. Each item is seperated by a comma. On assignment this list is read, split into individual elements and assigned as an array.

5. Reset Button - Because you sometimes need to clear the 'Set Once' field to test how the system will startup, the Reset button will clear the Set Once flag for all variables such that they will be once again set when this module executes in the pipeline.

Variables


Depends on the configuration. All new variables specified are assigned the given values.

See Also


Watch Variables
If Statement


 New Post 

Set_Variable Related Forum PostsLast postPostsViews
Automatic Image Calibration
Hello, I am trying to run Roborealm on a Kangaroo for a project where I need to identify the specific location of ...
8 months 5 367
Array Variables
I have a question about assigning values TO an element of an array variable. I have followed the RR...
1 year 1 369
Socket Client data to Variable
STeven, I'm successfully getting TCP data sent to me from a radar device. Data looks like this and updates at 1 Hz...
2 years 8 808
Inconsistency with set variable
If you use the set variable module and change either the name or the value of a variable from small to capital letters, things d...
3 years 3 948
Start the program in
Hi , Attached cam file is working ok , i can shift the camera picture with PgUp&PgDn .
3 years 2 1129
Multiple Geometric Statistics module
Hi, I am trying to perform two sets of geometric analyses in the same pipeline, but am not sure how...
3 years 5 924
how to increment/decrement a variable?
Hi, does anybody know if there is way to increment/decrement a variable on robo's side?
4 years 2 1093
Saving images
Hi again, I am using a python script to do the following: LoadImage
4 years 4 1283
Trival Error
The mouse over description for Set Variable is wrong. It says something about stopping the processing so the pipeline can be res...
4 years 2 1065
Identifying X and Y COG serial data of two objects
So far, I have been tracking one object by color. I have been using the variables COG_X and COG_Y for the coordinates of this un...
5 years 10 1971
Using Arrays element as coordinate in Sample_Color
I would like to use Array elements as coordinates in the Sample_Color function but cannot get it to work.  Usually cra...
6 years 3 1576
roborealm crash
direct (read) access to the variables MOUSE_X, MOUSE_Y crashes roborealm, when clicking the OK-Button in the Set_Variables dialo...
7 years 2 1545
Set Variable using socket program
hi i have created one variable in by program named "calibrate" when i retrieve the value using socket program ( i am using thi...
7 years 4 1850
Unstable variable assignments
I have been using Robo Realm to control My 300 lb robot Ethel. I keep having problems with the variable names changing in the mo...
8 years 7 2271
add Display_DateTime module to write_variable module
Hi Steven, I really like the Display_DateTime module. However, it doesn't appear in my Write_Variables module ava...
8 years 3 1781
Feature Request - GUI slider?
Any plans to add a "slider" type GUI element (for adjusting variable values, etc.)?...
8 years 4 2155
Serial Sequence
In the serial communications console area i am sending the code \\x10\\xff\\xef\\x80\\x80\\x80\\x80...
8 years 35 3743
Problem with setting variables
Hello! Im using RoboRealm to play tictactoe versus my robotic arm. I use a webcam to watch the board. This image is then convert...
8 years 5 2507