SlideShare a Scribd company logo
Value Control with Variables Joe Long Robofest Student Assistant Lawrence Tech Computer Science Major   [email_address] April 12, 2007
Create the variable Navigate to the ‘Edit’ menu (next to ‘file’) Click on ‘Define Variables’ Click ‘create’ and enter the variable information and type. Click ‘Close’
Getting the light value Open the ‘complete’ block menu (  ) Find a Light Sensor block and drag it onto the field.
Saving the value to a variable Find a Variable block and drag it onto the field. In the block’s options panel, change it’s Action to ‘Write’ and select your created variable from the List.
Make the Data Wires (light value saved to a variable) Click on the ‘tab’ sticking out of the light block (  ), then click on the back ‘tab’ sticking out of the ‘write’ mode variable block The wire should look  like this:
Read the variable Drag another variable block onto the field. In the options panel, select your variable from the list and set the mode to ‘read’. The block should look like this When you are done:
Add 2 to the variable Find the ‘Math’ block and drag it onto the field. Draw a data wire from the second variable block to the ‘A’ tab on the math block:
Using the math block Open the math block’s options panel. Set the Operation to ‘Addition’ You can see that the space for ‘A’ is grayed out, as it is already used. In the ‘B’ space, type in ‘2’
Convert the answer (number) to text for displaying Find the Number to Text block Draw a data wire from the ‘#’ tab of the math block to the ‘#’ tab of the conversion block.
Displaying the value Find the Display block and put it on the field: In the display block’s options panel, set the Action to ‘Text’ (the location can also be experimented with) The block should now look like this:
Displaying the value Open the display block’s drop down menu (by clicking on the line at the bottom edge of the block) Connect a data cable from the  output of the converter to the ‘ T’ tab of the display block.
Display the data for 5 seconds Find a Wait block and drag it onto the field: In the options panel, set the Control to ‘Time’ and input 5.
Complete Steps: Read the light value Save it to a variable Do…. Whatever comes in-between… Read the variable Do any required math Convert the number to text Display the text Wait some time before continuing

More Related Content

PPTX
How to create a Composite FEM via Hypermesh
PPTX
Thermal Analysis in Hypermesh (Conduction, Convention and Thermal Expansion)
PPTX
Necto 16 training 23 - visual studio modeling
PPTX
Truss Analysis (Mechanics vs. Hypermesh)
PPTX
GeoGebra data analysis
PDF
ArcGIS Pro Lesson 1
PDF
ArcGIS Lesson 3
PPT
Getting Started With XLSIM
How to create a Composite FEM via Hypermesh
Thermal Analysis in Hypermesh (Conduction, Convention and Thermal Expansion)
Necto 16 training 23 - visual studio modeling
Truss Analysis (Mechanics vs. Hypermesh)
GeoGebra data analysis
ArcGIS Pro Lesson 1
ArcGIS Lesson 3
Getting Started With XLSIM

What's hot (20)

PDF
Conditional Logic in Visual Basic Programming
PDF
ArcGIS Pro Lesson - 2
PDF
Matlab vectors
PDF
Using Mathematica for computational learning
PPTX
Sequence diagram
DOCX
GIS practicals
PPT
Spreadsheet Analytical Tools
PDF
PPTX
4 4 making changes to graphs
PPTX
Creating a histogram
PPTX
2.6b scatter plots and lines of best fit
PDF
Creo Paper Profile
PPT
GeoGebra Talk - A basic introduction
PPTX
Machine Learning for Modern Developers
PPTX
WEKA: The Explorer
PPTX
Matrix operations in MATLAB
PPT
Fundamentals of Software Engineering
PPTX
Geo gebra 2
Conditional Logic in Visual Basic Programming
ArcGIS Pro Lesson - 2
Matlab vectors
Using Mathematica for computational learning
Sequence diagram
GIS practicals
Spreadsheet Analytical Tools
4 4 making changes to graphs
Creating a histogram
2.6b scatter plots and lines of best fit
Creo Paper Profile
GeoGebra Talk - A basic introduction
Machine Learning for Modern Developers
WEKA: The Explorer
Matrix operations in MATLAB
Fundamentals of Software Engineering
Geo gebra 2
Ad

Similar to Variable Op (20)

DOCX
Copying Files Across Workbooks Lab 5, Step 1 A. Save al.docx
PPT
BRM_Data Analysis, Interpretation and Reporting Part I.ppt
PPTX
mod3part 3 of robotic process automation
DOCX
Week 2 Project - STAT 3001Student Name Type your name here.docx
PPTX
Advanced Filter Concepts in MS-Excel
PDF
Excel Solver(By Mahsa Rezaei)
PDF
Sampling
PDF
Workshop10 creep-jop
PDF
Simulink
DOCX
AutoCAD Blocks, Attributes and Xrefs.docx
PPTX
Electronic Workbench - R.D.Sivakumar
PPTX
Libre Office Calc Lesson 2: Formatting and Charts
PDF
Visualbasic tutorial
PDF
Useful macros and functions for excel
PDF
Pivot table
PPTX
PPTX
PPT
Software packages for statistical analysis - SPSS
DOCX
Excel Training
PPTX
Excel chapter-4
Copying Files Across Workbooks Lab 5, Step 1 A. Save al.docx
BRM_Data Analysis, Interpretation and Reporting Part I.ppt
mod3part 3 of robotic process automation
Week 2 Project - STAT 3001Student Name Type your name here.docx
Advanced Filter Concepts in MS-Excel
Excel Solver(By Mahsa Rezaei)
Sampling
Workshop10 creep-jop
Simulink
AutoCAD Blocks, Attributes and Xrefs.docx
Electronic Workbench - R.D.Sivakumar
Libre Office Calc Lesson 2: Formatting and Charts
Visualbasic tutorial
Useful macros and functions for excel
Pivot table
Software packages for statistical analysis - SPSS
Excel Training
Excel chapter-4
Ad

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
Teaching material agriculture food technology
PPTX
Spectroscopy.pptx food analysis technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
cuic standard and advanced reporting.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Understanding_Digital_Forensics_Presentation.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Big Data Technologies - Introduction.pptx
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
Spectroscopy.pptx food analysis technology
Unlocking AI with Model Context Protocol (MCP)
cuic standard and advanced reporting.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Advanced methodologies resolving dimensionality complications for autism neur...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf

Variable Op

  • 1. Value Control with Variables Joe Long Robofest Student Assistant Lawrence Tech Computer Science Major [email_address] April 12, 2007
  • 2. Create the variable Navigate to the ‘Edit’ menu (next to ‘file’) Click on ‘Define Variables’ Click ‘create’ and enter the variable information and type. Click ‘Close’
  • 3. Getting the light value Open the ‘complete’ block menu ( ) Find a Light Sensor block and drag it onto the field.
  • 4. Saving the value to a variable Find a Variable block and drag it onto the field. In the block’s options panel, change it’s Action to ‘Write’ and select your created variable from the List.
  • 5. Make the Data Wires (light value saved to a variable) Click on the ‘tab’ sticking out of the light block ( ), then click on the back ‘tab’ sticking out of the ‘write’ mode variable block The wire should look like this:
  • 6. Read the variable Drag another variable block onto the field. In the options panel, select your variable from the list and set the mode to ‘read’. The block should look like this When you are done:
  • 7. Add 2 to the variable Find the ‘Math’ block and drag it onto the field. Draw a data wire from the second variable block to the ‘A’ tab on the math block:
  • 8. Using the math block Open the math block’s options panel. Set the Operation to ‘Addition’ You can see that the space for ‘A’ is grayed out, as it is already used. In the ‘B’ space, type in ‘2’
  • 9. Convert the answer (number) to text for displaying Find the Number to Text block Draw a data wire from the ‘#’ tab of the math block to the ‘#’ tab of the conversion block.
  • 10. Displaying the value Find the Display block and put it on the field: In the display block’s options panel, set the Action to ‘Text’ (the location can also be experimented with) The block should now look like this:
  • 11. Displaying the value Open the display block’s drop down menu (by clicking on the line at the bottom edge of the block) Connect a data cable from the output of the converter to the ‘ T’ tab of the display block.
  • 12. Display the data for 5 seconds Find a Wait block and drag it onto the field: In the options panel, set the Control to ‘Time’ and input 5.
  • 13. Complete Steps: Read the light value Save it to a variable Do…. Whatever comes in-between… Read the variable Do any required math Convert the number to text Display the text Wait some time before continuing