# Connecting and Listening on RTDE with C# Client

**URL:** <https://forum.universal-robots.com/t/connecting-and-listening-on-rtde-with-c-client/4646>\
**Category:** Robot Communication\
**Created:** [July 2, 2019, 10:24pm UTC](https://forum.universal-robots.com/t/connecting-and-listening-on-rtde-with-c-client/4646 "2019-07-02T22:24:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon84262953](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@anon84262953](https://forum.universal-robots.com/u/anon84262953)\
**Post date:** [July 2, 2019, 10:24pm UTC](https://forum.universal-robots.com/t/connecting-and-listening-on-rtde-with-c-client/4646/1 "2019-07-02T22:24:52Z")

</div>

I am new to developing for UR and have had success just sending commands that move the robot from my C# application I am developing. However, currently I have to manually wait before continuing to the next step because I can’t seem to get meaningful information back out of the robot.  
I am currently using the primary client interface on port 30001, but trying to parse the information I receive from this is proving far too difficult. That being said, I want to swap over to RTDE so that I can manually just send back confirmation that a movement has finished before I continue my procedure. My main problem is that all of the RTDE code that is supplied is written in python, and I am having a very difficult time figuring out what all of the byte operations do when a command is sent out in this python code.  
Could someone give me a simple, detailed walk through of how I can send and receive commands and information with RTDE using the C# programming language?

---

<div class="post-metadata">

**Author:** ![anon71517064](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@anon71517064](https://forum.universal-robots.com/u/anon71517064)\
**Post date:** [July 3, 2019, 2:38am UTC](https://forum.universal-robots.com/t/connecting-and-listening-on-rtde-with-c-client/4646/2 "2019-07-03T02:38:52Z")

</div>

Model your code in c# on a chat client and server .

---

<div class="post-metadata">

**Author:** ![frederic.chaxel](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@frederic.chaxel](https://forum.universal-robots.com/u/frederic.chaxel)\
**Post date:** [July 6, 2019, 11:50am UTC](https://forum.universal-robots.com/t/connecting-and-listening-on-rtde-with-c-client/4646/3 "2019-07-06T11:50:23Z")

</div>

Hi,

See [Implementation of RTDE into C# - #2 by frederic.chaxel](https://forum.universal-robots.com/t/implementation-of-rtde-into-c/4661/2)

Bye

---

<div class="post-metadata">

**Author:** ![anon84262953](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@anon84262953](https://forum.universal-robots.com/u/anon84262953)\
**Post date:** [July 8, 2019, 11:16pm UTC](https://forum.universal-robots.com/t/connecting-and-listening-on-rtde-with-c-client/4646/4 "2019-07-08T23:16:54Z")

</div>

I am looking through the implementation, but I am a bit confused by how to set the outputs. Do you type them in on the command line? What is the formating?

---

<div class="post-metadata">

**Author:** ![anon83916365](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@anon83916365](https://forum.universal-robots.com/u/anon83916365)\
**Post date:** [August 15, 2019, 12:47pm UTC](https://forum.universal-robots.com/t/connecting-and-listening-on-rtde-with-c-client/4646/5 "2019-08-15T12:47:16Z")

</div>

Hi, your code works for the most part the problem is i have to convert it to [vb.net](http://vb.net) , and your code is not documented, or commented.

---

<div class="post-metadata">

**Author:** ![frederic.chaxel](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@frederic.chaxel](https://forum.universal-robots.com/u/frederic.chaxel)\
**Post date:** [August 17, 2019, 8:16am UTC](https://forum.universal-robots.com/t/connecting-and-listening-on-rtde-with-c-client/4646/6 "2019-08-17T08:16:41Z")

</div>

Hi,

You can creates a dll with the content of Rtdeclient.cs file. It can be referenced in a [vb.net](http://vb.net) application.

Bye

---

<div class="post-metadata">

**Author:** ![androidflorent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/androidflorent/32/3314_2.png) [@androidflorent](https://forum.universal-robots.com/u/androidflorent)\
**Post date:** [March 22, 2022, 7:11pm UTC](https://forum.universal-robots.com/t/connecting-and-listening-on-rtde-with-c-client/4646/7 "2022-03-22T19:11:02Z")

</div>

See [this .NET C# RTDE implementation](https://underautomation.com/universal-robots) (also Primary Interface, Dasboard, SSH, FTP, XML-RPC, Socket …)
