Whenever a DataSocket item is created, there is a default value assigned to it. When you execute a Read function, that default value is returned. To force the DataSocket Read to wait for a new value from a DataSocket Write, you need to do the following:
- After the DataSocket Open function in your block diagram, perfom a Datasocket Read. This will read the default value that was assigned to the DataSocket, which you can ignore.
- Place a DataSocket Read where you want to wait for a value from the write. Be sure that you wire a TRUE into wait for updated value (T) terminal. If you wire in a false, it will ignore the timeout terminal. So now the Read will wait for a new value to update the DataSocket.