CN104408212B - A kind of portable data acquisition card collecting method - Google Patents

A kind of portable data acquisition card collecting method Download PDF

Info

Publication number
CN104408212B
CN104408212B CN201410704654.2A CN201410704654A CN104408212B CN 104408212 B CN104408212 B CN 104408212B CN 201410704654 A CN201410704654 A CN 201410704654A CN 104408212 B CN104408212 B CN 104408212B
Authority
CN
China
Prior art keywords
data
fpga
ddr2
card
mcu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410704654.2A
Other languages
Chinese (zh)
Other versions
CN104408212A (en
Inventor
龙宁
张星星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Taiyu information technology Limited by Share Ltd
Original Assignee
Chengdu Longteng Zhongyuan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Longteng Zhongyuan Information Technology Co Ltd filed Critical Chengdu Longteng Zhongyuan Information Technology Co Ltd
Priority to CN201410704654.2A priority Critical patent/CN104408212B/en
Publication of CN104408212A publication Critical patent/CN104408212A/en
Application granted granted Critical
Publication of CN104408212B publication Critical patent/CN104408212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Recording Measured Values (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a kind of portable data acquisition card collecting method, it comprises the following steps:S1:Capture card electric power starting, data collecting card starts to carry out AD samplings to analog signal;S2:After DDR2 cachings 1S sampled data, stop sampling;S3:MCU, which is sent, starts data transfer instruction to FPGA;S4:FPGA, which is received, starts data transfer instruction, data is read from DDR2, and write data to SlaveFIFO by GPIF;S5:MCU is detected after data, by DMA write data from GPIF sockets to USB;S6:It is transferred to after the data of USB reading DMA buffering areas outside capture card.This method can complete the display of the time-domain and frequency-domain to transmitting data, and caching is emptied in time, ensure the smooth progress of data transfer.

Description

A kind of portable data acquisition card collecting method
Technical field
The present invention relates to a kind of collecting method, particularly a kind of portable data acquisition card collecting method.
Background technology
Data acquisition refers to the automatic data collection electricity from the analog- and digital- unit under test such as sensor and other Devices to tests Or electric quantity signal, it is sent in host computer and is analyzed, is handled.Data collecting system is to combine based on computer or other are special Flexible, user-defined measuring system is realized with the measurement software and hardware product of test platform.Data collecting card, that is, realize The computer extender card of data acquisition function, can be accessed by buses such as USB, 485,232, Ethernet, various wireless networks Personal computer.
Data collecting card is used to be acquired various types of data, with the digitlization of modern comfort direction, informationization High speed development, data acquisition is stuck in every field and is increasingly widely applied.
The content of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of portable data acquisition card data acquisition side Method, this method collection data after capture card is cached in real time, be transferred to by USB interface outside capture card, at the same can and When empty caching, ensure the smooth progress of data acquisition and transmission.
The purpose of the present invention is achieved through the following technical solutions:A kind of portable data acquisition card data acquisition side Method, it comprises the following steps:
S1:Capture card electric power starting, data collecting card starts to carry out AD samplings to analog signal;
S2:After DDR2 cachings 1S sampled data, stop sampling;
S3:MCU, which is sent, starts data transfer instruction to FPGA;
S4:FPGA, which is received, starts data transfer instruction, data is read from DDR2, and write data to by GPIF SlaveFIFO;
S5:MCU is detected after data, by DMA write data from GPIF sockets to USB;
S6:It is transferred to after the data of USB reading DMA buffering areas outside capture card.
It also empties the step of buffer area has transmitted data and notified GPIF including USB sockets.
The beneficial effects of the invention are as follows:The invention provides a kind of portable data acquisition card collecting method, the party The data of method collection are transferred to outside capture card, while can empty in time slow after capture card is cached in real time by USB interface Deposit, ensure the smooth progress of data acquisition and transmission.
Brief description of the drawings
Fig. 1 is collecting method block diagram;
Fig. 2 is data collecting card structure chart.
Embodiment
Technical scheme is described in further detail below in conjunction with the accompanying drawings, but protection scope of the present invention is not limited to It is as described below.
As shown in figure 1, a kind of portable data acquisition card collecting method, it comprises the following steps:
S1:Capture card electric power starting, data collecting card starts to carry out AD samplings to analog signal;
S2:After DDR2 cachings 1S sampled data, stop sampling;
S3:MCU, which is sent, starts data transfer instruction to FPGA;
S4:FPGA, which is received, starts data transfer instruction, data is read from DDR2, and write data to by GPIF SlaveFIFO;
S5:MCU is detected after data, by DMA write data from GPIF sockets to USB;
S6:It is transferred to after the data of USB reading DMA buffering areas outside capture card.
It also empties the step of buffer area has transmitted data and notified GPIF including USB sockets.
Data collecting card includes AD converter, FPGA, Clock management chip, DDR2 and MCU, and described AD converter will be adopted The data transfer collected is to FPGA, and FPGA is by data buffer storage into DDR2, and after the sampled data for caching 1S, FPGA is according to MCU's The data of collection are transferred to MCU by instruction, and MCU is transferred data in USB DMA, is transferred data to by USB upper Machine.The data of the 4 road AD samplings of data collecting card are cached in 4 DDR2 of capture card respectively, after the data for caching 1S, stop adopting Sample.MCU sends the instruction for starting to transmit data and the data of caching is write into data by GPIF again after receiving instruction to FPGA, FPGA Detected to SlaveFIFO, MCU after data, by DMA write data from GPIF sockets to USB, USB reading DMA buffering areas It is transferred to after data outside capture card.
The portable data acquisition card collecting method simple and fast of the present invention, can be to sampling clock by host computer Configured, interior external clock and configuration sample rate can be selected;According to demand data can be selected to pass into data transfer phase Defeated passage, while the data of DAM buffering areas can be removed in time.

Claims (1)

1. a kind of portable data acquisition card collecting method, it is characterised in that:It comprises the following steps:
S1:Capture card electric power starting, data collecting card starts to carry out AD samplings to analog signal, wherein, capture card turns including AD Parallel operation, FPGA, Clock management chip, DDR2 and MCU;
S2:AD converter is by the data transfer collected to FPGA, and FPGA is by data buffer storage into DDR2, and DDR2 caching 1S's adopts After sample data, stop sampling;
S3:MCU, which is sent, starts data transfer instruction to FPGA;
S4:FPGA, which is received, starts data transfer instruction, data is read from DDR2, and write data to by GPIF SlaveFIFO;
S5:MCU is detected after data, by DMA write data from GPIF sockets to USB;
S6:It is transferred to after the data of USB reading DMA buffering areas outside capture card;
S7:USB sockets empty buffer area and have transmitted data and notified GPIF.
CN201410704654.2A 2014-11-28 2014-11-28 A kind of portable data acquisition card collecting method Active CN104408212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410704654.2A CN104408212B (en) 2014-11-28 2014-11-28 A kind of portable data acquisition card collecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410704654.2A CN104408212B (en) 2014-11-28 2014-11-28 A kind of portable data acquisition card collecting method

Publications (2)

Publication Number Publication Date
CN104408212A CN104408212A (en) 2015-03-11
CN104408212B true CN104408212B (en) 2017-10-17

Family

ID=52645843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410704654.2A Active CN104408212B (en) 2014-11-28 2014-11-28 A kind of portable data acquisition card collecting method

Country Status (1)

Country Link
CN (1) CN104408212B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201188664Y (en) * 2008-01-22 2009-01-28 太原理工天成电子信息技术有限公司 Multi-format analysis card for acquiring video signal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000016223A1 (en) * 1998-09-15 2000-03-23 Acqiris Modular data collection system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201188664Y (en) * 2008-01-22 2009-01-28 太原理工天成电子信息技术有限公司 Multi-format analysis card for acquiring video signal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于FPGA的多通道高速数据采集系统;吴越等;《雷达科学与技术》;20121231;第10卷(第6期);摘要,第672页左栏第3段-第676页左栏第2段,图1、3 *
基于USB2.0和DDR2的数据采集系统设计与FPGA实现;刘勇等;《电子元器件应用》;20101031;第12卷(第10期);第48页右栏第2段-50页右栏第2段 *

Also Published As

Publication number Publication date
CN104408212A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN104361143B (en) A kind of portable data acquisition card and its method
TW201043986A (en) Stand-alone battery detection device
CN206541145U (en) A kind of multi channel signals synchronous
CN204474223U (en) A kind of winch control system based on wireless technology
EP2169377A3 (en) Vibration data acquisition using an universal serial bus (USB) interface
CN104408213B (en) A kind of portable data acquisition card
CN104485962B (en) A kind of Portable Data-Acquisition System and its acquisition method
CN104950096A (en) Soil parameter detection equipment and method
MX2010004938A (en) Communicating faulted circuit indicator apparatus and method of use thereof.
CN203249686U (en) Fan vibration testing system
CN106326179A (en) Fingerprint collection tooling and method based on SPI (serial peripheral interface) protocol
CN104408212B (en) A kind of portable data acquisition card collecting method
CN104182551A (en) Multi-sampling rate multi-channel synchronous data acquisition system and acquisition method
CN203396435U (en) Fuel gas metering device based on image recognition
CN203720588U (en) Signal acquisition device
CN203773539U (en) USB (Universal Serial Bus) interface based data collection and transmission system
CN207817691U (en) A kind of data collecting card
CN105277908A (en) Three-axis current sensor signal calibration method
CN205015164U (en) High -speed synchronization signal collection system of car brake performance detector
CN104951237A (en) High-speed storage device based on SATA interface solid state disk
CN204228127U (en) Wireless intelligent thicknessmeter
CN103654734A (en) Medical detection system
CN206389482U (en) A kind of target tracker based on video
CN210294158U (en) Magnetic method detecting instrument
CN103186496B (en) Data transmission method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190329

Address after: Room 125, 1st Building, 6 Building, 4299 Jindu Road, Minhang District, Shanghai 201108

Patentee after: Shanghai Taiyu information technology Limited by Share Ltd

Address before: 610000 No. 88 Tianchen Road, Chengdu High-tech Zone, Sichuan Province

Patentee before: Chengdu Longteng Zhongyuan Information Technology Co., Ltd.