针对电磁检测、电能质量检测应用领域中,大量传感器或参数需要实时检测处理的问题,对检测过程中采样时刻的设定、检测通道的选择、采样速率的设定、检测精度、数据处理能力进行了分析研究,对采样方式、控制策略、系统运行效率等进行了总结。提出了一种以DSP为主机,FPGA为从机的双CPU硬件结构,并将其应用到了检测系统的硬件设计中。系统中通过FPGA完成了数据采集相关的通道选择,采样时刻、采样速率设定等工作;通过DSP完成了工作参数配置,检测数据处理,以及与上位机通讯等工作;通过工作分工建立了控制主机与检测通道、采样时刻、检测数据之间的联系,实现了数据的采集、存储、处理及显示。研究结果表明,该双CPU结构的检测系统具有检测通道选择、采样时刻控制灵活、检测精度高、数据处理方便的优点。
Aiming at the problem of detecting and processing a lot of sensors and parameters in field like electromagnetic detection and power quality detection,some studies in detecting channels' selection,the sampling rate setting,detection accuracy,sampling time setting and the capability in data processing was given. Through the conclusion of sampling method,control strategy and operating efficiency,an architecture of Dual-CPU in DSP and FPGA was proposed in the hardware design of detection systems. In the system,FPGA completed data acquisition related parameters' control like channels' selection,sampling time and rate setting,but parameters' configuration,detected data's processing,communication with hoster and so on were completed by DSP. The relationship between control hoster,detection channels,detection time and detection data was established based on work specialization. Data collection,storage,processing and display were realized through this system. The results indicate that the Dual-CPU system is flexible in detecting channels' selection and times' control,high precision and timely data processing.