Thanks for the response. Yes I have gotten past that step. FYI, I am using an ADS Communication library from Beckhoff Automation in .NET Framework 1.1; LabVIEW 7.1.
Link to
ADS Assembly. Please contact Beckhoff for a license to their library.
Here are the steps that I am testing with separate VI's:
0. Verify hardware constructor: Create Client and call a method to open a remote IO connection (Connect).
==> OK, no error
1. Verify method Client.Read works after connection.
==> Fails with error 1172;
Error.Source indicates that a reference does not refer to a valid object. The only reference in the Read me
thod refers to a stream class, AdsStream.
In Step 1, I construct the AdsStream class (with a length parameter in the constructor) and pass the refnum to the Read method. The read method returns the 1172 error. No errors are returned by the AdsStream constructor.
I have verified that I have the correct .NET assembly in my working directory. I have selected the proper constructor for each object.
I have a deadline of Friday to resolve this issue and appreciate your assistance. You can also contact me by
E
-MailIf responding by email, please use a subject of "SR# 624113" so my email filters will correctly sort it.