# Triggering a signal from C#

**URL:** <https://forum.visualcomponents.com/t/triggering-a-signal-from-c/4148>\
**Category:** .Net Add-on Programming\
**Created:** [September 19, 2022, 10:51pm UTC](https://forum.visualcomponents.com/t/triggering-a-signal-from-c/4148 "2022-09-19T22:51:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmulfl](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/p/f17d59/32.png) [@pmulfl](https://forum.visualcomponents.com/u/pmulfl)\
**Post date:** [September 19, 2022, 10:51pm UTC](https://forum.visualcomponents.com/t/triggering-a-signal-from-c/4148/1 "2022-09-19T22:51:15Z")

</div>

I’m trying to trigger a string signal of a component from inside a C# plug in.  
I can get the component, and then the behaviour:

var sig= component.FindBehavior(“MyStringSignal”) as IStringSignal;

I was expecting sig to have some sort of method for triggering the signal?  
I have tried things like:  
sig.SetValue(“Value”, “MyMessage”);  
to no avail. Is what I want to do actually possible? And if so, how do I go about it?

---

<div class="post-metadata">

**Author:** ![TSy](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/tsy/32/761_2.png) [@TSy](https://forum.visualcomponents.com/u/TSy)\
**Post date:** [September 20, 2022, 4:39am UTC](https://forum.visualcomponents.com/t/triggering-a-signal-from-c/4148/2 "2022-09-20T04:39:00Z")

</div>

Simply set the ISignal.Value property.  
someSignal.Value = “new value”;

Also note that signals only raise their value change events when simulation is running.

---

<div class="post-metadata">

**Author:** ![pmulfl](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/p/f17d59/32.png) [@pmulfl](https://forum.visualcomponents.com/u/pmulfl)\
**Post date:** [September 21, 2022, 5:54am UTC](https://forum.visualcomponents.com/t/triggering-a-signal-from-c/4148/3 "2022-09-21T05:54:09Z")

</div>

Thanks,

> signals only raise their value change events when simulation is running.

this was my problem, I had not pressed play.
