How are you communicating with the PLC? I am not sure if this is a card in your computer or an external device. If it is the latter, are you using GPIB, serial, ethernet, etc.?
LabVIEW does not communicate very well to memory locations(as in custom built devices). There is no built in way to do this(although there are VIs on the web that you can use). You are usually better off writting a driver for the device in C and then calling the driver from LabVIEW. This is how NI communicates to its own hardware.
I mention this because datasocket will probably not be a good solution to your problem. It is a communication protocol developed by NI and there is no documentation on its format. Trying to hack it is not going to worth your time when you can
just use TCP instead. In simple data transfer cases between LabVIEW and high level languages, it cannot be beat, and I highly recommend it in these cases. In your case, the PLC will likely not support it.
You should look on NI's site for info on Datasocket. The KnowledgeBase, Product Manuals, and Tuturials are where I would start.
Advanced Search