07-21-2009 04:14 AM
I try to save a cluster to a file on my RT-target from my host machine via ftp and datasocket. I can use the DS examples between host and target but when I connect a cluster to either DS Write or DS Read the VI stops with error 42 (Generic error). The help for DataSocket does not mention any constriction concerning the data type. Is this a bug or a feature?
I found a workaround by saving the cluster to a local file and transferring this to the RT-target with FTP-VI's but the DataSocket solution would be much simpler.
LabVIEW 8.6.1
07-22-2009 03:32 AM
Hi,
usually it should be possible to use LabVIEW Clusters with DataSocket: see http://digital.ni.com/public.nsf/allkb/1085057DB6F930058625672400646805?OpenDocument
Can you post your VIs so that I can test it on my workstation?
Best regards
Suse
07-22-2009 04:40 AM
Hi,
I found the reason for the generic error: the file to write or read has to have a extension "dsd" (or "wav"), otherwise you'll get the error. With a .dsd extension I was able to save the cluster. I have not yet managed to read it back but at least DS Read does not abort with the generic error. Interesting thing is if you use an other extension than dsd when writing, an empty file is actually created on the target system.
07-23-2009 08:01 AM
Hi,
I created some VIs for you which you can use - one server and one client VI with a SubVI "startServer.vi". You find them in the zip-file below! When testing the VIs please change the ip-adress into your own one! I hope this helps you!
Best regards
Suse
07-24-2009 03:20 AM
Hi Suse,
thank you for your efforts, but that is not what I'm looking for. This I would rather do with network shared variables. I want to read a file (kind off configuration) from the target, edit it on the host and write it back to the target. Since the target has already a ftp-server I want to use it instead of writing some server. I thought DataSocket with its ftp-access would be a simple solution but the ftp-access seems to be limited. Now I'll use the ftp funtions of the Internet Toolkit.
Regards
Matthias
07-24-2009 08:46 AM
Hi Matthias,
no problem! Do you still need any help?
Best regards
Suse