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 Posts | Last post | Posts | Views |
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 ... |
7 year | 5 | 3261 |
Array Variables
I have a question about assigning values TO an element of an array variable. I have followed the RR... |
8 year | 1 | 2229 |
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... |
9 year | 8 | 3867 |
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... |
10 year | 3 | 2779 |
Start the program in
Hi , Attached cam file is working ok , i can shift the camera picture with PgUp&PgDn . | 10 year | 2 | 2915 |
Multiple Geometric Statistics module
Hi, I am trying to perform two sets of geometric analyses in the same pipeline, but am not sure how... |
10 year | 5 | 2676 |
how to increment/decrement a variable?
Hi, does anybody know if there is way to increment/decrement a variable on robo's side? | 11 year | 2 | 2871 |
Saving images
Hi again, I am using a python script to do the following: LoadImage 11 year |
4 |
3346 |
|
Trival Error
The mouse over description for Set Variable is wrong. It says something about stopping the processing so the pipeline can be res... |
11 year | 2 | 2680 |
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... |
12 year | 10 | 4163 |
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... |
13 year | 3 | 3217 |
roborealm crash
direct (read) access to the variables MOUSE_X, MOUSE_Y crashes roborealm, when clicking the OK-Button in the Set_Variables dialo... |
14 year | 2 | 3237 |
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... |
14 year | 4 | 3559 |
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... |
15 year | 7 | 4012 |
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... |
15 year | 3 | 3417 |
Feature Request - GUI slider?
Any plans to add a "slider" type GUI element (for adjusting variable values, etc.)?... |
15 year | 4 | 3942 |
Serial Sequence
In the serial communications console area i am sending the code \\x10\\xff\\xef\\x80\\x80\\x80\\x80... |
15 year | 35 | 6251 |
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... |
15 year | 5 | 4413 |