Recent Posts

Pages: [1] 2 3 ... 10
1
Support Questions / Re: Hide number field from keypad
« Last post by anthony92 on Today at 03:38:58 PM »
Here is your requested log. There is no line number since it is running the compiled version. This error does not happen when running in VS.

Code: [Select]
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Conversion from string "" to type 'Double' is not valid. ---> System.FormatException: Input string was not in a correct format.
   at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
   --- End of inner exception stack trace ---
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value)
   at MfgControl.AdvancedHMI.Controls.Keypad.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1637.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
VRS01
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1
    CodeBase: file:///C:/Projects/VRSAdvancedHMI/AdvancedHMI/bin/Release/VRS01.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1637.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1638.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
MfgControl.AdvancedHMI.Controls
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Projects/VRSAdvancedHMI/AdvancedHMI/bin/Release/MfgControl.AdvancedHMI.Controls.DLL
----------------------------------------
AdvancedHMIControls
    Assembly Version: 3.9.9.17
    Win32 Version: 3.9.9.17
    CodeBase: file:///C:/Projects/VRSAdvancedHMI/AdvancedHMI/bin/Release/AdvancedHMIControls.DLL
----------------------------------------
AdvancedHMIDrivers
    Assembly Version: 3.9.9.17
    Win32 Version: 3.9.9.17
    CodeBase: file:///C:/Projects/VRSAdvancedHMI/AdvancedHMI/bin/Release/AdvancedHMIDrivers.DLL
----------------------------------------
MfgControl.AdvancedHMI.Drivers
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Projects/VRSAdvancedHMI/AdvancedHMI/bin/Release/MfgControl.AdvancedHMI.Drivers.DLL
----------------------------------------
System.Windows.Forms.DataVisualization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1636.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


2
Additional Components / Re: KeypadPopUp as a button control
« Last post by Godra on Today at 09:31:20 AM »
For those who would like to experiment and try adding Keypad feature to AHMI controls that don't have it, attached is the text file with instructions.

This was tested with the WaterPump control and it worked fine (if you do find any bug then report it back).

You might also try replacing the existing Region within the AHMI controls which have Keypad, to possibly use new features.
3
Additional Components / Re: KeypadPopUp as a button control
« Last post by Godra on Today at 08:59:19 AM »
The control attached in this post was tested with AHMI version 3.99w but might work with some previous versions as well.

It now includes the PasswordChar feature.
4
Support Questions / Re: Hide number field from keypad
« Last post by Godra on Today at 07:41:21 AM »
You could try it in a different way (as it is usually inside the AHMI controls):

Code: [Select]
    Private WithEvents k As MfgControl.AdvancedHMI.Controls.IKeyboard
    Private Sub Keypad_ButtonClick(ByVal sender As Object, ByVal e As MfgControl.AdvancedHMI.Controls.KeyPadEventArgs) Handles k.ButtonClick
        If e.Key = "Quit" Then
            k.Visible = False
        ElseIf e.Key = "Enter" Then
            If k.Value IsNot Nothing OrElse (String.Compare(k.Value, "") <> 0) Then
                Try
                    ModbusTCPCom1.Write("40001", k.Value)
                Catch ex As Exception
                End Try
            End If
            k.Visible = False
        End If
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        k = New MfgControl.AdvancedHMI.Controls.Keypad(300)
        k.StartPosition = FormStartPosition.CenterScreen
        k.Text = "Password"
        k.ForeColor = Color.WhiteSmoke
        k.Font = New Font("Arial", 18)
        k.PassWordChar = True
        k.Visible = True
    End Sub

This example is calling the Keypad from within a button's click event.

You cannot specify all the properties (like MinValue or MaxValue...).

Another alternative would be to experiment with attachment from the last post in this topic (try to apply it to the control which you are using):

http://advancedhmi.com/forum/index.php?topic=1438.0
5
I have noticed after an hour or so the Time is very slow to update (over 5 minutes out). I am using the DateTimeDisplay component. I do have a number of Charts (10) on the same page but I am not sure if this is related.

Regards

Paul
6
Support Questions / Re: SelectorSwitch graphics alignment
« Last post by EE_Kraig on Today at 06:00:57 AM »
Do the SelectorSwitches appear to be a few pixels higher on the legend plate than the button?

Yes
7
Support Questions / Re: Hide number field from keypad
« Last post by Archie on Today at 04:55:23 AM »
If you scroll over and possibly down in the details box, you will find the line number where the exception occurs.
8
Support Questions / Re: Basicdatalogger2 not recording in real time
« Last post by rmac on March 29, 2017, 06:50:54 PM »
Archie,
I added a few lines to the basicdatalogger and it does work now with the True/False values from N7:0/x in the Collection List.
See below.
THANK YOU VERY MUCH FOR YOUR PATIENCE!!!

For Each item In PLCAddressValueItems
                    If item.ScaleFactor = 1 Then
                        If item.LastValue = "True" Or item.LastValue = "False" Then
                            StringToWrite &= "," & item.LastValue
                        Else
                            StringToWrite &= "," & CDbl(item.LastValue).ToString("0.0")
                        End If

                    Else
                            Try
                            StringToWrite &= "," & (item.LastValue * item.ScaleFactor)
                        Catch ex As Exception
                            StringToWrite &= "," & "INVALID-Check scale factor-" & item.LastValue
                        End Try
                    End If
Next
9
Support Questions / Re: Hide number field from keypad
« Last post by anthony92 on March 29, 2017, 06:41:38 PM »
It doesn't provide much data other than that it is failing on the conversion from string to double.

I'm not sure as to exactly why it is not being caught when run as an exe rather than the vhost.exe.
10
Support Questions / Re: Basicdatalogger2 not recording in real time
« Last post by rmac on March 29, 2017, 05:46:25 PM »
In the datalogger I replaced this line :

StringToWrite &= "," & CDbl(item.LastValue).ToString("0.0")

with the original one:

StringToWrite &= "," & item.LastValue

And everything works OK.
Something needs to be added to the first line to avoid the True/False values from being treated as numbers, if I want to keep my numeric values with just one decimal point.

Pages: [1] 2 3 ... 10