摘要
连续信号采集系统不仅需要保证信号采集的连续性,而且在信号采集过程中要有实时控制能力。使用生产者/消费者模式进行程序设计可以使程序设计更为快捷、简单和高效。以LabVIEW为开发平台,详细介绍了生产者/消费者程序设计的思路,并结合声卡信号采集实例给出了此程序设计的过程。结果表明在对实时性和连续性有严格要求的程序设计中引入生产者/消费者设计模式,可使程序的响应时间更快,执行效率更高。
Continuous sound signal acquisition system not only guarantees the continuity of signal acquisition, but has the real - time control ability in the process of signal acquisition. A producer/consumer design pattern can make program designing quicker, simpler and more efficient. Through the example of continuous sound signal acquisition, the designing idea for the Producer/consumer design pattern is described in details and the design process of this program on the LabVIEW platform is given. The result shows that the introduction of the producer/consumer design pattern in the use of program design which has serious request in real - time and continuous sound signal acquisition can make the processes response faster and more efficient.
出处
《现代电子技术》
2009年第7期129-132,共4页
Modern Electronics Technique
关键词
LABVIEW
生产者/消费者模式
声卡
连续采集
实时控制
LabVIEW
producer/consumer design pattern
sound card,continuous sound signal acquisition
real- time control