I tested this using our Lookout software as the OPC server. Every time I run it, the control subscribes first and publishes second. Try the following:
1. Create and connect a single numeric tag to your OPC server.
2. Create a numeric control in a new VI with a sub/pub datasocket connection. Change the initial value to something other than zero.
3. For the diagram, place the numeric control in a while loop.
4. Run the VI, and you'll notice that the control changes is value to the OPC server's value.
If this works on the same machine, then this is most likely a problem with your code.
Regards,
Michael Shasteen
Applications Engineering
National Instruments
www.ni.com/ask
1-866-ASK-MY-NI