# Getting signal from robot

**URL:** <https://tech-community.robotics.abb.com/t/getting-signal-from-robot/4650>\
**Category:** Developer Tools\
**Created:** [January 27, 2012, 1:18pm UTC](https://tech-community.robotics.abb.com/t/getting-signal-from-robot/4650 "2012-01-27T13:18:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmgaspar](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@tmgaspar](https://tech-community.robotics.abb.com/u/tmgaspar)\
**Post date:** [January 27, 2012, 1:18pm UTC](https://tech-community.robotics.abb.com/t/getting-signal-from-robot/4650/1 "2012-01-27T13:18:34Z")

</div>

I use this code to try getting a signal state from a robot:  
Controller aController = new Controller();  
Signal \_doorClose= aController.IOSystem.GetSignal(“Do02\_RollingDoorClose”) as DigitalSignal;

DigitalSignal doorClosed = (DigitalSignal)\_doorClose;

int val\_doorClose = doorClosed.Get();

listBox2.Items.Add(Convert.ToString(val\_doorClose));

When i do this i get a error message saying that “the controller was not present in NetScan”.

Does any one no what is the problem?

I also want to change the value of a robot input, how do i do it? (On robotstudio offline only).  
Thanks

---

<div class="post-metadata">

**Author:** ![Niklas\_Skoglund](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Niklas\_Skoglund](https://tech-community.robotics.abb.com/u/Niklas_Skoglund)\
**Post date:** [January 27, 2012, 4:58pm UTC](https://tech-community.robotics.abb.com/t/getting-signal-from-robot/4650/2 "2012-01-27T16:58:44Z")

</div>

Hi Tiago,

you are using PC SDK right?  
Then you have to decide which controller on the network (or virtual controller on your machine) that you would like to communicate with.

The default constructor of Controller(), takes no parameters and assumes that you would like to communicate with the “defaultController id” as specified in the _capi_ section of the _App.config_ file.

If that is what you want to do, but still get this error, it means that this controller is not reachable for the moment.

To find available controllers on the network use the NetworkScanner class.

Have a nive weekend!
