Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - lonconao

Pages: [1]
1
Hello guys

Waiting for you to be well, I write to ask for your help.

I have been doing some tests for a program that I am doing based on Arduino and I have the following problem

When using Datasubscriber 2 with the DataChange event manipulator it seems to me that the values ​​change only once, although according to the microcontroller screen is constantly changing. I use a label to corroborate if it is true and apparently it is so. I have also used the system debugger and the same. I attach the code and some screenshots waiting for some help from you. I can not know if it is a problem of the label or it is that the values ​​are updated only once.

Code: [Select]
    Private Sub DataSubscriber21_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber21.DataChanged

        Dim p(12) As Double

        If e.Values IsNot Nothing Then
            Me.Label5.Text = ""
            For i = 0 To 11
                p(i) &= CType(e.Values(i), Double) / 10.0
                Me.Label5.Text &= p(i) & Environment.NewLine
                'Me.Label5.Refresh()
            Next
        End If
    End Sub

https://ibb.co/PDfztWQ
https://ibb.co/XV7GHqZ
https://ibb.co/jTHNhGs

2
Support Questions / AdvancedHMI on vscode?
« on: November 12, 2020, 11:03:11 AM »
Good day for all

I have a noob question

Is possible coding, test and build ahmi on vscode? I got used to programming without using WinForms.

Thanks for your responses

3
Support Questions / Can't change com port via combobox on Modbus driver
« on: September 28, 2020, 10:51:59 PM »
Good day
I have a problem setting com port on modbus rtu driver. I use the next code

Code: [Select]
Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim ports As String() = SerialPort.GetPortNames()
        Dim port As String
        For Each port In ports
            ComboBox1.Items.Add(port)
        Next port
    End Sub

Code: [Select]
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim MBDriver As New AdvancedHMIDrivers.ModbusRTUCom

        MBDriver.PortName = ComboBox1.SelectedItem()
        MBDriver.BaudRate = 9600
        MBDriver.StationAddress = 1

        MsgBox("OK", MsgBoxStyle.Information, MBDriver.PortName)

    End Sub

COM ports are listed on a combobox correctly, but, when i try to apply selected com port to driver, it doesn't change. In AHMI v3.99y works perfectly. Now i using AHMI 3.99xR1

Any suggestion?

Additional


4
Support Questions / Problems with Mono Drivers and VS2017
« on: February 20, 2019, 12:03:45 PM »
Hello to everyone

I have a problem with mono drivers uploaded in this forum and vs2017.
I followed all steps in this post

Quote
https://www.advancedhmi.com/forum/index.php?topic=1975.0

But, when i try to add MonoRTUCom from toolbox i get following error (attached)



Can someone help me please? I'm a novice user on Visual Studio but I've never had problems using AHMI with windows os or win components

greetings from Chile



Pages: [1]