@IOT (USMAN) posted a new topic, subject "Data reading and plotting". It read:

   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.

After which, @Colin added

    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.

After which, @IOT (USMAN) added

    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?

Then @knolleary (Nick O'Leary) said

    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.

Then @Colin said

    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?

After which, @IOT (USMAN) added

    any other way of doing this?


{'source': 'discourse', 'url': 'https://discourse.nodered.org/t/data-reading-and-plotting/5401', 'title': 'Data reading and plotting', 'views': 382, 'has_accepted_answer': False, 'word_count': 314, 'like_count': 0, 'reply_count': 2, 'participant_count': 3, 'posts': 6, 'tags': '', 'author': '@IOT (USMAN)', 'participants': "@IOT (USMAN), @Colin, @knolleary (Nick O'Leary)", 'image_url': [None], 'created_at': '2018-12-02T10:15:17.383Z', 'last_posted_at': '2018-12-02T11:43:19.716Z'}