Welcome to Chinese Agricultural Science Bulletin,

Chinese Agricultural Science Bulletin ›› 2012, Vol. 28 ›› Issue (6): 262-268.

• 23 • Previous Articles     Next Articles

Hybrid Programming with MATLAB and VB in Building Visual Simulation Model for Thermal Environment in Chinese Solar Greenhouse

  

  • Received:2011-08-12 Revised:2011-11-18 Online:2012-02-25 Published:2012-02-25

Abstract:

The objective of this study was to find a hybrid programming method with VB and MATLAB, which could achieve visual simulation model software for thermal environment in Chinese solar greenhouse. The application of MATLAB and VB in model was studied based on COM (component object module) method. M. function file was written by MATLAB, which could solve engineering calculations and image graphics of model. M. function file was transferred to be components which could be called independently after compilation successfully. The main program file was written by VB which can supply good human-machine interface. After parameters were given in main program, COM component was called to do calculation and drawing of model. Hybrid programming with MATLAB and VB was achieved by COM component method. A visual model of thermal environment was established by hybrid programming, which could predict the temperature change by giving outside weather conditions, type of greenhouse structure, thermal properties and other parameters.