Read CSV DATA one by One

#1

Hi may I ask how Im going to output data from csv with time interval for each rows.
My problem is im able to out put all the data all at once.
Thank you

0 Likes

#2

Are you reading this from a file? If so take a look at the options on the file-in node

0 Likes

#3

Yes I am. MY problem is that after reading the csv file. E.g I have 35 rows. It will output all the 35 rows simultaneously. Im expecting it to be output 5sec per row.

0 Likes

#4

Sorry Im just a newbie here in Node-red. IF you can give me some example much appreciated.

0 Likes

#5

You can add a Delay node after the File node, and configure it to Rate Limiting mode - then pick the message rate you want.

0 Likes

#6

after I placed the delay node after the file node it only delay the first row after that all the other rows output simultaneously without any delay

0 Likes

#7

Then you have not configured it in Rate Limiting mode as I suggested.

0 Likes

#8

i configured it "1 msg per 1 sec"
my node -> File Node -> Delay Node -> CSV NODE -> Function Node -> Debug Node

0 Likes

#9

0 Likes

#10

only the first row meet the delay node

0 Likes

#11

you’ve set the delay node the limit topic.
So does your message have a topic?

If not try changing the configuration of the delay node

0 Likes