# Run time problem

**URL:** <https://discourse.nodered.org/t/run-time-problem/26932>\
**Category:** General\
**Created:** [19 May 2020 15:19 UTC](https://discourse.nodered.org/t/run-time-problem/26932 "2020-05-19T15:19:28Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![arpit8851](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@arpit8851](https://discourse.nodered.org/u/arpit8851)\
**Post date:** [19 May 2020 15:19 UTC](https://discourse.nodered.org/t/run-time-problem/26932/1 "2020-05-19T15:19:28Z")

</div>

i want to that how can i gave input at run time in node red is there is any option for that to gave input at run time

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 May 2020 15:31 UTC](https://discourse.nodered.org/t/run-time-problem/26932/2 "2020-05-19T15:31:34Z")

</div>

Do you have any more information to add?

What input?  
What protocol?  
Hardware input?  
Timed input?  
Dashboard input?

You're gonna have to give us more to go on.

Ps, the answer is yes.

---

<div class="post-metadata">

**Author:** ![arpit8851](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@arpit8851](https://discourse.nodered.org/u/arpit8851)\
**Post date:** [20 May 2020 05:40 UTC](https://discourse.nodered.org/t/run-time-problem/26932/3 "2020-05-20T05:40:48Z")

</div>

basically i am working on arduino so in arduino i written a code for real time and date .  
so when i run the program then i have to gave input in serial monitor ..... ![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/2607e8df95256133f7ac84878d6b26476cab1271.jpeg)  
similarly i want to take this command on node red so how i can use in node red at run time to find real time and time

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [20 May 2020 05:44 UTC](https://discourse.nodered.org/t/run-time-problem/26932/4 "2020-05-20T05:44:39Z")

</div>

Does your Arduino have network/wifi? If so, you can integrate an MQTT client.

Otherwise you're limited to the serial port. You could use the serial node for that.

---

<div class="post-metadata">

**Author:** ![arpit8851](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@arpit8851](https://discourse.nodered.org/u/arpit8851)\
**Post date:** [20 May 2020 06:13 UTC](https://discourse.nodered.org/t/run-time-problem/26932/5 "2020-05-20T06:13:38Z")

</div>

sir i am using serial port for that but my question is how i can gave input in node red at run time  
in node red i am using serial port but this port is use for collect data to arduino and send output through node red that is fine .  
but for data and time i have to gave input so is there is any option to gave input at run time in node red like in arduino

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [20 May 2020 06:22 UTC](https://discourse.nodered.org/t/run-time-problem/26932/6 "2020-05-20T06:22:56Z")

</div>

I have never tried that, because all my controllers have some sort of network connection and use MQTT for communication.

But I think in your case the only way of communicating _is_ the serial port node. You'd have to close all other applications that use the COM port, of course. Access is exclusive. Sorry I can't help you any more than that.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 May 2020 07:14 UTC](https://discourse.nodered.org/t/run-time-problem/26932/7 "2020-05-20T07:14:05Z")

</div>

> [@arpit8851](#):
>
> but for data and time i have to gave input so is there is any option to gave input at run time in node red like in arduino

That really doesn't make much sense and you didn't answer if you have any WiFi or network connection on the Arduino.

In order to cause an input in node red, there has to be a connection between the Arduino and the pc/pi/server running node-red.

For example, if your Arduino took the data from serial and sent it to an MQTT broker, then node-red can very easily pick-up this input.

What hardware is node-red running on?  
What connectivity options do the Arduino and the node-red machine have?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [20 May 2020 07:49 UTC](https://discourse.nodered.org/t/run-time-problem/26932/8 "2020-05-20T07:49:55Z")

</div>

If you already have the serial port working with the Arduino IDE you can stop that and use a serial-request node instead. You can then inject your "command" into that and the reply will come back from the Arduino. As @kuema said you cant have the IDE running at the same time as only one thing can talk to the serial port at one time.

@Steve-Mcl OP has already said they are using an Arduino and shown the serial terminal - so let's not over complicate this.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 May 2020 07:54 UTC](https://discourse.nodered.org/t/run-time-problem/26932/9 "2020-05-20T07:54:03Z")

</div>

> [@dceejay](#):
>
> @Steve-Mcl OP has already said they are using an Arduino and shown the serial terminal - so let's not over complicate this

I'm not certain I am. The op said...

> [@arpit8851](#):
>
> but this port is use for collect data to

To me that reads as he's using the Arduino serial port to collect data hence my asking what other connectivity he had.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [20 May 2020 08:05 UTC](https://discourse.nodered.org/t/run-time-problem/26932/10 "2020-05-20T08:05:07Z")

</div>

> [@Steve-Mcl](#):
>
> he's using the Arduino serial port to collect data

and he wants to send commands to it as well - what's the problem ?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 May 2020 08:16 UTC](https://discourse.nodered.org/t/run-time-problem/26932/11 "2020-05-20T08:16:33Z")

</div>

Precisely!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 July 2020 08:29 UTC](https://discourse.nodered.org/t/run-time-problem/26932/12 "2020-07-19T08:29:15Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
