04-09-2008 10:38 AM
04-09-2008 01:10 PM
Just as a follow-up: I simplified the target VI a great deal.
It now: waits for OPC variable to update, writes to serial port, waits 1000mS, then reads.
Still the same exact response time, even when using a loopback adaptor on the cFP. The user LED indicates if any error occured, of which I get none.
Any thoughts?
Kindly,
Jamie
04-10-2008 02:46 PM
Well as long as I'm typing to the wind I may as well update the thread.
I've been learning quite a bit about Datasocket and all the nifty names NI has coined for their protocols. It seems like such a huge mish-mash...
Anyway I've moved on to trying the Publish Data on the FP and Datasocket read/writes on the host vi. This seemed to take care of my delay problem, but it may very well have been just a syntax mistake also. While it works OK with a loopback device, it doesn't work so well with the actual end device...
I did discover one alarming thing about logos: it is only *update on change*, which includes the timestamps!!! No matter how many times you Publish data, if the data is the same, the timestamp does *not* get updated, nor does the functionality to 'wait for change' within the 'ReadDataSocket.vi'.
So this almost entirely rules out using these for serial transfer, even buffered. If I get two identical 'polling' commands sent to the FP to send out the serial port, one will be lost.
What is the next best suggestion for queue'ing the DS information? I really don't want to go through the trouble of packetizing the serial data. Is there a way to use the queue functions on datasockets?
Thanks,
Jamie
04-10-2008 04:53 PM
04-11-2008 03:54 PM
04-11-2008 03:57 PM