# OPC UA Multiple Interval settings while using Subscription Option

**URL:** <https://discourse.nodered.org/t/opc-ua-multiple-interval-settings-while-using-subscription-option/71910>\
**Category:** General\
**Tags:** opcua\
**Created:** [9 December 2022 10:15 UTC](https://discourse.nodered.org/t/opc-ua-multiple-interval-settings-while-using-subscription-option/71910 "2022-12-09T10:15:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manikandan](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Manikandan](https://discourse.nodered.org/u/Manikandan)\
**Post date:** [9 December 2022 10:15 UTC](https://discourse.nodered.org/t/opc-ua-multiple-interval-settings-while-using-subscription-option/71910/1 "2022-12-09T10:15:53Z")

</div>

hi,  
In my project, I was trying to set the OPC UA Subscription with two intervals using specific variable value [true] from the read information received from the opc ua Client.and as soon as the value of variable changes to false need to have a subscription with the longer interval.  
Tried to using msg.payload , no luck yet.

1. Can you please advise me on the nodes i need use to achieve two different intervals to the OPC UA Subscription node ?
2. On my flow, on the subscription method to read, I tired using template and CSV node to configure all the data in one place, but was ended up with an error, I think, Stringarray data type is creating a problem
3. Can you please suggest me in using the right method to use template and csv node for the Subscription method ?
4. Also, while writing, it's creating an error if i use data type as StringArray, can you please suggest me the method i should use with the proper data type [stringarray] ?

[flows (1).json](https://discourse.nodered.org/uploads/short-url/lkLIDg8Zckl4gb7iRDfDliVgsXG.json) (101.2 KB)

You Valuable inputs highly appreciated.

_Best Regards,_  
Mani

---

<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:** [7 February 2023 10:16 UTC](https://discourse.nodered.org/t/opc-ua-multiple-interval-settings-while-using-subscription-option/71910/2 "2023-02-07T10:16:25Z")

</div>

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