NetLogo banner

NetLogo Publications
Contact Us

Modeling Commons

Beginners Interactive NetLogo Dictionary (BIND)
NetLogo Dictionary

User Manuals:
Farsi / Persian


NetLogo Models Library:
HubNet Activities

For information about HubNet, click here.

(back to the library)

Polling HubNet

[screen shot]

If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web


This model can be used to poll data from a set of students using HubNet Clients. The teacher can input questions to ask and then the students can input their choice in response to the question. The collective data can then be plotted.

For further documentation, see the Participatory Simulations Guide found at


Quickstart Instructions:

Teacher: Follow these directions to run the HubNet activity. Optional: Zoom In (see Tools in the Menu Bar) Teacher: Open up the HubNet Control Center (see Tools in the Menu Bar). This will show you the IP Address of this computer. Press the GO button and tell the students to login. Everyone: Open up a HubNet Client on your machine and input the IP Address of this computer, type your user name in the user name box and press ENTER.

Teacher: If you don't want to allow students to change their mind, switch ALLOW-CHANGE? off. If you don't want to show the current data in the plot as it's being collected, switch SHOW-PLOT? off. You can turn it back on at any time to see the data.

Teacher: Press the NEW QUESTION button to input a question for everyone to answer. Everyone: Once you see the question, move your CHOICE slider to the value you want to choose and press the CHOOSE button. Once you have chosen, your choice will appear in your CURRENT CHOICE monitor, and your turtle in NetLogo will get brighter.

Teacher: To input another question, press NEW QUESTION again. The data and CURRENT QUESTION will be saved and then the question will change to your new question and everyone will be able to make their choices on the new question. To return to a previous question, use the <<<PREV QUESTION and NEXT QUESTION>>> buttons to cycle through the questions.

Teacher: To rerun the activity with the same group, press the CLEAR QUESTIONS button to erase all the questions and data.

Teacher: To start the simulation over with a new group but reuse the same questions, stop the model by pressing the NetLogo GO button, if it is on, and press the CLEAR CLIENTS button.

Teacher: To start the simulation over with a new group but with new questions, stop the GO button, if it is on, and press the SETUP button.

Follow these instructions from the beginning.


SETUP - clears everything including logged in clients. This should only be pressed when starting out with a new group of users since all data and questions are lost. GO - runs the simulation processing data from the clients. CLEAR CURRENT DATA - clears everyone's answers on the current question allowing them to re-choose. NEW QUESTION - allows you to write a new question to be asked. CLEAR CLIENTS - removes all the clients and clears the data, but leaves the questions intact. This should be used to start over with a new group but with the same set of questions. CLEAR QUESTIONS - erase all the questions and the data associated with them. This should be used if you want to start over with the same group or don't want clients to have to log back in. NEXT QUESTION>>> - changes the current question to the next question. <<<PREV QUESTION - changes the current question to the previous question. RESET INSTRUCTIONS - resets the quick start instructions to the beginning. NEXT INSTRUCTION>>> - advances the quick start instructions. <<<PREV INSTRUCTION - goes backwards through the quick start instructions.


ALLOW-CHANGE? - controls whether clients are able to change their choices after they've chosen. Can be changed at any time. SHOW-PLOT? - controls whether the data collected are shown in the plot. Can be changed at any time.


MEAN - shows the mean of the current data (aka average) MEDIAN - shows the median of the current data (the central value) CURRENT QUESTION - shows the current question being voted on by the clients


DATA - shows a histogram of all the clients' votes as well as the mean, median, and modes of the data.

Client Information:

CURRENT QUESTION - A monitor showing the current question to input a guess on. CHOICE - A slider for inputing your choice in answer to the current question. CHOOSE - A button which tells the server what your choice is. CURRENT CHOICE - Shows the value that the server currently has as your choice for the current question. It will be blank if you have not yet made a choice for the current question. DATA - Identical to the plot of the same name in NetLogo.


Currently, this activity only allows numeric data to be entered by the client. Try adding in support for yes/no or true/false answers to questions.

Right now the activity allows you to clear all the questions, clear all the clients and questions, and clear the data for one question. However, it does not allow you to clear all the data for all the questions. Make it do so.


If you mention this model or the NetLogo software in a publication, we ask that you include the citations below.

For the model itself:

Please cite the NetLogo software as:

Please cite the HubNet software as:


Copyright 2000 Uri Wilensky and Walter Stroup.


This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License. To view a copy of this license, visit or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.

Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at

This activity and associated models and materials were created as part of the projects: PARTICIPATORY SIMULATIONS: NETWORK-BASED DESIGN FOR SYSTEMS LEARNING IN CLASSROOMS and/or INTEGRATED SIMULATION AND MODELING ENVIRONMENT. The project gratefully acknowledges the support of the National Science Foundation (REPP & ROLE programs) -- grant numbers REC #9814682 and REC-0126227.

(back to the NetLogo Models Library)