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 - brian3472

Pages: [1]
1
Support Questions / Multistate Selector - System.OutOfMemoryException
« on: November 14, 2019, 04:12:13 PM »
I'm using a Multi-State Selector which works fine until I change the SelectedStateBackColor to any color other than the default of Maroon. I start the app and get a System.OutOfMemoryException: "Out of Memory"' error. The copied details are down below and I also attached a PDF screenshot. A similar issue was reported repaired in an earlier post.

Visual Studio 2019 16.3.7
AdvancedHMI v399xR1
Win10 Pro 10.0.18362 Build 18362

----------------------
System.OutOfMemoryException
  HResult=0x8007000E
  Message=Out of memory.
  Source=System.Drawing
  StackTrace:
   at System.Drawing.Drawing2D.LinearGradientBrush..ctor(Point point1, Point point2, Color color1, Color color2)
   at MfgControl.AdvancedHMI.Controls.MultiStateIndicator.set_SelectedStateBackColor(Color value)
   at MfgControl.AdvancedHMI.MainForm.InitializeComponent() in C:\Users\bharrington\Downloads\AdvancedHMI\AdvancedHMI\MainForm.Designer.vb:line 351
   at MfgControl.AdvancedHMI.MainForm..ctor()
----------------------

2
Support Questions / Modbus RTU - Error Writing Unsigned 16 bit integer
« on: October 30, 2019, 09:52:55 PM »
I've just started working with Advanced HMI today and have made some progress then ran into this issue. I have device I'm communicating with using the Modbus RTU driver. It's not a PLC but a custom controller supporting Modbus RTU over RS-485. For one function I need to write an unsigned value of 65280 to holding register 40101. I've tested this in Modbus Poll without any issues. I setup a basic label with the register 40101 to allow me to write any value I choose. When I run the panel and attempt to write this value 65280 or 0xFF00 I get an error reporting an overflow from the basic label. It seems I can write any signed 16bit value to this register but not an unsigned. I'm hoping I'm just missing something in setting up the register or value. Any help is greatly appreciated!

Pages: [1]