01-09-2006 11:47 PM
01-09-2006 11:55 PM
hi,
Try using simple TCP/IP client-server.
in should work well for your kind of aplication
01-10-2006 12:05 AM
Hi,
Initially I did try this approach, but noticed a few aspects which were annoying and it prompted me to drop this method.
1) I was noticing few packets being dropped in the communication and the data can be corrupted.
2)The TCP Connection handling between the host and the RT is a major deterent in this approach. I would be getting a connection error every few minutes since the connection would be opened for data transfer and closed after receipt repeatedly.
Are there any proven examples available? BTW, the data can be huge at times. An Array of 15*1000 is the norm, anything beyond this causes problems.
Still open to suggestions.
Ashm01
01-10-2006 01:32 AM
Hi Ashmo1,
Should it be assumed that data-transfer must occur over an ethernet connection, or are you open to other communication links between the RT Controller and host?
I am looking towards optimizing the data transfer of a 2D String Array between an RT Controller and the host. My Previous solution was to have a Datasocket connection which would embedd a 2D string array in a cluster and then transfer it over DS having a hand shaking between the host and the RT.This seems to put a huge overhead in between them and could be slow at time if the size of the data exceeds more than 1000 elements in the array.I am looking at possible alternatives in acheiving the same.-One option was to create an File with those values and then FTP it into the RT and then have the RT read the values and process accordinglyOROpen to any other suggestions,Regards,Ashm01
01-10-2006 01:33 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-10-2006 01:53 AM
01-10-2006 02:02 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-10-2006 02:18 AM
01-11-2006 03:25 PM
Greetings!
Shared variables are your best option towards optimization and transfer of a
large amount of data. Also look at the shared variable demonstration.
http://www.ni.com/realtime/software.htm
The following links touches on all the communication mechanisms which you all
have considered.
http://zone.ni.com/devzone/conceptd.nsf/webmain/614fe7a8bb91b16c86256e5c00574a80
Thanks much and hope this helps
Best regards
Avi Harjani
01-12-2006 10:12 PM