针对某大型光电测控设备的中央控制台所面对的数据处理任务,提出了如何利用共用 体和位域建立数据平台的程序设计方法。介绍了大型光电测控设备的结构,分析了中央控制台的数据处理任务和数据流,并详细介绍了具体的设计方法。实践证明,该设计占用内存最小、程序运行速度快、便于系统升级和维护,可以满足设计要求,具有解决同类问题的通用性。 关键词:数据平台;工程应用;C++ Abstract: Aiming at the data processing task in the central console of a certain large-scale equipment for photo-electronic measure, a programming method about how to establish data plat form using the Bit Field and Union was discussed. Configuration of the large-scale equipment for photo-electronic measure was introduced. The data processing and the data stream of the central console was analyzed . The programming method was detailed introduced. Practice shows that, this method has minimal memory required which makes the program run faster, and it was good at progressing and maintenance also. Therefore, the method can meets the design requirements and can solves the same problems. Keywords: Data plat form; Engineering application; C++