Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. DLMSDirector Code. Read Value By Logical Name

DLMSDirector code. read value by logical name

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By jediace , 26 March, 2019
Forums
DLMSDirector

Hi,
I try to modify code DLMSDirector in c#.

In MainForm.cs inside DeviceGb (groupbox) i have created a label (label3).
how can I associate this label with a registry value?

example i have this value in object type "register":
Logical Name "1.1.2.8.0.255"
Value=1234567,6

is there a simple function, example value=ReadValue("1.1.2.8.0.255") in some class?
And how can I use it in MainForm?

I replied the "read" Command of the menu and called it test. Can I change this function in any way for read my value?

Thx!!

private void testToolStripMenuItem_Click(object sender, EventArgs e)
{
if (tabControl1.SelectedIndex == 0)
{
//Set focus to the tree or Read count do not updated.
this.ObjectTree.Focus();
if (this.ObjectTree.SelectedNode != null)
{
TransactionWork = new GXAsyncWork(this, OnAsyncStateChange, Read, OnError, null, new object[] { this.ObjectTree.SelectedNode.Tag, SelectedView });
TransactionWork.Start();
}

}

}

Profile picture for user Kurumi

Kurumi

7 years 2 months ago

Hi Jediace,

Hi Jediace,

You should read the association view. After that, you can see all the objects in the tree.
If you do your changes, your implementation is custom implementation and it's hard to update to the new versions.

BR,

Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin