12-12-2024 06:16 AM
Hi Varghese,
@Varghese89 wrote:
1. Should I use one more "Write delimiter Spreadsheet" and add the header before the appending "Write delimiter Spreadsheet"
2. Which loop should I use?. Where can I adjust the time of execution in the loop.
Sorry, I am little confused as I am new to this.
You always should say "THINK DATAFLOW!"… (Really!)
Right now the code inside the loop will write the VERY SAME values to the file as long as the loop iterates. (THINK DATAFLOW!)
I wrote above which code to place before, inside and after the loop. You decided to arrange the loop in a completely different place!
To limit the loop iteration rate you can simply place a wait function inside the loop…
12-12-2024 07:47 AM
Hi GerdW,
I tried looping in like you said. I am getting this error.
1. When I put everything inside the loop, The data is getting written after the wait period. But still I am using the continuously run. What to do if I want to write to another csv for reduced duration.
2. I don't understand how to add headers in the file, Should i use a separate "Write delimited spreadsheet" outside the loop.
Your assistance has been immensely valuable to my learning. Thank you very much!
12-12-2024 08:09 AM
Hi Varghese,
@Varghese89 wrote:I tried looping in like you said. I am getting this error.
Because you still don't follow my suggestion. I wrote "close all references AFTER the loop", but you close the Modbus reference inside the loop…
@Varghese89 wrote:
1. When I put everything inside the loop, The data is getting written after the wait period. But still I am using the continuously run. What to do if I want to write to another csv for reduced duration.
2. I don't understand how to add headers in the file, Should i use a separate "Write delimited spreadsheet" outside the loop.