I wanted to ask if it is possible to change several nodes at the same time. As an example, I have several switch or range nodes in my flow for which I would like to change the entered values. I change the value of one node and this value is transferred to all other nodes in the flow. Something like a global variable, is there something in Node-Red?
Thank you for your answer. I finally found time to test this time and managed to do it with the change and function Node. Now I wanted to ask whether it is possible to define the range node as a global variable. In my flow, the message payload runs repeatedly through an A / D converter node and then through the change node. There are a total of 16 change nodes in the flow and it is tedious to change the values ​​for all of them one after the other.
So my question again is it possible to change the values ​​of a change node and these are transferred to all others?
It is trivial to implement a Range node using a function node, in the function you could send it a message to change the range, or use flow/global context to define the range.
Your picture where you drew red circles around the boxes - I demonstrated that while you cannot use global variables, you can use environment variables.
Do you know what environment variables are and how to use them?
So environment variables are set in your operating system before you launch node red.
For example, on Windows you might have a batch file that launches node-red. You can set up some variables before you launch node-red (like constants) that you can pick up in node-red
E.g., your batch file might be something like...
set f1=0
set t1=4095
set f2=1
set t2=100
node-red
Then when node-red is running, you can pick up the value of these & use them in the range node (and other nodes)
If you use Linux, then it would be export f1=0 etc.