CN104408212A - Data acquisition method for portable data acquisition card - Google Patents

Data acquisition method for portable data acquisition card Download PDF

Info

Publication number
CN104408212A
CN104408212A CN201410704654.2A CN201410704654A CN104408212A CN 104408212 A CN104408212 A CN 104408212A CN 201410704654 A CN201410704654 A CN 201410704654A CN 104408212 A CN104408212 A CN 104408212A
Authority
CN
China
Prior art keywords
data
data acquisition
card
acquisition card
usb
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.)
Granted
Application number
CN201410704654.2A
Other languages
Chinese (zh)
Other versions
CN104408212B (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

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

Abstract

The invention discloses a data acquisition method for a portable data acquisition card. The data acquisition method for the portable data acquisition card includes the following steps: S1, starting the power supply of the acquisition card, the data acquisition card samples the AD on the analog signal; S2, after DDR2 caches the sampling data of the 1S, stopping sampling; S3, MCU sends the start data transmission instruction to the FPGA; S4, the FPGA receives the start data transmission instruction and reads the data from DDR2, writes the data to SlaveFIFO through the GPI; S5, MCU detects the data and writes the data to DMA of USB through the GPIF socket; S6, USB reads the data of the DMA buffer area and transmits the data to the external of acquisition card. The method can display the transmission data on time domain and frequency domain, clear the cache timely and guarantee data transmission smooth.

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 automatic collection electricity or electric quantity signal from the analog-and digital-unit under tests such as sensor and other Devices to test, delivers in host computer and analyzes, process.Data acquisition system (DAS) is that the measurement software and hardware product combined based on computing machine or other dedicated testing platforms realizes flexibly, user-defined measuring system.Data collecting card, namely realizes the computer extender card of data acquisition function, can pass through USB, 485,232, Ethernet, the bus such as various wireless networks access personal computer.
Data collecting card is used for gathering various types of data, and along with modern comfort is towards digitizing, informationalized high speed development, data acquisition is stuck in every field and obtains applying more and more widely.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of portable data acquisition card collecting method is provided, the data that the method gathers are after the real-time buffer memory of capture card, capture card outside is transferred to by USB interface, buffer memory can be emptied in time simultaneously, ensure that data acquisition and the smooth and easy of transmission carry out.
The object of the invention is to be achieved through the following technical solutions: a kind of portable data acquisition card collecting method, it comprises the steps:
S1: capture card electric power starting, data collecting card starts to carry out AD sampling to simulating signal;
After the sampled data of S2:DDR2 buffer memory 1S, stop sampling;
S3:MCU sends and starts data transfer instruction to FPGA;
S4:FPGA receives and starts data transfer instruction, reads data, and write data to SlaveFIFO by GPIF from DDR2;
After S5:MCU detects data, write data by GPIF socket to the DMA of USB;
Capture card outside is transferred to after the data of S6:USB reading DMA buffer zone.
It also comprises USB socket and empties buffer area and transmitted data and the step notifying GPIF.
The invention has the beneficial effects as follows: the invention provides a kind of portable data acquisition card collecting method, the data that the method gathers are after the real-time buffer memory of capture card, be transferred to capture card outside by USB interface, buffer memory can be emptied in time simultaneously, ensure that data acquisition and the smooth and easy of transmission carry out.
Accompanying drawing explanation
Fig. 1 is collecting method block diagram;
Fig. 2 is data collecting card structural drawing.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail, but protection scope of the present invention is not limited to the following stated.
As shown in Figure 1, a kind of portable data acquisition card collecting method, it comprises the steps:
S1: capture card electric power starting, data collecting card starts to carry out AD sampling to simulating signal;
After the sampled data of S2:DDR2 buffer memory 1S, stop sampling;
S3:MCU sends and starts data transfer instruction to FPGA;
S4:FPGA receives and starts data transfer instruction, reads data, and write data to SlaveFIFO by GPIF from DDR2;
After S5:MCU detects data, write data by GPIF socket to the DMA of USB;
Capture card outside is transferred to after the data of S6:USB reading DMA buffer zone.
It also comprises USB socket and empties buffer area and transmitted data and the step notifying GPIF.
Data collecting card comprises AD converter, FPGA, Clock management chip, DDR2 and MCU, the data collected are transferred to FPGA by described AD converter, FPGA by data buffer storage in DDR2, after the sampled data of buffer memory 1S, the data of collection are transferred to MCU according to the instruction of MCU by FPGA, MCU transfers data in the DMA of USB, transfers data to host computer by USB.The data that 4 road AD of data collecting card sample are cached in capture card 4 DDR2 respectively, after the data of buffer memory 1S, stop sampling.MCU send start to transmit data instruction to FPGA, the data of buffer memory are write data to SlaveFIFO by GPIF after receiving instruction by FPGA again, after MCU detects data, write data by GPIF socket to the DMA of USB, after the data of USB reading DMA buffer zone, be transferred to capture card outside.
Portable data acquisition card collecting method simple and fast of the present invention, can be configured sampling clock by host computer, can select interior external clock and configuration sampling rate; Enter data transfer phase and can select data transmission channel according to demand, the data of DAM buffer zone can be removed simultaneously in time.

Claims (2)

1. a portable data acquisition card collecting method, is characterized in that: it comprises the steps:
S1: capture card electric power starting, data collecting card starts to carry out AD sampling to simulating signal;
After the sampled data of S2:DDR2 buffer memory 1S, stop sampling;
S3:MCU sends and starts data transfer instruction to FPGA;
S4:FPGA receives and starts data transfer instruction, reads data, and write data to SlaveFIFO by GPIF from DDR2;
After S5:MCU detects data, write data by GPIF socket to the DMA of USB;
Capture card outside is transferred to after the data of S6:USB reading DMA buffer zone.
2. a kind of portable data acquisition card collecting method according to claim 1, is characterized in that: it also comprises USB socket and empties buffer area and transmitted data and the step notifying 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 true CN104408212A (en) 2015-03-11
CN104408212B 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010011313A1 (en) * 1998-09-15 2001-08-02 Hungerbuehler Viktor M. Modular data acquisition system
CN201188664Y (en) * 2008-01-22 2009-01-28 太原理工天成电子信息技术有限公司 Multi-format analysis card for acquiring video signal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010011313A1 (en) * 1998-09-15 2001-08-02 Hungerbuehler Viktor M. Modular data acquisition system
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
刘勇等: "基于USB2.0和DDR2的数据采集系统设计与FPGA实现", 《电子元器件应用》 *
吴越等: "基于FPGA的多通道高速数据采集系统", 《雷达科学与技术》 *

Also Published As

Publication number Publication date
CN104408212B (en) 2017-10-17

Similar Documents

Publication Publication Date Title
CN104361143B (en) A kind of portable data acquisition card and its method
CN204474223U (en) A kind of winch control system based on wireless technology
CN201804075U (en) Transmission line single-ended fault locating device based on field programmable gate array (FPGA)
CN204166088U (en) Local discharge signal harvester
CN104408213B (en) A kind of portable data acquisition card
CN103856364A (en) Bus signal monitoring device and method
CN104485962B (en) A kind of Portable Data-Acquisition System and its acquisition method
CN202562863U (en) Intelligent detection system for oil pipeline weld-seam inspection
CN103853680A (en) Bus-signal monitoring device and method
CN104281082A (en) Partial discharge signal collecting method and system
CN204155436U (en) A kind of wireless sensing node for civil structure health monitoring
CN104408212A (en) Data acquisition method for portable data acquisition card
CN204886928U (en) Small time interval data acquisition device based on PCIE bus
CN104464254A (en) Distributed data synchronous acquisition device and distributed data synchronous acquisition method
CN205015164U (en) High -speed synchronization signal collection system of car brake performance detector
CN204926470U (en) Maintenance operation data acquisition device
CN202471100U (en) USB and DSP based supersonic reflectoscope
CN104951237A (en) High-speed storage device based on SATA interface solid state disk
CN102937459A (en) State detection system for rotating machinery
CN204102134U (en) Transformer station's telemechanical serial data display instrument
CN203561851U (en) Energy diagnosis information collector
CN103654734A (en) Medical detection system
CN205247251U (en) Appearance is patrolled and examined to computer temperature
CN202814883U (en) Device for detecting antitumor drugs
CN201972706U (en) Device capable of automatically observing HUT of coal-mining machine

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.