How to add Hardware acquisition interface in form++ Open source configuration platform

Source: Internet
Author: User
Tags vector graphics library

E-form++ is a highly recommended high-quality open source C + + vector graphics Library, C + + programming is extremely difficult, mainly because there is no very professional C + + Infrastructure Library. The appearance of e-form++ to some extent fills the void. is the necessary choice for the development of industrial control, monitoring, modeling and simulation applications.

The following is a description of how to add a custom interface when e-form++ develops an industrial configuration platform Hmibuilder Evaluation:

How to connect hardware data to a project developed by Hmibuilder

1, open the HMIDATADLL.DSW project in VC + +.

2. Cover the following functions:

void Hmigendata (const CString &strvarname, const int &nvarid, const int &nvaluetype, double &dvalue)

{

Dvalue = RND.RANDM () * 100;

}

3, in this function, can be passed the parameters strvarname, Nvarid or Nvaluetype, etc., to determine the current dvalue corresponding variable name or ID, you can write your own hardware data acquisition value to replace. Like what:

void Hmigendata (const CString &strvarname, const int &nvarid, const int &nvaluetype, double &dvalue)

{

if (Strvarname = = _t ("var1"))
{

Dvalue= the first value of the acquisition;

}
else if (...)
{

.....

}

}

4, after the completion of the modification, in VC + + compiled this DLL library file.

5. Use this HMIDataDll.dll file to replace the same DLL file in the folder in the project you are designing with Hmibuilder. The simplest way to do this is: in Toolbox bar on the left side of Hmibuilder, click Open Project folder to replace the original HMIDataDll.dll file with the new HMIDataDll.dll in the popup window. Such as:

Details of the open source configuration platform for e-form++ can be accessed via the following links:

Http://www.ucancode.com/HMI_TOOLKIT_PLATFORM_SCADA_REAL_TIME_CONTROL_SOFTWARE.htm

Technical Support qq:77522448

Technical Support MSN: [email protected]

Technical Support Email: [email protected]

How to add Hardware acquisition interface in form++ Open source configuration platform

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.