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.


Messages - moxleyh2

Pages: [1]
1
Support Questions / Displaying a prerecorded video in advanced hmi
« on: January 17, 2023, 11:10:50 AM »
Hey, does anyone know if its possible to display a video in advanced hmi, and if thats possible could you display different videos depending on plc output? I'm trying to display a different short video depending on what button I press.

2
That worked, thank you so much!

3
Yes I included it.

Code: [Select]
Private Sub DataSubscriber21_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber21.DataChanged
        MyStringLabel.Text = ""
        For i = 0 To e.Values.Count - 1
            MyStringLabel.Text &= Convert.ToChar(e.Values(i))
        Next
    End Sub

4
Now the program is throwing this error message at me.


  Message=String must be exactly one character long.
  Source=mscorlib
  StackTrace:
   at System.Convert.ToChar(String value, IFormatProvider provider)
   at System.Convert.ToChar(String value)
   
  This exception was originally thrown at this call stack:
    [External Code]
    MfgControl.AdvancedHMI.MainForm.DataSubscriber21_DataChanged(Object, MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs) in MainForm.vb
    AdvancedHMIControls.DataSubscriber2.DataChangedSync(Object) in DataSubscriber2.vb

5
Thanks for the response! I've tried the solution but the build keeps failing. It says that events is not a part of of Event.Args. Do I need to change these values in the code you sent me? Here is how I have the code at the end

Private Sub MyStringLabel_Click(sender As Object, e As EventArgs) Handles MyStringLabel.Click
        For i = 0 To e.Values.Count - 1
            MyStringLabel.Text &= Convert.ToChar(e.Values(i))
        Next
    End Sub
End Class

6
I'm trying to output what my barcode reader sends to the PLC on the display of advanced HMI. Currently the plc recieved the barcode string as a series of sints with each sint being a letter or number in ascii. What tool should I add to my hmi program to display this barcode?

7
Support Questions / Image display by value but for gifs
« on: January 16, 2023, 12:14:19 PM »
Hello, is there currently any function to display an gif on my hmi. I want to use a bit in my plc to play a gif on my hmi based on an outcome. I know I can use image display by value for pngs but I specifically want something animated.

Pages: [1]