02-02-2008 02:26 AM - edited 02-02-2008 02:28 AM
02-02-2008 02:06 PM
02-03-2008 05:28 AM
02-03-2008 01:18 PM
02-04-2008 04:21 AM
Hello,
Also from the CVI samples, I use datasocket. While this is all NI non-standard communication, it works very easy when you build the "writer" as well as the "reader" wtih CVI. The samples are \samples\datasocket\reader and \samples\datasocket\writer.
Both reader and writer are client programs. The writer starts a (local) server. You will see it - and can access it - as an icon on the taskbar. On this server, it makes a connection for your dataset. And subsequently it updates the values of the dataset on the server.
The reader in (in auto-mode) gets a signal from the server when the dataset is updated. Subsequently it can retrieve the new dataset from the server.
Nice about datasocket is that the server is a stand-alone background-application by NI. For reader as well as writer you have only to programme read/write update. And the server works when there are 2 or 3 readers; or when there is no reader. Note that there maybe no reader; or maybe a network error. Make your log-file as part of the sensor acquisition programme.
Succes, Jos
02-24-2008 12:15 AM
02-25-2008 01:56 AM
02-25-2008 10:29 PM
OK
I have add the timestamp in front of my data string. And the reader PC will check the timestr update using a Timer COntrl..IF the timestr is not updated, the reader PC will Popup a message.
Thank you for your help.