10-10-2008 11:23 AM
My original URL was:
\\192.168.0.9\PowerUnit (HMI)\test_var
This did not generate an error in my DS Write and also the DS Open call was generating a valid refnum
I finally realized that I needed the URL to be:
\\192.168.0.9\PowerUnit (HMI)\'test_var'
and then everything started working correctly.
I was just wondering why the DS Open was generating what looked like a valid refnum and why the
subsequence DS Write did not generate an error?
10-13-2008
12:05 PM
- last edited on
04-02-2025
04:09 PM
by
Content Cleaner
sachsm,
I have found a KB for you that just shows the simple way to communicate with the DS API, but you seem to already know that.
How Do I Read/Write to a Shared Variable with the DataSocket API?
It seems that there are one of two options that are possible. Either you have two different shared variables with the names of : test_var AND 'test_var' and your variable with the name of test_var is just not behaving as expected.
Or, the ItemName: test_var, which is passed as the ItemID along with the AccessPath can not be distinguished as such, and is not going to the desired variable. Hopefully this helps you some!