|
|
 | | From: | Randall T | | Subject: | Re: Dynamically create Variant Data Socket items with multiple writers | | Date: | Fri, 21 Jan 2005 13:10:44 -0600 (CST) |
|
|
 | unclebump wrote: Could you accomplish this using a funct= ional global architecture??
An interest= ing concept which might work and did just open up a new host of possibiliti= es!
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 =E2=80=9Cfun= ctional global vi=E2=80=9D that I knew would be in memory. It reads the fun= ctional global just fine!
Thanks for the suggestion.
Here is = the work around I used for the data socket program.
Here is the orig= inal problem. I needed to know on the server side when a new value was w= ritten to the message cluster, which consisted of a string and a variant. C= hecking 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 h= old the various parameters that accompanied the command. Since the same com= mand 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-define= d 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
|
|
|