Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

Writing to variables - by: SolutionNow

$
0
0
Hello,

We're having some problems writing to variables on the machine. Here is the piece of code that isn't working correctly at the moment:
            String sServer = null, sNodo = null, sValore = null;
 
            sServer = production_ResourceOPCNodeDataGridView.Rows[production_ResourceOPCNodeDataGridView.CurrentRow.Index].Cells[4].Value.ToString();
            sNodo = production_ResourceOPCNodeDataGridView.Rows[production_ResourceOPCNodeDataGridView.CurrentRow.Index].Cells[5].Value.ToString();
            sValore = production_ResourceOPCNodeDataGridView.Rows[production_ResourceOPCNodeDataGridView.CurrentRow.Index].Cells[7].Value.ToString();
 
            easyUAClient1.WriteValue(sServer, sNodo, sValore);
            //easyUAClient1.CallMethod() ?????
        }

It seems to us we have two different problems, but it is possible these two problems have a single cause.
The first problem is that the WriteValue() method is writing the value to the node correctly on the server, but it is not writing the the variable on the machine.

For the second problem, as per a previous conversation we had we downloaded the program UAExpert. These are the nodes UAExpert found on the server:

[File Attachment: UA_Expert.jpg]

and these are the nodes we currently see through the uaDataDialog:

[File Attachment: uaDataDialog.jpg]

What do we need to do see the methods UAExpert found that the uaDataDialog isn't finding?

Thank you

Viewing all articles
Browse latest Browse all 1794

Trending Articles