<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">Hi,<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br>

</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">thanks! That works! And it works also if i put it in any RTC! Turned out, that I have access to that member, since I inherited from DataFlowComponentBase. Forgot it :S :)</div>

<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">Thanks again,<br>Best regards,</div>

<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000">György Persa</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#000000"> </div></div>

<div class="gmail_extra"><br clear="all"><div><div>
<font>György Persa</font><br><font size="1"><i>Software engineer</i><br>Institute for Computer Science and Control<br>Hungarian Academy of Sciences<br>3D Internet-based Control and Communications Research Laboratory / 3DICC<br>

<i>Project VirCA</i> (<a href="http://www.virca.hu" target="_blank">www.virca.hu</a>)</font>
<font size="1"></font></div></div>
<br><br><div class="gmail_quote">On Fri, Aug 30, 2013 at 6:42 AM, Ando Noriaki <span dir="ltr"><<a href="mailto:n-ando@aist.go.jp" target="_blank">n-ando@aist.go.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hello,<div><br></div><div>Please try to add "m_portAdmin.activatePorts();" after addPort() function.<br><div><br></div><div><div><span style="white-space:pre-wrap">               </span>std::string custom_port_name(std::string(getInstanceName()) + std::string("_custom_port"));</div>


<div><span style="white-space:pre-wrap">          </span>mCustomPort.registerConsumer( custom_port_name.c_str() , "Tester::CustomDynamicService", mCustomService);</div><div><span style="white-space:pre-wrap">              </span>addPort(mCustomPort);</div>


</div><div>                // Add the following code</div><div>                m_portAdmin.activatePorts();</div><div><br></div></div><div>Best regards,</div><div>Noriaki Ando</div><div><div class="h5"><div><br></div><div>

<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/8/29 György Persa <span dir="ltr"><<a href="mailto:persa@sztaki.hu" target="_blank">persa@sztaki.hu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div style="font-size:small;font-family:verdana,sans-serif">Hello,<br></div><div style="font-size:small;font-family:verdana,sans-serif">

<br></div><div style="font-size:small;font-family:verdana,sans-serif">sure! I attached the compressed folders for the two RTCs and the service definition!</div><div style="font-size:small;font-family:verdana,sans-serif">




Also, on this link you can find my exact VS2012 solution, I've used:<br><a href="https://www.dropbox.com/sh/pioyrjo7tg8d373/LPbOT0zeVt" target="_blank">https://www.dropbox.com/sh/pioyrjo7tg8d373/LPbOT0zeVt</a><span><font color="#888888"><br>


</font></span></div><span><font color="#888888"><div style="font-size:small;font-family:verdana,sans-serif">

<br></div><div style="font-size:small;font-family:verdana,sans-serif">György</div></font></span></div><div class="gmail_extra"><div><br clear="all"><div><div>
<font>György Persa</font><br><font size="1"><i>Software engineer</i><br>Institute for Computer Science and Control<br>Hungarian Academy of Sciences<br>3D Internet-based Control and Communications Research Laboratory / 3DICC<br>




<i>Project VirCA</i> (<a href="http://www.virca.hu" target="_blank">www.virca.hu</a>)</font>
<font size="1"></font></div></div>
<br><br></div><div><div><div class="gmail_quote">On Thu, Aug 29, 2013 at 2:40 AM, Ando Noriaki <span dir="ltr"><<a href="mailto:n-ando@aist.go.jp" target="_blank">n-ando@aist.go.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hello,<div><br></div><div>Thanks! But I don't know how do you realize dynamic service port.</div><div>Could you show your code?</div><span><font color="#888888"><div><br></div><div>Noriaki Ando</div>

</font></span><div><div><div><br></div><div><br></div><div>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/28 György Persa <span dir="ltr"><<a href="mailto:persa@sztaki.hu" target="_blank">persa@sztaki.hu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div dir="ltr"><div style="font-size:small;font-family:verdana,sans-serif">Hello,<br></div><div style="font-size:small;font-family:verdana,sans-serif">

<br></div><div style="font-size:small;font-family:verdana,sans-serif">they were "inline images", but now I just attach them! Hope, now they are available!</div><span><font color="#888888"><div style="font-size:small;font-family:verdana,sans-serif">







<br></div><div style="font-size:small;font-family:verdana,sans-serif">György</div><div style="font-size:small;font-family:verdana,sans-serif"><br></div>

<div style="font-size:small;font-family:verdana,sans-serif"><br></div></font></span></div><div class="gmail_extra"><div><br clear="all"><div><div>
<font>György Persa</font><br><font size="1"><i>Software engineer</i><br>Institute for Computer Science and Control<br>Hungarian Academy of Sciences<br>3D Internet-based Control and Communications Research Laboratory / 3DICC<br>







<i>Project VirCA</i> (<a href="http://www.virca.hu" target="_blank">www.virca.hu</a>)</font>
<font size="1"></font></div></div>
<br><br></div><div><div><div class="gmail_quote">On Wed, Aug 28, 2013 at 1:18 AM, Ando Noriaki <span dir="ltr"><<a href="mailto:n-ando@aist.go.jp" target="_blank">n-ando@aist.go.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hi,<div><br></div><div>I could not find attachments in your e-mail.</div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/27 György Persa <span dir="ltr"><<a href="mailto:persa@sztaki.hu" target="_blank">persa@sztaki.hu</a>></span><br>








<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div style="font-size:small;font-family:verdana,sans-serif">Hello everyone,</div><div style="font-size:small;font-family:verdana,sans-serif">










<br></div><div style="font-size:small;font-family:verdana,sans-serif">in my project I would like to create service ports dynamically, runtime and connect them together. Is there any simple way to do this? Here's a short overview of the exact problem what I encountered, I hope you can help me!<br>










<br>For this purpose, I designed an experiment for two test components. The RTC#1 (DynamicPortTester in attachments) is instructing  RTC#2  (DynamicPortRecevier) for creating a new port and register a provider for that.</div>










<div style="font-size:small;font-family:verdana,sans-serif"><img alt="Inline image 1"></div><div style="font-size:small;font-family:verdana,sans-serif">

After that, RTC#2 sets up a port as well and connect it to RTC#1's newly created port.</div><div style="font-size:small;font-family:verdana,sans-serif"><img alt="Inline image 2"></div>

<div style="font-size:small;font-family:verdana,sans-serif">My problem is that I'm unable to use the provided functions in RTC#2, because the service is inactive (_non_existent()).<br>

However, if I deactivate RTC#2 and activate it again, the service became active and usable.  Also, if I add the port when creating the component or in onInitialize(), it succeeds as well.<br></div><div style="font-size:small;font-family:verdana,sans-serif">










<br></div><div style="font-size:small;font-family:verdana,sans-serif">Is there a way to get an active service without deactivate & activate it?</div><div style="font-size:small;font-family:verdana,sans-serif">

<br></div><div style="font-size:small;font-family:verdana,sans-serif">Thanks in advance,<br></div><div style="font-size:small;font-family:verdana,sans-serif">

György Persa</div><span><font color="#888888"><div style="font-size:small;font-family:verdana,sans-serif"><div><br></div></div><div style="font-size:small;font-family:verdana,sans-serif">

<br></div><div style="font-size:small;font-family:verdana,sans-serif"><br clear="all"></div><div><div><font><br></font></div><div>
<font>György Persa</font><br><font size="1"><i>Software engineer</i><br>Institute for Computer Science and Control<br>Hungarian Academy of Sciences<br>3D Internet-based Control and Communications Research Laboratory / 3DICC<br>










<i>Project VirCA</i> (<a href="http://www.virca.hu" target="_blank">www.virca.hu</a>)</font>
</div></div>
<div dir="ltr"><div style="font-size:small;font-family:verdana,sans-serif"><br></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
openrtm-users mailing list<br>
<a href="mailto:openrtm-users@openrtm.org" target="_blank">openrtm-users@openrtm.org</a><br>
<a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/mailman/listinfo/openrtm-users</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
openrtm-users mailing list<br>
<a href="mailto:openrtm-users@openrtm.org" target="_blank">openrtm-users@openrtm.org</a><br>
<a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/mailman/listinfo/openrtm-users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
openrtm-users mailing list<br>
<a href="mailto:openrtm-users@openrtm.org" target="_blank">openrtm-users@openrtm.org</a><br>
<a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/mailman/listinfo/openrtm-users</a><br><br></blockquote></div></div></div></div></div>
<br>_______________________________________________<br>
openrtm-users mailing list<br>
<a href="mailto:openrtm-users@openrtm.org" target="_blank">openrtm-users@openrtm.org</a><br>
<a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/mailman/listinfo/openrtm-users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
openrtm-users mailing list<br>
<a href="mailto:openrtm-users@openrtm.org" target="_blank">openrtm-users@openrtm.org</a><br>
<a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/mailman/listinfo/openrtm-users</a><br>
</blockquote></div>
</div></div></div></div>
<br>_______________________________________________<br>
openrtm-users mailing list<br>
<a href="mailto:openrtm-users@openrtm.org">openrtm-users@openrtm.org</a><br>
<a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/mailman/listinfo/openrtm-users</a><br>
<br></blockquote></div><br></div>