@unclebump wrote:
Could you accomplish this using a functional global architecture??
An interesting concept which might work and did just open up a new host of possibilities!
When I get the time I might give this a try. I just did a quick test in another program.
Through VI server I opened a reference to a remote machine. I then created strictly typed reference to a âfunctional global viâ that I knew would be in memory. It reads the functional global just fine!
Thanks for the suggestion.
Here is the work around I used for the data socket program.
Here is the original problem.
I needed to know on the server side when a new value was written to the message cluster, which consisted of a string and a variant. Checking the string portion of the cluster let me know what command to send the device being controlled on the server machine. The variant is used to hold the various parameters that accompanied the command. Since the same command type could be sent several times I needed to reset the string control after the server read the command. This required writing to the data socket from the client & server machine (multiple writers). Also since the client could be any PC in the subnet I needed to allow all these machines to have write access.
I solved this by using a second data socket item for the new message flag. This item is a string value that could be pre-defined and set to allow multiple writers. I then used the cluster item to handle the commands and wrote to the string item a signal that a new command was ready. The server then recognizes a new command is ready, reads the command, and then flags the string message received.
Thanks again for those who took the time to answer this.
Randall