CN1261857C - Wave shape display system for data signal and method thereof - Google Patents

Wave shape display system for data signal and method thereof Download PDF

Info

Publication number
CN1261857C
CN1261857C CN 03133147 CN03133147A CN1261857C CN 1261857 C CN1261857 C CN 1261857C CN 03133147 CN03133147 CN 03133147 CN 03133147 A CN03133147 A CN 03133147A CN 1261857 C CN1261857 C CN 1261857C
Authority
CN
China
Prior art keywords
data
signal
waveform
read
display
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.)
Expired - Fee Related
Application number
CN 03133147
Other languages
Chinese (zh)
Other versions
CN1577245A (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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN 03133147 priority Critical patent/CN1261857C/en
Publication of CN1577245A publication Critical patent/CN1577245A/en
Application granted granted Critical
Publication of CN1261857C publication Critical patent/CN1261857C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

The present invention relates to a wave shape display system and a method thereof for data signals for displaying collected data signals through a computer display. The method of the present invention has the steps: firstly, determining display parameters and the starting position of current displayed data; secondly, determining the total amount of displayable data according to the display parameters; thirdly, reading data to be displayed from a data area according to the starting position of the data; fourthly, dividing the data into independent values for eight data channels; finally, converting data of each channel into digital wave shape according to the display parameters, and stopping display when reaching the total amount of the displayable data.

Description

The waveform of data-signal shows not method
Technical field
The present invention relates to a kind ofly data-signal to be measured be analyzed the system and method for demonstration, particularly a kind of logic analyser system and method for realizing with software with what computer software was realized.
Background technology
In the field of hardware of computing machine, for more effective computing machine and interface arrangement thereof are tested, the data-signal of hardware system to be measured need be gathered out and carry out various display analysis.Sometimes also needing to make some testing tools cooperates test procedure to carry out test job, when for example serial port, parallel port, PCMCIA or the CRT port of computing machine being tested, the data presentation that often needs to collect from these devices is come out, and carries out further analyzing and processing.
But, in the prior art, generally all is to rely on special professional equipment to finish collection, demonstration and the analytical work of signal, logic analyser for example, though these functions of the equipments are powerful and complete, the cost of this professional equipment is also very expensive.
And on the other hand, present computing machine has very strong calculation process ability, self having a lot of PORT COM again can utilize, these PORT COM all have basic I/O function, therefore, can utilize the powerful processing power of computing machine to come the hardware data signal to be measured that collects is carried out display analysis, replace expensive logic analyser equipment with software program, then becoming one has problem to be solved.
Summary of the invention
The present invention is for the logic analyser system and method that provides a kind of software to realize is provided, and finishes by common computer the signal that collects is shown and analyzes.
The invention provides a kind of method for displaying waveform of data-signal, show by graphoscope in order to the data-signal that will collect, at first determine display parameter and current data presented reference position, determine displayable data total amount according to display parameter then, read a data to be displayed from the data field according to the data reference position, be the independent values of 8 data passages again with this data separating, according to these display parameter the data of each passage are converted to digital waveform, when reaching displayable data total amount, stop to show.
The present invention and then a kind of waveform display system of data-signal is provided, show by graphoscope in order to the data-signal that will collect, comprise: the parameter acquisition module, the calculation of total module, data read module, data separating module and data disaply moudle, wherein, the parameter collection module is in order to collect display parameter, the calculation of total module is in order to calculate displayable data total amount according to display parameter, data read module is in order to reading data to be displayed from the data field, and the data separating module is separated into the independent values of 8 data passages in order to the data to be displayed that this is read, and data disaply moudle is converted to digital waveform in order to the independent values with each passage.
Below in conjunction with accompanying drawing to further specify the present invention.
Description of drawings
Fig. 1 is the process flow diagram of the method for displaying waveform of data-signal of the present invention;
Fig. 2 is the acquisition method process flow diagram of the data-signal carried of the present invention;
Fig. 3 is the modular structure figure of the waveform display system of data-signal of the present invention;
Fig. 4 is the acquisition system modular structure figure of the data-signal carried of the present invention;
Fig. 5 is the parallel port interface synoptic diagram that the present invention carries;
Fig. 6 is the trigger condition configuration interface synoptic diagram that the present invention carries;
Fig. 7 uses the data-signal demonstration synoptic diagram that the present invention collects the CRT interface;
Fig. 8 A uses the trigger condition synoptic diagram that the present invention catches the serial transmission line data; And
Fig. 8 B uses the waveform demonstration synoptic diagram that the present invention catches the serial transmission line data-signal.
Embodiment
The invention provides a kind of method for displaying waveform of data-signal, show by graphoscope in order to the data-signal that will collect, Fig. 1 is the process flow diagram of the method for displaying waveform of data-signal of the present invention, its step is at first determined display parameter and current data presented reference position (step 101), display parameter comprise the current resolution of display and the figure/data presentation ratio of user's setting etc., determine displayable data total amount (step 102) according to display parameter then, read a data to be displayed (step 103) from the data field according to the data reference position, be the independent values (step 104) of 8 data passages again with this data separating, for example: a byte is 45H, be separated into 8, from the low level to a high position, be followed successively by 1,0,1,0,0,0,1,0, represent channel0 respectively, channell ... the data of .channe17, according to these display parameter the data of each passage are converted to digital waveform (step 105), when reaching displayable data total amount, stop to show (step 106).
For the expansion and the compression of display graphics, in fact be exactly the problem how many data volumes are every pixel represent, because the computer screen width generally is 1024 pixels, so need to determine corresponding what data of what pixels.Ratio such as figure/data is 1: 2, and then every pixel is represented 2 data, if the data total amount is 32k byte, then in order to show that these data need the width of 32*1024/2=16*1024 pixel.Ratio as figure/data changes 1: 4 into, then only needs the width of 32*1024/4=8*1024 pixel.Opposite situation is 2: 1 as the ratio of figure/data, and promptly two pixels are represented data, and then at this moment the data of these two pixels representatives are identical certainly, just will repeat the data that show that several times are identical.
These data to be displayed can be the data that have been stored in advance in the hard disk, also can be data in the application's data memory block, or the data that collect in real time by data acquisition program, for example, the present invention can also comprise a data acquisition, Fig. 2 has provided a kind of process flow diagram of acquisition method of data-signal, the steps include: hardware to be measured link to each other with the computing machine PORT COM (step 201), data acquisition amount and trigger collection condition (step 202) are set, the memory headroom (step 203) that distributes respective numbers according to the data acquisition amount from kernel, the multithreading handoff functionality (step 204) of masking operation system, read in hardware data to be measured (step 205) from PORT COM continuously according to the trigger collection condition, deposit the data that collect the memory headroom of kernel distribution in until being filled with (step 206); The multithreading handoff functionality (step 207) of recovery operation system is gone into data storage area (step 208) with the data that collect from the memory headroom unloading that kernel distributes, and discharges the memory headroom (step 209) that this kernel distributes.
Wherein be somebody's turn to do the step of the multithreading handoff functionality of shielding/recovery operation system, realize by closing/restart system break.The memory headroom that described kernel distributes is non-swappable memory headroom.
The present invention and then a kind of waveform display system of data-signal is provided, show by graphoscope in order to the data-signal that will collect, Fig. 3 is the modular structure figure of this data signal waveforms display system, this system comprises: parameter collection module 301, calculation of total module 302, data read module 303, data separating module 304, data disaply moudle 305.
Wherein, parameter collection module 301 is in order to collect display parameter, calculation of total module 302 is in order to calculate displayable data total amount according to display parameter, data read module 303 is in order to read data to be displayed from the data field, data separating module 304 is separated into the independent values of 8 data passages in order to the data to be displayed that this is read, and data disaply moudle 305 is converted to digital waveform in order to the independent values with this each passage.
Equally, during image data, the present invention also comprises a signal pickup assembly if desired, Fig. 4 is the structural drawing of sort signal acquisition system module, and it comprises PORT COM interface arrangement 401, shielding control module 402, configuration module 403, acquisition module 404, storage module 405.
Wherein, PORT COM interface arrangement 401 is used to connect hardware to be measured and transmitting test data, shielding control module 402 is used to shield or the multithreading handoff functionality of recovery operation system, configuration module 403 is used to be provided with data acquisition amount and trigger collection condition, acquisition module 404 is used for according to trigger collection condition image data, and storage module 405 is used to store the data that collected by this acquisition module.
For the protected mode operating system of similar Windows etc., also need a temporary module, be used for storing the data that collect and after this shielding recovery, data conversion storage being gone into this memory module temporarily.
Wherein this PORT COM interface arrangement comprises a signal transmssion line, and an end is connected in the data line and the ground wire of PORT COM, and the other end links to each other with the corresponding signal end of hardware system to be measured.
For different PORT COM, its external input voltage difference, therefore, interface arrangement can also comprise a voltage conversion circuit, is used to mate the output voltage of hardware to be measured and the external input voltage of PORT COM.
Lift a specific embodiment below the present invention is described, in the present embodiment, at first passed through data acquisition, again the data that collect are carried out display analysis, but the present invention is not limited to this embodiment, for any data that obtained, can use the present invention and carry out the waveform demonstration.
With the parallel port is example, we know, the parallel port of computing machine is except connecting printer, also can do general PORT COM uses, has common I/O function, this just points out us, can use parallel port as data acquisition channel, makes full use of the powerful s operation control ability of PC and realizes data acquisition function.
Fig. 5 is the parallel port interface synoptic diagram that the present invention carries, in parallel port embodiment of the present invention, be the PORT COM interface arrangement of realizing that data acquisition function will be made, structure is very simple, utilize a common parallel port plug, article 9, thin hard heart yearn, be welded on the data line and the ground wire of parallel port joint respectively, the parallel port that then the parallel port joint is inserted in computing machine gets final product, ground wire with ground wire and system under test (SUT) during use connects, and other signal wire is connected on needs the signal end of image data to get final product.
The outside incoming level that it should be noted that parallel port is a Transistor-Transistor Logic level, and scope is 0~5V, is higher than this scope as the voltage of circuit under test, must increase voltage conversion circuit, in order to avoid cause parallel port to damage.
Generally speaking, the parallel port of computing machine has four kinds of working methods:
SPP pattern (Standard Parallel Port): prevailing parallel port mode, be used to control the parallel port printer, can send control command, read printer modes by the state end by the control end of parallel port, data terminal is unidirectional output, is used for to the printer output data.
EPP pattern (Extended Parallel Port): this pattern is supported high speed (the highest 2Mb/s) transmitted in both directions of data, and addressable a plurality of (256) equipment.
Ecp mode (Enhanced Capability Port): with the EPP mode class seemingly, but increased data compression, FIFO functions such as (high-speed caches).
Two-way mode (Bidirectional, or claim the PS2 pattern): under this pattern, parallel port can not only be realized the function under the SPP, and the bit5 by control register, the selecting data line works in the pattern of inputing or outputing: bit5=0, expression output, bit5=1, then expression input.The present invention can adopt this pattern.Owing to will gather external signal, therefore require parallel port is placed input state, i.e. bit5=1.
Though the principle of parallel port is also uncomplicated, how to realize under the Windows environment that data acquisition is still problem.Under the DOS environment, read the parallel port state and there is no difficulty, get final product with the simple import order of C language, but the close friend that the user interface under the DOS is difficult to do, present most PC are operated in the Windows environment simultaneously, therefore must solve the problem of parallel port reading and writing data under the Windows.
Present widely used Windows system can be divided into two big class: Windows 98 series and Windows 2000 series by ultimate principle.The former comprises Windows 95/98/ME, bottom operation is adopted the mode of VxD; The latter comprises Windows NT/2000/XP, then need adopt the technology of WDM to realize to bottom operation.These two kinds of technology are diverse on specific implementation, but their principle then is the same.
The Windows system is to realize by the protected mode of the serial CPU of Intel x86 is machine-processed to the protection of hardware and I/O port, seek out the operating right to the hardware PORT COM, must make program run in the Ring0 level of privilege.WDM (VxD) is operated in the Ring0 level, in this state, can be as in DOS, system being carried out any operation, but the switching of level of privilege need consume a large amount of CPU time, have a strong impact on the reading speed of port data, cause loss of data, for this reason, the present invention need be operated in the Ring0 level always, up to having gathered whole data.
In addition, the collection characteristics of data-signal are the digital signal continuous whole ground of certain collection point is noted down, and for customer analysis, therefore must guarantee the continuity of data acquisition.Yet Windows is a multitask system, even to being operated in other program of Ring0 level, also will observe the mechanism of thread scheduling.This is just possible, and this thing happens: program is but switched to other thread by system with control from the parallel port reading of data, and obviously this will cause loss of data.And the thread scheduling mechanism of shutdown system how, do not have general technological means and realize, but the ultimate principle that we can the analytic system thread scheduling, it obviously is based on the clock and the interrupt system of PC system, as long as shutdown system is interrupted, just can shield the thread handoff functionality.
By top analysis, we know in data acquisition period, the present invention has closed the interruption of system to prevent loss of data, but this brings a problem thereupon: is the deposit data that collects there? if according to general programmed method, apply for an internal memory, then because the mechanism of Windows system virtualization internal memory, the internal memory of applying for is not necessarily really in RAM, may be in swap file, must carry out the operation of reading writing harddisk so in use, but the interruption of system has been closed but, hard disk interrupts and can't respond, so, obviously system will collapse.Therefore, we must use Windows function: new (NonPagedPool) UCHAR[bufsize], can be assigned to the RAM of bufsize byte, and guarantee that can not be switched to hard disk gets on.We can be with the deposit data that collects in this buffer and can not trigger the operation of hard disk like this.
In data acquisition, if just write down all data of parallel port simply, data just do not have anything to use so, because the opportunity of uncontrollable collection.Therefore the trigger condition that the user must setting data be gathered in interface has only just to begin to note down data when condition satisfies, so just can guarantee final show be the user real need data.Fig. 6 is the configuration interface synoptic diagram of trigger condition, selects 0 expression low level to trigger, and selects 1 expression high level to trigger, and X represents that any level triggers.Therefore, be illustrated in passage 0 as shown in FIG. for low level and passage 1 during, the beginning image data for high level.
Be stored in the memory block, or be pure digital signal through the data that collect, promptly 0 or 1, therefore do not relate to the amplification of signal or the problem of dwindling here, only need data to be converted to digital waveform and get final product according to predefined displaying ratio.
Because the data volume that once collects may be bigger, the user wishes the waveform that shows is carried out convergent-divergent in order to observe data as much as possible.The ratio of figure/data is fairly simple greater than 1: 1 situation, as long as to each data, and no matter 0 or 1, repeat to show that the identical data of several times get final product.But the situation of 1: 1 ratio of method then can not take from raw data extracting part divided data in proportion to show less than to(for) figure/data.Because can cause the serious distortion of display waveform like this, mislead the logic analysis that user's work makes mistake.For example: for 1: 2 ratio, suppose to have following data sequence: 001101011000, if by top wrong method, we will get 1 in the sequence, 3,5,7 ... bit data shows, then data become that 010010 waveform shows will distortion, therefore must take in this case with figure/data greater than the identical method processing of 1: 1 ratio.
The present invention can be applied to the test of various hardware systems, for example, in the project development process that has, need understand the output signal of computing machine CRT interface exactly, mainly be the concrete waveform of line synchronizing signal and field sync signal and their sequential relationship, utilize the present invention just can collect the data-signal of CRT interface, and then analyze, Fig. 7 uses the data-signal demonstration synoptic diagram that the present invention collects the CRT interface, wherein, Channel 0 is horizontal synchronizing pulse, and Channel 1 is a field system chronizing impulse.
Again for example, the serial communication programmer of single card microcomputer is as making a mistake, it is pretty troublesome finding out reason, because both may be the problem that serial port is set, may be again the circuit broken string, also may be baud rate does not match, even serial device damages, this just needs to collect the data-signal of serial device, observes the signal waveform on the circuit, determines failure cause rapidly.We know, serial port circuit state at ordinary times is a high level, start bit is represented with 0 when sending data, in order to catch the valid data of serial port online data, can set corresponding seizure trigger condition, Fig. 8 A uses the trigger condition synoptic diagram that the present invention catches the serial transmission line data, the serial port that adopts this setting to collect sends data waveform shown in Fig. 8 B, in conjunction with the analysis of serial port communications protocol as can be known, these data are 0 * 55,0xaa.
Use the present invention, data-signal can be shown by graphoscope, and need not rely on special-purpose signal analysis equipment again, and from having saved cost greatly, and also use easily, image data if desired, the hardware cost of image data is also very cheap, only need a PORT COM interface, several cables just can carry out data acquisition, and are simple and practical, take into full account the demand in the typical hardware exploitation, can satisfy the needs of great majority exploitation, and performance also is reliable.
The above is preferred embodiment of the present invention only, is not to be used for limiting scope of the present invention; The various equivalences of carrying out according to the present invention change and modification all should be covered by within the scope of invention.

Claims (6)

1, a kind of method for displaying waveform of data-signal shows by graphoscope in order to the data-signal that will collect, and this method comprises:
Determine display parameter and current data presented reference position;
Determine displayable data total amount according to display parameter;
Read a data to be displayed from the data field according to the data reference position;
With this data separating is the independent values of 8 data passages;
According to these display parameter the data of each passage are converted to digital waveform; And
When reaching this displayable data total amount, stop to show.
2, the method for displaying waveform of data-signal as claimed in claim 1 is characterized in that described display parameter comprise: figure/data presentation ratio that the current resolution of display and user set.
3, the method for displaying waveform of data-signal as claimed in claim 1 is characterized in that the described step that reads a data to be displayed from the data field, is to read from the hard-disc storage district.
4, the method for displaying waveform of data-signal as claimed in claim 1 is characterized in that the described step that reads a data to be displayed from the data field, is to read from the application's data memory block.
5, the method for displaying waveform of data-signal as claimed in claim 1 is characterized in that this method also comprises a data acquisition, comprising:
Hardware to be measured is linked to each other with the computing machine PORT COM;
Data acquisition amount and trigger collection condition are set;
The memory headroom that distributes respective numbers according to the data acquisition amount from kernel;
The multithreading handoff functionality of masking operation system;
Read in hardware data to be measured from PORT COM continuously according to the trigger collection condition;
Deposit the data that collect the memory headroom of kernel distribution in until being filled with;
The multithreading handoff functionality of recovery operation system;
The data that collect are gone into the data storage area from the memory headroom unloading that kernel distributes; And
Discharge the memory headroom that this kernel distributes.
6, the method for displaying waveform of data-signal as claimed in claim 5 is characterized in that realizing the step of the multithreading handoff functionality of described shielding/recovery operation system by closing/restart system break.
CN 03133147 2003-07-29 2003-07-29 Wave shape display system for data signal and method thereof Expired - Fee Related CN1261857C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03133147 CN1261857C (en) 2003-07-29 2003-07-29 Wave shape display system for data signal and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03133147 CN1261857C (en) 2003-07-29 2003-07-29 Wave shape display system for data signal and method thereof

Publications (2)

Publication Number Publication Date
CN1577245A CN1577245A (en) 2005-02-09
CN1261857C true CN1261857C (en) 2006-06-28

Family

ID=34579001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03133147 Expired - Fee Related CN1261857C (en) 2003-07-29 2003-07-29 Wave shape display system for data signal and method thereof

Country Status (1)

Country Link
CN (1) CN1261857C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334985B (en) 2007-06-27 2012-02-01 深圳迈瑞生物医疗电子股份有限公司 Wave data displaying apparatus and method
CN101358861B (en) * 2008-06-30 2011-11-09 重庆邮电大学 Waveshape displaying, controlling processor based on IP core technology
CN106716381B (en) * 2015-12-31 2018-11-20 深圳市大疆创新科技有限公司 Data analysing method, system and equipment
CN106445136B (en) * 2016-09-20 2018-05-04 华南理工大学 Data waveform restoration methods, system and device

Also Published As

Publication number Publication date
CN1577245A (en) 2005-02-09

Similar Documents

Publication Publication Date Title
US6539418B2 (en) Method and system for intelligently controlling a remotely located computer
US11775320B2 (en) Overflow detection and correction in state machine engines
CN1310150C (en) Embedded software test method
US20040158776A1 (en) Trace reporting method and system
CN100530331C (en) Liquid crystal panel driving device and its driving method
CN1339128A (en) On-chip debug system
CN1261857C (en) Wave shape display system for data signal and method thereof
CN101051452A (en) Screen display system and connection line with same
US5410686A (en) Methods for scan path debugging
CN1143236C (en) Method and apparatus for displaying graticule window data on computer screen
CN1327350C (en) Digital signal acquisition system and method
CN114691481A (en) Abnormity positioning method and device and readable storage medium
CN111953352B (en) Data compression display method and device based on FPGA system and storage medium
CN1831785A (en) Micro processor and method using in firmware program debug
CN202372572U (en) Visual multi-path jumping pulse measurement virtual logic analyzer
CN101059769A (en) Universal serial bus device test system and its method
CN1421795A (en) Remote operation device for controlling several remote computer units via network
CN1545004A (en) High speed USB data communication interface arrangement
CN1619517A (en) Multichannel internal integrated circuit
CN1874463A (en) Device of asymchronous acquisition for image in real time
CN1507588A (en) Method and apparatus for gathering queue performance data
CA2612872C (en) Method and system for intelligently controlling a remotely located computer
Berner High-speed USB2. 0 AER interfaces
CN114167777A (en) Design method of portable motor performance analysis equipment based on FPGA
CN1897668A (en) Digital-image non-loss recorder

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060628

Termination date: 20100729