LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to know whether you can read and write to datasockets in 1 program( In boththe server, and the client). Does this still maintain the server/client concept?

Yes, it is possible to read and write to datasockets in 1 program. This is actually sometimes preferrable to using local variables. To answer your second question, in essence the same computer will be both the server and the client because you will publish to a url and subscribe from the same url all on the same computer.

Best Regards,

Eric Enger
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(2,588 Views)
Re: Eric's answer. It may seem odd that publishing and subscribing to data sockets could be preferable to using local variables but apparently when DataSocket reads and writes exist in the same process there is a direct memory copy without going through the server (this is a performance optimization). This was how it was explained to me by NI Tech Support when I was having difficulties reading data remotely that was readily available locally. So to some extent it is apparently not exactly the same as remote servers and clients.
0 Kudos
Message 3 of 3
(2,588 Views)