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