Hi bac81362,
I answered your question in the E-Mail I sent you. For the record, here's the content of the E-Mail.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There are several things we need to check.
1. Can you read the values from your PLC registers. Use Server Explorer (under Start->Program Files->National Instruments->Server Explorer) or use the quick client RSLinx provides to connect to the registers to see if you can read any values.
2. Check if your shared variables are reading any values from the OPC server. Open up Variable Manager (Start->Program Files->National Instruments->Variable Manager->Variable Manager) to see what shared variable libraries are deployed on your computer, clean out the ones that are not in use and make sure the shared variable libraries are deployed properly. Then you can drag and drop your shared variable to the Watched Variables section to see if the values are being read correctly.
3. Create an empty VI, and put down Use Data Socket Select URL VI. Create indicators to show the error cluster and the URL output. Run the VI to make sure data socket is working properly and that you can select the desired URL.
4. Create a Shared Variable Constant, and browse to the approperiate shared variable. Connect it to a Datasocket Open, and do a Datasocket Read and then use Datasocket Close when finished using the VI. Check if you are reading the correct value.
Please let me know if anything fails during these steps, where it fails and what error message you are getting.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hope this information helps! Please reply to this thread or my E-Mail to follow up with this issue.
Thanks!
Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support