07-24-2019 06:46 AM
Hi to all.
I collect data from different computers. The data forms one array. How can I set the specific elements of the array on different computers? I did it on a local machine use notifier array. But via network that will not work. If I'm going to use shared variable then I need read all array and write it on each computer. Or I need to create many shared variables and write to them. But in this case they have a quantity limit.
Solved! Go to Solution.
07-24-2019 06:51 AM
HI Forest,
How can I set the specific elements of the array on different computers?
You cannot…
Or I need to create many shared variables and write to them.
Yes.
But in this case they have a quantity limit.
Why? Which limit? Which quantity?
07-24-2019 07:09 AM
You might also consider a different architecture. For instance, you could create your own "network notifier" using, for instance, UDP. If you need lossless communication then Network Streams might be an option.
07-24-2019 07:23 AM
@GerdW wrote:
But in this case they have a quantity limit.
Why? Which limit? Which quantity?
I mean if quantity of parameters will increase I need add them and recompile the app.
07-24-2019 07:37 AM
Hi Forest,
you could also change the datatype of your shared variables to something like [number of channel, value of channel] (or even better [name of channel, value of channel].
Then combine this with a key-value-pair based table to hold the values of all channels…
07-24-2019 08:05 AM
@GerdW wrote:
Hi Forest,
...combine this with a key-value-pair based table…
The problem is each computer must read all the table(or array), change a few parameters values and then write all table. And it's wrong. I need something, which will be in server and have a variable size.
Like if I could programmatically create shared variables.
07-24-2019 08:21 AM
07-25-2019 01:39 AM
Hi, GerdW.
Would you show, how it possible? I don't imagine how I do this with shared variables.
07-25-2019 01:58 AM
Hi Forest,
I don't imagine how I do this with shared variables.
Have your server provide two variables:
Now a client can read the table, do its changes and send the information changes to the server…
07-25-2019 03:15 AM
Do you mean like that?
But if the clients will in asynchronous write. They will not interfere each other?