# Data reading and plotting

**URL:** <https://discourse.nodered.org/t/data-reading-and-plotting/5401>\
**Category:** General\
**Created:** [2 December 2018 10:15 UTC](https://discourse.nodered.org/t/data-reading-and-plotting/5401 "2018-12-02T10:15:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![IOT](https://avatars.discourse-cdn.com/v4/letter/i/5f8ce5/32.png) [@IOT](https://discourse.nodered.org/u/IOT)\
**Post date:** [2 December 2018 10:15 UTC](https://discourse.nodered.org/t/data-reading-and-plotting/5401/1 "2018-12-02T10:15:17Z")

</div>

Hello!  
I am working on a project in which i need to send analogue value with delay 1 ms to MQTT and plot that value into the graph but unfortunately i failed after several tries.Kindly help me how to solve this issue.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 December 2018 10:45 UTC](https://discourse.nodered.org/t/data-reading-and-plotting/5401/2 "2018-12-02T10:45:49Z")

</div>

There are three things there that you want to do.

1. Delay for 1ms (this doesn't actually make sense. You can't rely on that sort of timing accuracy with node-red).
2. Send it to MQTT.
3. Graph it (presumably from MQTT but you have not made that clear).

Which part can't you do? If you can't do any of them then start with the first. However please explain what is the purpose of delaying it for 1ms before sending it to MQTT.

---

<div class="post-metadata">

**Author:** ![IOT](https://avatars.discourse-cdn.com/v4/letter/i/5f8ce5/32.png) [@IOT](https://discourse.nodered.org/u/IOT)\
**Post date:** [2 December 2018 11:18 UTC](https://discourse.nodered.org/t/data-reading-and-plotting/5401/3 "2018-12-02T11:18:39Z")

</div>

Actually i am new in Node red .  
Problem: actually i want to do Fast Fourier Transform of induction motor current .The system frequency is 50 Hz .so 1/50=20ms this is 1 cycle period. 1ms mean we get 20 sample for one cycle to perform FFT.

HOW TO READ DATA IN NODE RED means how can we insure that the data is correctly received from node red side?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [2 December 2018 11:26 UTC](https://discourse.nodered.org/t/data-reading-and-plotting/5401/4 "2018-12-02T11:26:07Z")

</div>

Node-RED is not a suitable tool for doing that sort of high precision timing. You would be better to do that in a separate application in a language more fit for purpose and feed the result into Node-RED.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 December 2018 11:28 UTC](https://discourse.nodered.org/t/data-reading-and-plotting/5401/5 "2018-12-02T11:28:17Z")

</div>

> [@IOT](#):
>
> how can we insure that the data is correctly received from node red side

Sorry, not sure what you mean. You say how can you insure the data is received _from_ node red which suggests the data is available in node red and you want to send it somewhere. Explain further please. What exactly are you trying to do in node red?

---

<div class="post-metadata">

**Author:** ![IOT](https://avatars.discourse-cdn.com/v4/letter/i/5f8ce5/32.png) [@IOT](https://discourse.nodered.org/u/IOT)\
**Post date:** [2 December 2018 11:43 UTC](https://discourse.nodered.org/t/data-reading-and-plotting/5401/6 "2018-12-02T11:43:19Z")

</div>

any other way of doing this?
