# Setup a CSV data file with parameters using the data from OPC UA link

**URL:** <https://discourse.nodered.org/t/setup-a-csv-data-file-with-parameters-using-the-data-from-opc-ua-link/79478>\
**Category:** General\
**Tags:** database\
**Created:** [29 June 2023 07:44 UTC](https://discourse.nodered.org/t/setup-a-csv-data-file-with-parameters-using-the-data-from-opc-ua-link/79478 "2023-06-29T07:44:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GAOJY11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gaojy11/32/80980_2.png) [@GAOJY11](https://discourse.nodered.org/u/GAOJY11)\
**Post date:** [29 June 2023 07:44 UTC](https://discourse.nodered.org/t/setup-a-csv-data-file-with-parameters-using-the-data-from-opc-ua-link/79478/1 "2023-06-29T07:44:38Z")

</div>

How to use node-red to read real time data from Siemens IOT2050 and store it in the CSV file with time stamp, is there any function code being suggested?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [29 June 2023 09:54 UTC](https://discourse.nodered.org/t/setup-a-csv-data-file-with-parameters-using-the-data-from-opc-ua-link/79478/2 "2023-06-29T09:54:51Z")

</div>

Hello @GAOJY11 and welcome to the forum.

How much have you already achieved -  
Have you managed to get data from the IOT2050 into Node-red?  
Have you discovered and experimented with the Write File node?  
Have you clearly defined the structure of the "CSV file with time stamp"?

---

<div class="post-metadata">

**Author:** ![GAOJY11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gaojy11/32/80980_2.png) [@GAOJY11](https://discourse.nodered.org/u/GAOJY11)\
**Post date:** [30 June 2023 02:15 UTC](https://discourse.nodered.org/t/setup-a-csv-data-file-with-parameters-using-the-data-from-opc-ua-link/79478/3 "2023-06-30T02:15:00Z")

</div>

1.Managed to get the data from the IOT2050 into Node-red.  
2. I haven't tried it out but I try to work on the csv instead of the write file node.  
3. still working on it  
I think I got some issues regarding the pallet installation

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [30 June 2023 04:41 UTC](https://discourse.nodered.org/t/setup-a-csv-data-file-with-parameters-using-the-data-from-opc-ua-link/79478/4 "2023-06-30T04:41:31Z")

</div>

Please show us an example of the data as it comes in to Node-red (use a Debug node) and the CSV file you want to create from it.

I am sure someone will be able to help you get from the input to CSV.

---

<div class="post-metadata">

**Author:** ![GAOJY11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gaojy11/32/80980_2.png) [@GAOJY11](https://discourse.nodered.org/u/GAOJY11)\
**Post date:** [17 July 2023 08:35 UTC](https://discourse.nodered.org/t/setup-a-csv-data-file-with-parameters-using-the-data-from-opc-ua-link/79478/5 "2023-07-17T08:35:17Z")

</div>

Thank you for the help; I had resolved the issue of updating data in the CSV file.

---

<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:** [15 September 2023 08:35 UTC](https://discourse.nodered.org/t/setup-a-csv-data-file-with-parameters-using-the-data-from-opc-ua-link/79478/6 "2023-09-15T08:35:21Z")

</div>

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