KR20030085772A - The data acquisition device and its method using PC printer port - Google Patents

The data acquisition device and its method using PC printer port Download PDF

Info

Publication number
KR20030085772A
KR20030085772A KR1020020024012A KR20020024012A KR20030085772A KR 20030085772 A KR20030085772 A KR 20030085772A KR 1020020024012 A KR1020020024012 A KR 1020020024012A KR 20020024012 A KR20020024012 A KR 20020024012A KR 20030085772 A KR20030085772 A KR 20030085772A
Authority
KR
South Korea
Prior art keywords
data
printer port
computer
port
stored
Prior art date
Application number
KR1020020024012A
Other languages
Korean (ko)
Inventor
김응석
김태희
Original Assignee
김응석
김태희
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 김응석, 김태희 filed Critical 김응석
Priority to KR1020020024012A priority Critical patent/KR20030085772A/en
Publication of KR20030085772A publication Critical patent/KR20030085772A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0004Parallel ports, e.g. centronics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Recording Measured Values (AREA)

Abstract

PURPOSE: A data collection method and system is provided to output data on a monitor, inputted via a printer port of a PC, at a display device of the PC, and to store the data at a hard disk of the PC. CONSTITUTION: The method comprises several steps. An application program is started if a Run button is pushed(S1). A thread for an unlimited repetition is started(S2). Variables, to be set by a hardware and a software, are initialized(S3). The values of measurement range set by the user on a display are stored(S4). Decoder values are set in order that the values of measurement range are selected by a measurement range control circuit via a decoder(S5). The values of measurement range are output to a printer port(S6). In order to make an AD converter receive data, a buffer is enabled(S7). The data stored at the buffer is read via the printer port(S8), and the buffer is displayed for receiving the next data(S9). The data read via the printer port is arranged and stored(S10). A variable for the number of called data is initialized(S11). The variable for the number of called data is compared with that for the number of stored data(S12). If there exists the data to be read, the step S7 is repeated for receiving new data via the printer port. Otherwise, the stored data is called(S13), and displayed at the display(S14). The variable for the number of called data is increased(S15). The thread for the unlimited repetition is stopped(S17).

Description

컴퓨터 프린터 포트를 이용한 데이터 획득 방법 및 그 장치{The data acquisition device and its method using PC printer port}The data acquisition device and its method using PC printer port}

본 고안은 컴퓨터 프린터 포트를 이용한 데이터 획득장치(DAS : Data Acquisition System)이다. 구체적으로 설명하면, 전기적인 측정 신호를 디지털 데이터로 변환하여 컴퓨터의 프린터 포트로 이 디지털 데이터를 입력받아서 컴퓨터 모니터 화면에 디스플레이하고, 컴퓨터 하드디스크에 저장할 수 있도록 고안된 컴퓨터 프린터 포트를 이용한 데이터 획득(DAS)장치에 관한 것이다.The present invention is a data acquisition system (DAS: Data Acquisition System) using a computer printer port. Specifically, data acquisition using a computer printer port designed to convert electrical measurement signals into digital data, receive this digital data through a computer's printer port, display it on a computer monitor screen, and store it on a computer hard disk. It is about a device.

종래에는 데이터를 측정할 수 있는 장치로 디지털 오실로스코프의 경우 가격이 비싸고 사용법을 전문적으로 배워야하는 어려움이 있다.Conventionally, as a device capable of measuring data, a digital oscilloscope is expensive and there is a difficulty in learning how to use it professionally.

컴퓨터 ISA/PCI 버스에 연결하여 사용하는 데이터 획득장치의 경우에는 컴퓨터 OS(윈도우즈, 리눅스, 유닉스 등)와 ISA/PCI 버스 사용 요청이 충돌할 경우 컴퓨터가 다운되거나 심할 경우 컴퓨터가 고장나는 문제점이 있으며 가격 또한 고가이다.In the case of a data acquisition device connected to the computer ISA / PCI bus, if the computer OS (Windows, Linux, Unix, etc.) and the ISA / PCI bus use request collide, the computer may be down or the computer may crash if severe. Price is also expensive.

컴퓨터 프린터 포트를 SPP(표준모드)로 설정하여 데이터를 측정하는 장치의 경우 표준모드로 설정된 프린터 포트의 데이터 입력 속도가 ISA버스의 속도에 비해 너무 느려 정확한 신호의 측정이 어려운 문제가 있다.In the case of measuring the data by setting the computer printer port to SPP (standard mode), the data input speed of the printer port set to the standard mode is too slow compared to the speed of the ISA bus, so it is difficult to accurately measure the signal.

본 고안은 종래 기술의 문제점을 개선하기 위해 개인용 컴퓨터의 프린터 포트를 ISA 버스만큼의 속도를 보장할 수 있는 ECP 모드 혹은 EPP 모드로 설정하고, 이렇게 설정된 프린터포트에 본 고안의 데이터 획득 장치를 연결하여 전기적인 신호를 측정하고, 이 측정신호를 디지털 데이터로 변환하여 프린터 포트로 디지털 데이터를 입력받아서 컴퓨터 모니터 화면을 통해 디스플레이하고, 획득한 데이터를 컴퓨터 하드디스크에 저장할 수 있는 컴퓨터 프린터 포트를 이용한 데이터 획득 및 저장장치에 관한 것이다.The present invention is to set the printer port of the personal computer to ECP mode or EPP mode that can guarantee the speed of the ISA bus, and connect the data acquisition device of the present invention to the printer port thus set Measures electrical signals, converts them into digital data, receives digital data through the printer port, displays it on a computer monitor screen, and acquires data using a computer printer port that can store the acquired data on a computer hard disk. And storage devices.

도면 1.Drawing 1.

1. 개인용 컴퓨터의 프린터포트(1)1. Printer port of personal computer (1)

2. 버퍼(3)2. Buffer (3)

3. 아날로그/디지탈 변환기(5)3. Analog to Digital Converters (5)

4. 클럭 발생부(7)4. Clock generator (7)

5. 측정 범위 조정 회로부(9)5. Measuring range adjusting circuit section (9)

6. 디코더(11)6. Decoder (11)

본 고안은 컴퓨터의 프린터포트를 ISA 버스만큼의 속도를 보장할 수 있는 ECP 모드 혹은 EPP 모드로 설정하고, 이렇게 설정된 프린터포트에 본 고안의 데이터 획득 장치를 연결하여 전기적인 신호를 측정하고, 이 측정신호를 디지털 데이터로 변환하여 프린터 포트로 디지털 데이터를 입력받아서 컴퓨터 모니터 화면을 통해 디스플레이하고, 획득한 데이터를 컴퓨터 하드디스크에 저장할 수 있도록 하며, 전기적인 신호의 측정 범위를 컴퓨터에서 사용자가 조정할 수 있도록 하는 것을 특징으로 하는 컴퓨터 프린터 포트를 이용한 데이터 획득장치에 관한 것이다.The present invention sets the printer port of the computer to ECP mode or EPP mode that can guarantee the speed as much as the ISA bus, and connects the data acquisition device of the present invention to the printer port thus set, and measures the electrical signal. By converting the signal into digital data, the digital data can be input to the printer port and displayed on the computer monitor screen, and the acquired data can be stored on the computer hard disk, and the measurement range of the electrical signal can be adjusted by the user. It relates to a data acquisition device using a computer printer port characterized in that.

본 고안에서는 프린터포트에서 2∼9번, 10∼13 및 15번은 데이터 전송을 위하여 사용되는데, 외부에서 PC방향으로 신호를 전송한다. 14번, 16번에서는 PC에서 프린터 또는 외부장치로 데이터를 전송한다. 본 고안에 따른 데이터 획득장치는 병렬포트의 출력 및 입력라인을 통해서 데이터 획득기능을 수행할 수 있도록 한 장치이다.In the present invention, Nos. 2-9, 10-13, and 15 are used for data transmission in the printer port, and transmit signals from the outside to the PC. In 14 and 16, data is sent from the PC to the printer or external device. Data acquisition device according to the present invention is a device to perform a data acquisition function through the output and input line of the parallel port.

본 고안에 따른 병렬포트를 이용한 데이터 측정 장치를 첨부된 도면을 참고로 하여 이하에 상세히 기술되는 실시 예에 의하여 그 특징들을 이해할 수 있을 것이다.With reference to the accompanying drawings, a data measuring apparatus using a parallel port according to the present invention will be understood by the embodiments described in detail below.

도1에 도시된 바와 같이 본 발명의 하드웨어적 구성은 원하는 측정 범위를 디코더(11)를 통해서 측정 범위 회로부(9)에 선택한다. 측정 범위 회로부(9)에서 들어 온 데이터를 아날로그/디지털 신호 변환기(5)를 통해서 데이터를 디지털 신호로 변환해서 버퍼(3)로 저장한다. 아날로그/디지털 신호변환기(5)에서 변환하는 타이밍은 클럭발생기(7)에서 나오는 클럭으로 변환한다. 버퍼(3)에서 저장한 값은 프린터 포트를 통해 데이터가 들어온다.As shown in Fig. 1, the hardware configuration of the present invention selects the desired measurement range to the measurement range circuit section 9 via the decoder 11. Data input from the measurement range circuit section 9 is converted into a digital signal through an analog / digital signal converter 5 and stored in the buffer 3. The timing converted by the analog / digital signal converter 5 is converted into the clock coming out of the clock generator 7. The value stored in the buffer 3 enters data through the printer port.

아날로그 신호를 디지털 신호로 변환하여 컴퓨터로 입력하는 기능으로ADS7804등과 같은 디지털/아날로그 변환기(5)를 사용하고, 클럭 발생 기능(7)은 펄스를 만들어주는 NE555와 같은 클럭발생기를 사용하고, 버퍼기능(3)은 아날로그/디지털 변환기에서 들어오는 신호를 임시로 저장하는 기능으로 74LS244로 썼고, 2개의 신호로 4개의 신호를 만들기 위해 디코더의 기능(11)으로 74LS139를 썼다.It converts analog signals into digital signals and inputs them to a computer. It uses a digital / analog converter (5) such as ADS7804. The clock generation function (7) uses a clock generator such as NE555 to generate pulses. (3) wrote 74LS244 as a function of temporarily storing the signal from the analog / digital converter, and 74LS139 as the function of the decoder (11) to make four signals with two signals.

상기 소자들은 동일 또는 유사한 기능을 수행하는 다른 소자로 대치 가능하다. 본 고안에서는 12비트 소자를 사용했다. 그 기능을 강화하기 위해서 16비트 등 분해능이 높은 소자를 사용하는 것도 가능하다.The devices may be replaced with other devices that perform the same or similar functions. In this design, 12-bit device is used. In order to enhance the function, it is also possible to use a device with high resolution such as 16 bits.

도2는 본 고안에 따른 병렬포트를 이용한 데이터 측정 장치를 화면에서 구현하는 프로그램 실행 순서도이다.2 is a flowchart of a program for implementing a data measurement apparatus using a parallel port according to the present invention on a screen.

프로그램은 시작해서 RUN버튼을 눌렀을 경우에 (S1)이 시작된다. 무한적으로 반복하기 위해 스레드를 시작한다(S2). 하드웨어와 프로그램에서 설정해 주는 변수들을 초기화(S3)한다. 화면에 내가 원하는 측정범위를 설정해준 값을 저장한다(S4). 그 값을 디코더(11)를 통해서 측정 범위 조절 회로부(9)에서 선택해주려면 디코더값을 설정해준다.(S5) 그런 후에 프린터포트(1)에 값을 출력한다(S6). 아날로그/디지탈 변환기(5)에서 데이터를 받으려면 버퍼(3)를 동작시키게 인에블 시켜준다(S7). 버퍼(3)에 저장된 값을 프린터포트(1)를 통해서 값을 읽어들인다(S8). 다음 값을 받기 위해서 버퍼를 디스플레이 시켜준다(S9). 프린터 포트(1)에서 읽어들인 값을 배열로 저장한다(S10). 화면에 그래프를 그리기 위해 변수(불러온 데이터 개수의 변수)를 초기화한다(S11). 저장된 데이터 개수의 변수와 불러온 데이터 개수의 변수의 크기를 비교한다(S12). 비교해서 저장된 데이터가남아있다면 (S13)로 가고, 없으면 (S7)로 다시 돌아가서 프린터포트(1)를 통해서 새로운 데이터 값을 받아들인다. 저장된 데이터를 불러내고(S13), 화면에 보여준다(S14). 그 다음 데이터를 불러오기 위해 불러온 데이터 개수의 변수를 증가한다(S15). 화면에 STOP(S16)버튼 반복하기 위한 스레드를 정지한다(S17).The program starts and (S1) starts when the RUN button is pressed. Start the thread to repeat indefinitely (S2). Initialize the variables set by hardware and program (S3). Save the value that set the desired measurement range on the screen (S4). To select the value in the measurement range adjusting circuit section 9 through the decoder 11, the decoder value is set (S5). Then, the value is output to the printer port 1 (S6). In order to receive data from the analog-to-digital converter 5, the buffer 3 is enabled to operate (S7). The value stored in the buffer 3 is read through the printer port 1 (S8). The buffer is displayed to receive the next value (S9). The value read from the printer port 1 is stored as an array (S10). In order to draw a graph on the screen, the variable (variable of the number of loaded data) is initialized (S11). The size of the variable of the number of stored data and the variable of the number of loaded data is compared (S12). If there is remaining data to be compared, go to (S13), if not, go back to (S7) and accept a new data value through the printer port (1). The stored data is called up (S13) and shown on the screen (S14). Then, the variable of the number of data loaded to load the data is increased (S15). Stop the thread for repeating the STOP (S16) button on the screen (S17).

이상에서 설명한 것은 본 고안에 따른 병렬포트를 이용한 데이터 측정장치는 실시하기 위한 실시예에 불과한 것으로, 본 고안은 상기한 실시예에 한정되지 않고, 이하의 실용신안등록청구범위에서 청구하는 바와 같이 본 고안의 요지를 벗어남이 없이 당해 고안이 속하는 분야에서 통상의 지식을 가진자라면 누구든지 다양한 변경 실시가 가능한 범위까지 본 고안의 기술적 정신이 있다고 할 것이다.As described above, the data measuring apparatus using the parallel port according to the present invention is merely an embodiment for carrying out the present invention, and the present invention is not limited to the above-described embodiment, as claimed in the following utility model registration claims. Without departing from the gist of the invention, anyone of ordinary skill in the art to which the invention belongs will have a technical spirit of the present invention to the extent that various changes can be carried out.

본 고안에 따른 컴퓨터 프린터 포트를 이용한 데이터 획득장치는 프린터를 연결할 때와 같이 프린터 포트에 연결하기만 하면 된다. 프린터 포트의 ECP/EPP 모드는 컴퓨터에서 표준이기 때문에 다른 컴퓨터에 옮기더라도 손쉽게 사용할 수 있다.The data acquisition apparatus using the computer printer port according to the present invention only needs to be connected to the printer port as when the printer is connected. The printer port's ECP / EPP mode is standard on your computer, so you can easily move it to another computer.

아울러, 컴퓨터 ISA 버스에 상응하는 데이터 획득 속도를 실현할 수 있으므로 종래의 고속 디지털 오실로스코프에 비해 상대적으로 저렴한 가격으로 구현할 수 있으므로 계측기의 보급을 보편화할 수 있다.In addition, the data acquisition speed corresponding to the computer ISA bus can be realized, which can be implemented at a relatively low cost compared to a conventional high-speed digital oscilloscope, thereby making the instrument popular.

그리고 컴퓨터에 연결해서 사용하므로 획득한 측정 데이터의 저장 및 보관이 용이하여 여러 가지 신호를 저장/보관하면서 다양한 비교분석이 가능하므로 측정결과의 보다 정확하고 신속한 분석이 가능하다는 이점이 있다.In addition, it is easy to store and store the acquired measurement data because it is connected to a computer, and various comparative analysis is possible while storing / storing various signals.

Claims (4)

컴퓨터의 프린터 포트를 이용한 측정장치에 있어서;A measuring device using a printer port of a computer, comprising: 컴퓨터의 프린터포트 모드를 ECP 혹은 EPP 모드로 설정하여 프린터포트에 연결하여 전기적인 신호를 측정하고;Set the printer port mode of the computer to the ECP or EPP mode and measure the electrical signal by connecting to the printer port; 이 측정신호를 디지털 데이터로 변환하여 프린터 포트로 디지털 데이터를 입력받아서 컴퓨터 모니터 화면을 통해 디스플레이하고 획득한 데이터를 컴퓨터 하드디스크에 저장할 수 있도록 하는 것을 특징으로 하는 프린터 포트를 이용한 데이터 획득 장치.And converting the measurement signal into digital data, receiving digital data through a printer port, displaying the same through a computer monitor screen, and storing the acquired data on a computer hard disk. 제1항의 데이터 획득 장치에 있어서In the data acquisition device of claim 1 아날로그 신호를 디지털 신호로 변환하는 아날로그/디지털 변환부, 아날로그/디지털 변환기의 변환동작을 수행하게 만드는 클럭 발생부, 아날로그/디지털 변환기에서 변환이 완료된 데이터를 임시로 저장하는 버퍼부, 측정범위를 조정할 수 있도록 해주는 디코더를 포함한 측정범위 조정부를 특징으로 하는 데이터 측정장치.Analog-to-digital converter for converting analog signals to digital signals, clock generator for converting analog-to-digital converters, buffers for temporarily storing the converted data in analog-to-digital converters, and adjustment of measurement range Data measuring device, characterized in that the measuring range adjustment section including a decoder to enable. 제2항에 있어서The method of claim 2 프린터 포트의 어드레스 디코딩 신호로 피측정 신호의 측정범위를 컴퓨터 상에서 선택할 수 있도록 하는 것을 특징으로 하는 병렬 포트를 이용한 데이터 측정장치Data measuring device using parallel port, characterized in that the measurement range of the signal under measurement can be selected on the computer by the address decoding signal of the printer port 제 2항에 있어서The method of claim 2 12비트 데이터는 병렬포트의 데이터와 상태 레지스터로 곧바로 병렬전송이 가능한 것을 특징으로 하는 병렬포트를 이용한 데이터 측정 장치.12-bit data is a data measurement device using a parallel port characterized in that the parallel port can be transferred directly to the data and status register of the parallel port.
KR1020020024012A 2002-05-01 2002-05-01 The data acquisition device and its method using PC printer port KR20030085772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020020024012A KR20030085772A (en) 2002-05-01 2002-05-01 The data acquisition device and its method using PC printer port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020020024012A KR20030085772A (en) 2002-05-01 2002-05-01 The data acquisition device and its method using PC printer port

Publications (1)

Publication Number Publication Date
KR20030085772A true KR20030085772A (en) 2003-11-07

Family

ID=32381153

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020020024012A KR20030085772A (en) 2002-05-01 2002-05-01 The data acquisition device and its method using PC printer port

Country Status (1)

Country Link
KR (1) KR20030085772A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01300348A (en) * 1988-05-30 1989-12-04 Fanuc Ltd Test system
KR930014197A (en) * 1991-12-30 1993-07-22 이헌조 Parallel Data Port Test Device and Method of Printer
JPH06243053A (en) * 1993-02-15 1994-09-02 Mitsubishi Electric Corp Rs232c communication test device
KR960035279A (en) * 1995-03-27 1996-10-24 박세진 Data collection control device using printer port
KR19990000381A (en) * 1997-06-05 1999-01-15 윤종용 Product inspection device using communication port of personal computer
KR20010069853A (en) * 2001-05-15 2001-07-25 박재삼 Data acquisition system using parallel port

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01300348A (en) * 1988-05-30 1989-12-04 Fanuc Ltd Test system
KR930014197A (en) * 1991-12-30 1993-07-22 이헌조 Parallel Data Port Test Device and Method of Printer
JPH06243053A (en) * 1993-02-15 1994-09-02 Mitsubishi Electric Corp Rs232c communication test device
KR960035279A (en) * 1995-03-27 1996-10-24 박세진 Data collection control device using printer port
KR19990000381A (en) * 1997-06-05 1999-01-15 윤종용 Product inspection device using communication port of personal computer
KR20010069853A (en) * 2001-05-15 2001-07-25 박재삼 Data acquisition system using parallel port

Similar Documents

Publication Publication Date Title
JPS60198466A (en) Digital waveform memory storage
MX2011000951A (en) Digital oscilloscope module.
CN101131403A (en) Digital oscillograph and its waveshape displaying method
CN208872796U (en) A kind of general card oscillograph of multichannel based on pci interface and system
WO1998026298A1 (en) Real-time signal analyzer
CN101634677B (en) Digital instrument based on UVC transmission protocol and use method thereof
KR20030085772A (en) The data acquisition device and its method using PC printer port
Jaiganesh et al. PC based heart rate monitor implemented in XILINX FPGA and analysing the heart rate.
US5644757A (en) Apparatus for storing data into a digital-to-analog converter built-in to a microcontroller
CN207650280U (en) A kind of signal acquisition and measurement device of medium wave guiding aircraft
JP3057290B2 (en) Multi-channel waveform measurement device
CN213485009U (en) Infrared imaging system based on Type-C interface
CN214375920U (en) High-speed data acquisition system based on FPGA
CN215339489U (en) Cavity ring-down signal acquisition system based on FPGA
JP2673393B2 (en) Waveform analyzer
JPH03162677A (en) Probe for oscilloscope
RU40805U1 (en) FAST DIGITAL DIGITAL COMPUTER FOR MEASUREMENT AND GENERATION OF SIGNALS
CN117406660A (en) Data acquisition system based on FPGA and AD9280
Li et al. Design of USB3. 0 Video Transmission System with UVC Protocol Supported
Mutauranwa et al. Design and realization of a compact low cost system-on-chip based digital audio oscilloscope
JPH01185448A (en) Digital oscilloscope
CN109541284A (en) A kind of Wrist wearable type integrated electrical measurement test macro
JPH05157770A (en) Logic analyser
CN116841934A (en) Multi-channel synchronous data acquisition and transmission system and method based on FPGA
CN112859705A (en) High-speed data acquisition system based on FPGA

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application
E601 Decision to refuse application