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

Pages: 1 2 [3] 4 5 6
31
Application Showcase / Re: Project Black Box
« on: August 19, 2016, 03:41:04 PM »
Ok I will work on getting it for you over the next couple of days!!

32
Support Questions / Re: Web Viewing
« on: August 19, 2016, 01:37:49 PM »
Not directly AHMI but using it between web and PLC

http://advancedhmi.com/forum/index.php?topic=1256.0

33
Application Showcase / Re: Project Black Box
« on: August 05, 2016, 12:20:31 PM »
Everything works perfect!! Can connect from any .net application!!! Last time i will post on this unless anyone wants the basic source code to the Black Box part of this!!

34
Tips & Tricks / Re: Basic Database Tutorial
« on: July 29, 2016, 06:30:55 AM »
Sorry got super busy. I will get back to this in about a week.

35
Open Discussion / Re: Adding drivers programatically
« on: July 22, 2016, 01:19:01 PM »
Something like this i would guess. Not an expert by any means.

    Dim CLX As New Drivers."DriverHere"

    Public Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        CLX = New Drivers."DriverHere"
        CLX.ReadModifyWriteTag()

    End Sub

Someone may correct me.

36
Open Discussion / Re: Adding drivers programatically
« on: July 22, 2016, 11:50:48 AM »
This is in C# but how I do it. And i am connecting to an OPC Server

        AdvancedHMIDrivers.OpcDaCom opc = new AdvancedHMIDrivers.OpcDaCom();
        string OPCServerConn = "OPCServer";

        public void SetDemandPoints(string SetPoint, int SetValue)
        {
            try
            {
                opc = new AdvancedHMIDrivers.OpcDaCom();
                opc.OPCServer = OPCServerConn;
                opc.Write(SetPoint, Convert.ToString(SetValue));
            }
            catch
            {
                Console.WriteLine("Error on SetDemandPoints");
            }
                   
        }

37
Support Questions / Re: Main container and sub-forms
« on: July 21, 2016, 08:30:07 AM »
Yea i do a lot of hard coding all day every day!! Just glad it worked and let me know if you have any other issues!!

Mike

38
Support Questions / Re: Main container and sub-forms
« on: July 21, 2016, 07:27:50 AM »
Should be able to close any forms in your split container before opening the form you want.

When you click your button to open a new form roll this code first

For each f as form in YourSplitContainer
f.close() or f.Hide()
next

And then your code to open your new form

I currently do not have any VB projects to test this on but i do use similar code to empty text boxes after someone completes a form.
let me know if this helps or if you need another solution.

Mike

39
Support Questions / Re: Main container and sub-forms
« on: July 20, 2016, 06:57:20 AM »
Thats what it would look like

40
Support Questions / Re: Main container and sub-forms
« on: July 20, 2016, 06:52:08 AM »
So you want to be able to open up one form on multiple forms all in an MDI format?

If yes then read on.

This is in C# but i am positive it can be done in VB.net

YourTab.TabPages.Add(YourTabPage);
                YourForm.Main msMain = new YourForm.Main();
                msMain.TopLevel = false;
                msMain.Dock = DockStyle.Fill;
                Splitter.Controls.Add(msMain);
                msMain.Show();
I used a split container to add the form as a control.
And to eliminate borders and stuff that can all be done in the form properties.

That is production code I use currently and it works perfect. I have a ShopStatus page that is shared with multiple tab's in an MDI project.

Let me know if you have any questions.


41
Tips & Tricks / Basic Database Tutorial
« on: July 18, 2016, 08:46:44 AM »
I have seen several posts on here about using a database or using CSV, Excel or Access and i thought i would try to help out a bit and see if i can get you guys up and running with MS SQL Server.

I am not a Youtuber!! I tend to juggle multiple projects all day everyday so i will just point you to some videos on installing MS SQL Server and some of the other basic stuff. I will attempt to make the AHMI videos you will need.

I do not use Entity for my database transactions. I am not saying it is good or bad just I just choose not to use it. I will post the class that i built and use in every project i create that will make for easy database transactions.

What I will cover-
1. Installation of MS SQL Server
2. Creating a Database and Tables
3.Basic SQL Statements
   a. Insert
   b. Select
   c. Update
   d. Delete
4. Adding a project to AHMI
5. Adding a connection/transaction class i wrote and use in every project
6. Using SQL Statements in AHMI
7. Using a Data table
8. Populate a datagrid

Get it installed!!

The video i decided to use if very detailed and easy to follow. The only thing is on the download page you will see a choice that will let you download and install both the Engine and SQL Server Management all in one and install them at the same time. Up to you. Make sure you make your SA password he shows you to set up something you can remember :) we will need it later on!!

https://www.youtube.com/watch?v=E_zFM7mzFUg

This next video there is no speaking but he does a very good job of explaining both ways to create a new database and table using Management Studio. Also you will see how to use a Select and Insert statment.

https://www.youtube.com/watch?v=OEpaCxu2SWk

Very in depth look at SELECT. The gentleman that put this tutorial up is an amazing instructor!!

https://www.youtube.com/watch?v=R9pXnHIFj_8&index=10&list=PL08903FB7ACA1C2FB

That should get you all started and i will find the rest of the intro videos and start working on the AHMI specific tutorials over the next week.

Hit me up with any questions or requests!!!

Have fun :)



If you have 4 hours to devote to learning SQL Server please watch this video
https://www.youtube.com/watch?v=u2huSNXLYUg



42
Tips & Tricks / Re: AdvancedHMI on a Raspberry Pi
« on: July 13, 2016, 10:54:44 AM »
Has anyone tried Windows 10 IoT on the Pi with AHMI?

43
Open Discussion / Re: Interest in Live How-To and Discussions
« on: July 13, 2016, 10:49:19 AM »
That would be great!!!

44
Application Showcase / Re: Project Black Box
« on: July 08, 2016, 12:36:08 PM »
First basic live test!!
Using MS SQL Server and Matrikon OPC.
Basic Console application Reads the Values and compares them with the Set Point Values in the DB and if they do not match it updates the OPC Value.

https://youtu.be/y03hmz6U6Ws


45
Application Showcase / Re: Project Black Box
« on: April 18, 2016, 07:01:39 AM »
Should be ok now.

Pages: 1 2 [3] 4 5 6