LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A few questions about the use of Datasockets

Hello,

I've started using Datasockets lately and there're a few issues that are still unclear to me. I've went over the many Datasockets messages and I don't see an answer to my questions.

1) In all my programs I've opened the DS once and put the read/write function within while loops. Now I am in a situation where I should open the DS every time, read or write and close it. The loop should work every half a second or so. My question: is there any problem with that? Is the Open operation going to consume much resources, more than opening once and reading/writing many times?

2) Most of my DS are used to transfer very short data. On the other hand, I use many DS in one VI. Is there any good reason to change my program so one DS transfers long strings instead of using many DS that transfer just a few bytes every time?

3) I've just found out that the default behavior allows one writer, unless you use predefined DS and check manually the respective check box. Since I prefer to create the DS from within the VI, LV apparently won't allow multiple writers. Is there any way that I can change that property from the VI?

4) Finally, I would feel more comfortable with DSs if I could set the DS server manager programatically or at least I could PRE-configure the DS server and send the configuration file with my application so once it's copies to the right place, my configuration works without much instalation trouble to the final user.

Thanks much,

Marce
0 Kudos
Message 1 of 1
(2,169 Views)