LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

URL meaning specific to DataSocket

Hi
can someone explain me the meaning of each term for following URL particularly when i specify "configFiles"
URL: dstp://localhost/ConfigFiles

What happens when i specify "ConfileFiles" then i say DataSocket Connect. After this i change "ConfigFile" to "CFile" without disconnecting existing DataSocket connection.
Also let me know whether is it possible to specify more than 1000 dataitems I my case i have much more than 1000 parameters to communicate with many application?
Also let me know whether is it possible to have multiple instances of DataSocket Servers

Thanks
Rakesh
0 Kudos
Message 1 of 5
(3,684 Views)

Hi Rakesh,

Basically, dstp specifies the protocol to be used (http, ftp, etc) for the url connection, and then the address is listed after. The last item in the address (ConfigFiles) is the object session to connect to in the DataSocket Server. Only one server can run on one machine, but you are allowed multiple connections by referencing different session objects. For your case, using 1000+ connections is going to severely lag the system and you will probably have issues with getting the data transferred over DataSocket. I would recommend using LabVIEW Datalogging and Supervisory Control Module (DSC) for this type of an application. Read on about DSC in the link below:

Check it out!

Jeremy L.
National Instruments

Jeremy L.
National Instruments
0 Kudos
Message 2 of 5
(3,657 Views)
Hi Jermy

Thanks for your reply. When i referred more than 1000 dataitems i meant more than 1000 different values or parameters (which include floats, integers, strings, arrays etc. any combination of datatypes) i want to exchange between different applications running on different PCs. Actually number of parameters as i initially around 1000 are much more than 1000 it may go up to 3500.

Your first line of answer is not very clear to me i.e. "The last item in the address (ConfigFiles) is the object session to connect to in the DataSocket Server." How can i open a multiple connections....

Is there any problem in case high volume data exchange through Datasocket continuously for very long time (in my case 30days round the clock).

Please advice me further...

Thanks and Regards
Rakesh
0 Kudos
Message 3 of 5
(3,638 Views)


Your first line of answer is not very clear to me i.e. "The last item in the address (ConfigFiles) is the object session to connect to in the DataSocket Server." How can i open a multiple connections....




This object session refers to the datasocket server data items that are created or predefined on the server. For example, samplebool, samplenum, and samplestring are object sessions (or data items) that are predefined on the server. If you open your server, and then go to Tools >> Diagnostics, you will see these 3 data items already populated on your server. These data items are what makes the last part of the url. For your case, ConfigFiles is a data item (or object session) that you will be connecting to. When you have multiple connections, you can either connect to this same data item to read/write from, or you can specify different data items on the same server. This is what allows you to have multiple connections and sessions defined on the datasocket server, and this is why you would normally not need multiple instances of the server itself. For high volume data exchange, the only issue I forsee would be lag due to the sheer amount of bandwidth required to pass this much data. The only thing you can do would be to lessen the amount of overhead in each transmission, and so LabVIEW's DSC Module would help because it is moreso designed for this type of communication. Hope this helps!
Jeremy L.
National Instruments
0 Kudos
Message 4 of 5
(3,622 Views)
Thanks jermy you answer helped me a lot...
0 Kudos
Message 5 of 5
(3,615 Views)