ÖÐÎÄÕªÒª
¡¡¡¡ÔÚÎÒÃǽøÐг¬¸ßѹÏÂÎïÖÊ´ÅÐÔÏà¹ØÊý¾Ý²âÁ¿µÄÓйØÊµÑéʱ£¬ÊµÑéÊý¾ÝµÄ²É¼¯ÊÇÆäÖÐ×îΪ¹Ø¼üµÄÒ»»·¡£¾¡¹Üµ¥Ò»µÄ¶ÔËøÏà·Å´óÆ÷ÒÇÆ÷½çÃæ½øÐвÙ×÷Ò²¿ÉÒԲɼ¯µ½ËùÐèÒªµÄÊý¾Ý£¬µ«ÔÚÒ»¶¨µÄʱ¼ä·¶Î§ÄÚ´óÁ¿ÇÒÈ«ÃæµØ²É¼¯Êý¾Ýµ¥¿¿¶ÔÒÇÆ÷½çÃæ½øÐвÙ×÷ÊÇÎÞ·¨ÊµÏֵġ£»ùÓÚÒÔÉÏÔÒò£¬ÎÒÃÇÐèÒªÑз¢Ò»ÖÖÄܹ»½øÐÐ×Ô¶¯²É¼¯¡¢×Ô¶¯·ÖÎöÊý¾Ý¡¢¸ß¾«¶È¡¢¸ß¹¤×÷ЧÂʵÄרÃÅÕë¶Ô³¬¸ßѹÏÂÎïÖÊ´ÅÐÔÏà¹ØÊý¾Ý²âÁ¿µÄ³Ì¿Ø½çÃæ¡£µ±È»£¬¹úÍâÒ²ÓÐÑз¢³öÏà¹ØµÄÈí¼þ£¬µ«ÊǺܶ๦Äܲ¢²»ÊÇÎÒÃÇËùÐèÒªµÄ£¬¶øÇÒÈí¼þÊÕ·Ñ£¬Òò¶ø²»ÈÝÒ׵õ½Íƹ㡣ËùÒÔÔõÑù×ÔÖ÷Ñз¢ÓÃÆðÀ´·½±ãÇÒÄÜ×¼È·È«Ãæ²âÁ¿ËùÐèʵÑé²ÎÊýµÄ³Ì¿Ø½çÃæÈí¼þ¾ÍÏÔµÃÓÈÎªÖØÒª¡£ÇÒͨ¹ýÔĶÁ±¾ÎÄ£¬¶ÁÕß¿ÉÒԲο¼±¾ÎÄËùÓ÷½·¨È¥×ÔÖ÷Ñз¢ËùÐèÆäËü³Ì¿Ø½çÃæÈí¼þ¡£
¡¡¡¡¶ÔÓÚÒÔÉÏËùÃèÊöµÄÇé¿ö£¬ÎÒÃÇÑз¢ÁË»ùÓÚ Visual Basic 6.0 µÄ³¬¸ßѹϲâ´Å³Ì¿Ø½çÃæÈí¼þ¡£Visual Basic 6.0 ¼ÈÄܹ»Í¨¹ý DLL Íê³É IO ¶Ë¿ÚµÄÊä³öÊäÈ빦ÄÜ£¬ÓÖÄܹ»¾ÓÉ API º¯Êý»ò MSComm ¿Ø¼þÀ´´ïµ½´®¿ÚͨÐŵÄÄ¿µÄ£¬¿ÉÒÔÇáÒ×µØÊµÏÖÏÔʾͼÏñµÄ¹¦ÄܺÍÊý¾ÝµÄ´æ´¢¹¦ÄÜ£¬ÇÒÄܹ»½«Êý¾Ý±£´æµ½ EXCEL µÈÈí¼þÖнøÐмòµ¥µÄÊý¾Ý´¦Àí£¬Òò¶øËüÊDZÊÕßÊ×Ñ¡µÄÓïÑÔ¿ª·¢»·¾³¡£ÎÒÃÇÑз¢µÄÈí¼þÊý¾Ý½ÏΪ¿É¿¿£¬ÇÒ²âÁ¿¾«¶È½Ï¸ß£¬²¢ÇÒÄܹ»Íê³ÉÊý¾ÝµÄ×Ô¶¯´¦Àí¡¢×Ô¶¯´æ´¢²¢ÄÜÔÚ EXCELÖлæÖƼòÒ×µÄÇúÏßͼµÈÈÎÎñ£¬´Ó¶ø¶ÔËù²âÊÔµÄÑùÆ·µÄ¸÷Ïî²ÎÊýÓÐÒ»¸ö½ÏÎªÈ«ÃæµÄÁ˽⣬Õâ¶ÔÓÚÎÒÃǽøÐкóÐøÊµÑéÊǷdz£±ØÒªµÄ¡£
¡¡¡¡±¾´Î¿ÎÌâÑо¿ÊÔ×Ű´ÕÕÈí¼þ¹¤³ÌµÄ±ê×¼À´½øÐзÖÎö¡¢×éÖ¯ºÍËùÐ蹦ÄܵÄʵÏÖ¡£µÚÒ»Õ¼òÒª½éÉÜÁËĿǰ³¬¸ßѹÏÂÎïÖÊ´ÅÐÔ²âÁ¿µÄÑз¢ÏÖ½±¼°±¾¿ÎÌâµÄÖ÷ÒªÑо¿ÄÚÈÝÓëÒâÒ壬µÚ¶þÕ·ÖÎöÁ˳¬¸ßѹϲâ´Å³Ì¿Ø½çÃæÑз¢µÄʵ¼ÊÐèÇ󣬵ÚÈýÕ½øÐÐÈí¼þ¸ÅÒªÉè¼Æ£¬²¢ÒÔ´ËΪ»ù´¡Ìá³ö³¬¸ßѹϲâ´Å³Ì¿Ø½çÃæµÄÑз¢Èí¼þµÄ»ù±¾¿ò¼Ü£ºÊý¾Ý²É¼¯²¿·ÖÒÔ¼°Êý¾Ý´¦Àí²¿·Ö¡£µÚËÄÕÂÖ÷ÒªÊÇ¶Ô VB6.0 ¼°´®¿ÚͨÐźÍËøÏà·Å´óÆ÷µÄÏà¹ØÖªÊ¶½øÐнéÉÜ£¬²¢¼òµ¥½²½âÈçºÎÔÚ VB ÖÐÌí¼Ó MSComm ¿Ø¼þ¼° EXCELÓ¦ÓᣵÚÎåÕ¶ÔÈí¼þÑз¢µÄÏêϸ¹ý³Ì¼°ÑéÖ¤½øÐйéÄÉÕûÀí£¬Í¨¹ý½çÃæÉè¼Æ¡¢´úÂë±àд¹æ·¶»¯½éÉÜ¡¢Èí¼þʵÏֵĹؼü¼¼Êõ½øÐнéÉÜ£¬½²ÊöÁËÈí¼þʹÓõķ½·¨¼°×¢ÒâÊÂÏ×îºó½øÐÐÒ»´ÎÊý¾Ý²É¼¯ÊµÑéÀ´ÑéÖ¤Èí¼þ¼Ü¹¹µÄºÏÀíÐÔºÍÈí¼þʹÓõÄÓÐЧÐÔ£¬²¢½øÐÐÉ豸Áªµ÷¡£±¾ÂÛÎÄ×îºóÊǶԴ˴ÎÑз¢¹¤×÷½øÐÐ×ܽᣬָ³öÓÉÓÚʱ¼ä¹ØÏµ²¢Î´À´µÃ¼°ÊµÏֵŦÄÜ£¬²¢¶Ô¸ÃÈí¼þµÄǰ¾°¼°ÆäÓ¦ÓÃÒâÒå½øÐÐÕ¹Íû¡£
¡¡¡¡±¾Èí¼þµÄÑз¢³É¹¦¿ÉÒÔ´ó´óÊ¡ÏÂÔÚʵÑé¹ý³ÌÖеÄÖØ¸´ÐÔ°´À͸¶³êʱ¼ä£¬²¢ÇÒÄÜÈ«ÃæÖ±¹ÛµØ¹Û²âµ½ÊµÑéËùÐèµÄ¸÷ÏîÊý¾Ý£¬Ìá¸ßÒÇÆ÷µÄÀûÓüÛÖµ£¬Ê¹ÎÒÃÇÄܹ»¸üÎªÈ«ÃæÖ±¹ÛÇÒЧÂʵؽøÐнÓÏÂÀ´µÄ³¬¸ßѹÏÂÎïÖÊ´ÅÐÔµÄÏà¹Ø²âÁ¿¡£Òò´Ë£¬Ñз¢±¾Èí¼þ¾ßÓÐÒ»¶¨µÄÀíÂÛÒâÒåÒÔ¼°Êµ¼ÊÓ¦ÓüÛÖµ¡£
¡¡¡¡¹Ø¼ü´Ê£º³¬¸ßѹ£¬VB£¬ËøÏà·Å´óÆ÷£¬Êý¾Ý²É¼¯£¬ÐÔÄܲâÊÔ
Abstract
¡¡¡¡When we are doing experiments about the related data of the magnetic in the condition of the ultra-high pressure, the collection of the experiment data plays one of the most important parts. Although we can collect the data we need only from operating the Phase-locked amplifier, only by operating the instrument can't collect data largely and totally. Based on these above, we need to research and development a programmable interface software which can collect and analyze data. high accuracy.
¡¡¡¡high efficiency and only for the collection of the material of magnetic in the condition of the ultra-high pressure. Of course, there are similar software abroad, but many features in the software are not that we need, and they are not free of charge, so they're not easy to be promoted. So how to development an convenient to use and comprehensive programmable interface software independently seems to be an important subject. Through reading this article, we can development other programmable interface software independently.
¡¡¡¡Based on these above, we develop a programmable interface software in the condition of the ultra-high pressure based on Visual Basic 6.0.Visual Basic 6.0 can complete the function of the input and output by using DLL, and it can do serial port communication through API functions or MSComm controls, it can display the images and storage data easily, and storage data to EXCEL and do some easy data processing, so it's the first choice of the language development environment. The software that we develop is reliable, accurate and automatic-saved, so this kind of software is necessary for our subsequent experiments.
¡¡¡¡In this topic research, we try to analyze, organize and realize the function that we need in the standard of the Software Engineering. The first chapter briefly introduces the recent progress of the measurement of the material of magnetic in ultra-high pressure and the mainly research content and significance of this topic. The second chapter analyzes the ultrahigh pressure under the actual demand of magnetic programmable interface development, the third chapter summary design software, and on this basis, we raise a basic framework of the software: data acquisition and data processing part. The fourth chapter mainly introduces the relevant knowledge of VB6.0, MSComm and Phase-locked amplifier. The fifth chapter summarized the detailed process of software development and validation, through standardizing the interface design and coding is introduced, the software implementation is introduced, the key techniques of about software use method and matters needing attention, finally we do an experiment to prove the rationality and effectiveness of the software, and do equipment alignment. At the end of this paper, we summarize the research and development, point out the function that we haven't had time to realize, and look forward to the prospects and application significance of this software.
¡¡¡¡The success of this software research and development can save much time in the experiment, and can also measure data roundly and intuitively. So, the research and development of the software has a certain theoretical significance and practical application value.
¡¡¡¡Keywords:VB, Phase-locked amplifier 7265, The data collection, The performance test
¡¡¡¡ÔÚÎÒÃÇÆ½Ê±×öÓг¬¸ßѹÏÂÎïÖÊ´ÅÐÔµÄÏà¹ØÊý¾Ý²âÁ¿µÄʵÑé¹ý³ÌÖУ¬Ó¦ÓõÄËøÏà·Å´óÆ÷½øÐдóÁ¿Êý¾Ý²É¼¯²¢¶ÔÊý¾Ý½øÐзÖÎöÊDz»¿ÉȱÉÙµÄÒ»¸ö»·½Ú¡£ÒòΪֻÓжԴóÁ¿Êý¾Ý½øÐзÖÎö£¬²ÅÄÜÈ·¶¨ÊÇ·ñ³É¹¦µÄ¹ýÂ˵ôÐí¶àµÄ²»±ØÒªµÄÐźŸÉÈÅ£¬´Ó¶øµÃµ½½ÏΪÕýÈ·µÄÊý¾Ý¡£È»¶øÈç¹û½ö½öÊǶÔÒÇÆ÷Ãæ°å½øÐвÙ×÷£¬²É¼¯Êý¾Ý½ÏΪÂé·³£¬ÇÒÓÉÓÚʱ¼ä¼ä¸ô²»Í¬£¬²»ÄÜÓÐЧ°ÑÎղɼ¯µ½µÄÊý¾Ý¼äµÄ¹æÂÉ¡£µ±È»»áÓÐÉÙ²¿·ÖÓû§×ÔÐÐÑз¢ÁËÔÚµçÄÔÉÏ¿ÉÒÔʹÓõij̿ؽçÃæ£¬²»¹ýÓÉÓÚÖÖÖÖÔÒò²¢Î´ÆÕ¼°£¬»òÕß²»Äܹ»È«ÃæµØÕ¹Ê¾ËùÓвɼ¯¹¦ÄÜ¡£
¡¡¡¡Òò´Ë£¬±¾ÎÄÒÔËøÏà·Å´óÆ÷ 7265 ΪÑз¢¶ÔÏó£¬×ܽáÁËǰÈ˵ľÑ飬²É¼¯»ù±¾ÉÏΪ´ó¼ÒËùÊìÖªµÄ Visual Basic 6.0 Èí¼þ£¬»ý¼«¿ªÕ¹¶Ô³¬¸ßѹÏÂÎïÖÊ´ÅÐÔµÄÏà¹ØÊý¾Ý²âÁ¿³Ì¿Ø½çÃæµÄÑз¢£¬ÈöÁÕßÄܹ»Ö±¹ÛÃ÷Á˵ؿ´µ½±ÊÕßµÄÑз¢¹ý³Ì£¬ÕâÑù½«À´¶ÁÕßÔÚÑз¢ÆäËüÒÇÆ÷µÄ³Ì¿Ø½çÃæÊ±£¬¿ÉÒÔÓɱ¾ÎÄÆðµ½Ò»¸ö½è¼øµÄ×÷Óá£Òò´Ë£¬±¾ÎÄËäȻּÔÚÑз¢³¬¸ßѹϵIJâ´Å³Ì¿Ø½çÃæ£¬µ«¶ÔÓÚʹÓÃËøÏà·Å´óÆ÷½øÐпÆÑ§Ñо¿µÄ¶ÁÕßÃÇ£¬Ò²¾ßÓнϴóµÄÏÖʵÒâÒå¡£
¡¡¡¡³¬¸ßѹϲâ´Å³Ì¿Ø½çÃæ¿ª·¢£º
Èí¼þÖ÷½çÃæ
´®¿ÚÉ趨½çÃæ
Ò»¼üÉ趨½çÃæ
ÐźÅͨµÀÉèÖýçÃæ
²Î¿¼Í¨µÀÉèÖýçÃæ
Ŀ ¼
¡¡¡¡Òý ÑÔ
¡¡¡¡µÚ 1 Õ ¸ÅÊö
¡¡¡¡¡¡¡¡1.1 ³¬¸ßѹÏÂÎïÖÊ´ÅÐÔ²âÁ¿µÄÑз¢ÏÖ×´
¡¡¡¡¡¡¡¡1.2 ±¾¿ÎÌâµÄÖ÷ÒªÑо¿ÄÚÈÝÓëÒâÒå
¡¡¡¡µÚ 2 Õ Èí¼þÑз¢ÐèÇó·ÖÎö
¡¡¡¡¡¡¡¡2.1 ÎÊÌâµÄÌá³ö
¡¡¡¡¡¡¡¡2.2 Èí¼þÑз¢¹¦ÄÜÒªÇó
¡¡¡¡¡¡¡¡2.3 Èí¼þÊý¾ÝÁ÷³Ì·ÖÎö
¡¡¡¡µÚ 3 Õ Èí¼þ¸ÅÒªÉè¼Æ
¡¡¡¡¡¡¡¡3.1 ×ÜÌåÉè¼Æ
¡¡¡¡¡¡¡¡¡¡¡¡3.1.1 Ñз¢Èí¼þµÄ¹¹³É
¡¡¡¡¡¡¡¡¡¡¡¡3.1.2 Èí¼þÑз¢µÄ½á¹¹Ê¾Òâͼ
¡¡¡¡¡¡¡¡3.2 Êý¾Ý²É¼¯²¿·ÖÉè¼Æ
¡¡¡¡¡¡¡¡3.3 Êý¾Ý´¦Àí²¿·ÖÉè¼Æ
¡¡¡¡µÚ 4 Õ VB¡¢´®¿ÚͨÐÅÓëËøÏà·Å´óÆ÷
¡¡¡¡¡¡¡¡4.1 VISUAL BASIC 6.0 µÄÌØµãÒÔ¼°¹¦ÄÜ
¡¡¡¡¡¡¡¡4.2 MSCOMM ¿Ø¼þ½éÉÜ
¡¡¡¡¡¡¡¡4.3 ËøÏà·Å´óÆ÷¼òÒª½éÉÜ
¡¡¡¡µÚ 5 Õ Èí¼þÑз¢Á÷³Ì
¡¡¡¡¡¡¡¡5.1 Èí¼þ½çÃæÉè¼Æ
¡¡¡¡¡¡¡¡¡¡¡¡5.1.1 Èí¼þÖ÷½çÃæµÄÉè¼Æ
¡¡¡¡¡¡¡¡¡¡¡¡5.1.2 ´®¿ÚÉèÖýçÃæÉèÖÃ
¡¡¡¡¡¡¡¡¡¡¡¡5.1.3 Ò»¼üÉ趨½çÃæÉèÖÃ
¡¡¡¡¡¡¡¡¡¡¡¡5.1.4 ÆäËü½çÃæÉèÖÃ
¡¡¡¡¡¡¡¡5.2 ´úÂë±àд¹æ·¶»¯
¡¡¡¡¡¡¡¡5.3 Èí¼þʵÏֵĹؼü¼¼Êõ
¡¡¡¡¡¡¡¡¡¡¡¡5.3.1 ͨ¹ý MSComm ¿Ø¼þʵÏÖÊý¾ÝÊÕ·¢
¡¡¡¡¡¡¡¡¡¡¡¡5.3.2 ÑÓʱ³ÌÐòÄ£¿éµÄÉ趨
¡¡¡¡¡¡¡¡¡¡¡¡5.3.3 ½« VB Óë EXCEL ¹ØÁª
¡¡¡¡¡¡¡¡5.4 Èí¼þʹÓÃ×¢ÒâÊÂÏî
¡¡¡¡¡¡¡¡5.5 ½øÐÐÒ»´ÎÊý¾Ý²É¼¯¼°´¦ÀíʵÑé
¡¡¡¡¡¡¡¡5.6 Èí¼þÔËÐл·¾³µÄµ÷ÊÔ
¡¡¡¡µÚ 6 Õ Ñз¢¹ý³Ì×ܽἰչÍû
¡¡¡¡¡¡¡¡6.1 ¹ý³Ì×ܽá
¡¡¡¡¡¡¡¡6.2 ¹¤×÷Õ¹Íû
¡¡¡¡²Î¿¼ÎÄÏ×
¡¡¡¡¸½ ¼
¡¡¡¡Ö л
£¨ÈçÄúÐèÒª²é¿´±¾Æª±ÏÒµÉè¼ÆÈ«ÎÄ£¬ÇëÄúÁªÏµ¿Í·þË÷È¡£©