Ok, so I'm trying to get advanced HMI working with rs emulate 500 read the document about how to set everything up and have all the ports and settings as described. Everytime that I add the DF1 driver to my HMI build I get this error.
System.InvalidOperationException was unhandled
Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object."
Source="AdvancedHMI"
StackTrace:
at MfgControl.AdvancedHMI.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at MfgControl.AdvancedHMI.My.MyProject.MyForms.get_MainForm()
at MfgControl.AdvancedHMI.My.MyApplication.OnCreateMainForm() in C:\advancedhmi\AdvancedHMI\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at MfgControl.AdvancedHMI.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.NullReferenceException
Message="Object reference not set to an instance of an object."
Source="AdvancedHMI"
StackTrace:
at MfgControl.AdvancedHMI.DF1Comm.set_BaudRate(String value) in C:\advancedhmi\AdvancedHMI\Drivers\DF1Comm.vb:line 105
at MfgControl.AdvancedHMI.MainForm.InitializeComponent() in C:\advancedhmi\AdvancedHMI\MainForm.Designer.vb:line 56
at MfgControl.AdvancedHMI.MainForm..ctor()
InnerException:
This looks to be tied to that com driver because when i leave that out and add another driver it will work just fine, but I am unsure how to fix it. Any help would be greatly appreciated from this beginner.