Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Writing PHP Error

More
30 May 2016 16:09 #4075 by support
Replied by support on topic Writing PHP Error
Maybe because you have use $client instead of $Client ? AFAIK, variable names are case sensitive in PHP.

Please Log in or Create an account to join the conversation.

More
30 May 2016 15:56 #4074 by pburgos
Writing PHP Error was created by pburgos
According to an example in another post i have the following code:

<html>
<head><t-itle>OPC</title></head>
<body>
<?php
// Create EasyOPC-DA component
$Client = new COM("OpcLabs.EasyOpc.DataAccess.EasyDAClient");

// Read item value and display it
print $Client->ReadItemValue("","Kepware.KEPServerEX.V5","Test.My_device.Tag1");
print $client->WriteItemValue("","Kepware.KEPServerEX.V5","Test.My_device.Tag1",1);
?>
</body>
</html>

I can write to the tag "Tag1" Direct from kepware, but when trying from the code above it returns this error: Fatal error: Call to a member function WriteItemValue() on null

Any ideas?

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.044 seconds