CN102467348B - The method and system of data are received from surveying instrument - Google Patents

The method and system of data are received from surveying instrument Download PDF

Info

Publication number
CN102467348B
CN102467348B CN201010534885.5A CN201010534885A CN102467348B CN 102467348 B CN102467348 B CN 102467348B CN 201010534885 A CN201010534885 A CN 201010534885A CN 102467348 B CN102467348 B CN 102467348B
Authority
CN
China
Prior art keywords
data
source code
code
surveying instrument
grouping
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
CN201010534885.5A
Other languages
Chinese (zh)
Other versions
CN102467348A (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.)
Rigol Technologies Inc
Original Assignee
Rigol Technologies Inc
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 Rigol Technologies Inc filed Critical Rigol Technologies Inc
Priority to CN201010534885.5A priority Critical patent/CN102467348B/en
Publication of CN102467348A publication Critical patent/CN102467348A/en
Application granted granted Critical
Publication of CN102467348B publication Critical patent/CN102467348B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of method and system receiving data from surveying instrument, the method comprises a source code receiving step (S51), receives the source code that described surveying instrument exports; A data generating step (S52), according to a kind of data layout selected from multiple data layout, extracts data message code from described source code; A data displaying (S53), according to described data message code, carries out data display.This system comprises a source code receiving-member (101), and a data generating components (102), a number is parts (103) according to the show.The present invention can not only draw the True Data of surveying instrument, also by selecting predetermined various modes that these real Plotting data are become waveform, reappear the output display of surveying instrument, make user watch the true output situation of distance apparatus intuitively by application software.

Description

The method and system of data are received from surveying instrument
Technical field
The present invention relates to control method and the system of a kind of computing machine and surveying instrument, particularly relate to a kind of method and system receiving data from surveying instrument.
Background technology
In Industrial Engineering and education of science field, measure testing tool and be all experiment, manufacture basic tool indispensable in the links such as production, test, such as oscillograph, multimeter, frequency spectrograph, signal source are all conventional multimeters.Along with the development of science and technology, surveying instrument is also transformed to digital measuring instruments by analogue measurement instrument.Digitized surveying instrument has the advantage not available for a lot of analogue measurement instrument, such as, be convenient to store, conveniently carry out data analysis and calculating, strong interference immunity etc.In addition, digital measuring instrument also has a unique advantage, it can be connected with computing machine easily, forms a measuring system, utilizes computing machine rich in natural resources and powerful function control surveying instrument and carry out more complicated process to measurement result.
With reference to Fig. 1, current measuring system 1 comprises a computing machine 11 and at least one surveying instrument 12, and each surveying instrument 12 is connected with computing machine 11 by an interface 13.The equipment that computing machine 11 can be PC (PC), server (server) or the client (client) etc. that is connected to server have data operation and processing capacity.Surveying instrument 12 is the equipment with data acquisition function and actual measurement function, such as, be oscillograph, multimeter, frequency spectrograph, signal source, also can be to measure board, can also be even sensor.Interface 13 can be vxi bus, PXI bus, GPIB, serial ports, parallel port or LAN mouth, and serial ports comprises USB interface, RS232 etc.
Conveniently user controls different surveying instruments 12, receives data from surveying instrument 12 simultaneously, and computing machine 11 also comprises at least one application program.Application program is used for computer for controlling 11 pairs of surveying instruments 12 and carries out various operation and receive data from surveying instrument 12.For example, referring to shown in Fig. 2, Fig. 2 be National Instruments (NI) company prior art disclosed in application program 2 from surveying instrument receive data and with ASCII character form display data window 21; Shown in reference Fig. 3, Fig. 3 is that the application program 2 disclosed in prior art of National Instruments (NI) company is from surveying instrument reception data and with the window 31 of byte form display data.Shown in reference Fig. 4, Fig. 4 is that the application program 4 disclosed in prior art of Agilent (Agilent) company is from surveying instrument reception data and with the window 41 of ASCII character form display data.
The application program that National Instruments (NI) company and Agilent (Agilent) company provide difference but both provide with regard to basic function and receive data from surveying instrument and show the function of data to some extent on type of service, but the data of the two display are all the source codes received from surveying instrument, some non-data information are contained in source code, such as: data header information, when with ASCII character format transmission, some commas can be comprised between character string, and in one format as ASCII character form, byte form, double byte format, these source codes show by nybble form, the True Data of surveying instrument can not be drawn the form of expression of these source codes, surveying instrument true output situation now can not be watched intuitively.
Summary of the invention
The True Data of surveying instrument can not be drawn for solving prior art application software, and the problem of true output situation of surveying instrument can not be watched intuitively, the invention provides a kind of method receiving data from surveying instrument, comprise the steps:
A source code receiving step, receives the source code that described surveying instrument exports;
A data generating step, according to a kind of data layout selected from multiple data layout, extracts data message code from described source code;
A data displaying, according to described data message code, carries out data display.
Described data generating step comprises a grouping step and an extraction step, described grouping step, according to a kind of data layout selected from multiple predetermined data layout, described source code is divided into groups, form grouping information code, described extraction step, according to described grouping information code, extracts data message code.
Described multiple predetermined data layout comprises ASCII character form, byte form, double byte format, nybble form, 64 bit formats.
Also have a data saving step, preserve described source code, described grouping step, according to a kind of data layout selected from described multiple predetermined data layout, the source code of described preservation is divided into groups, the grouping information code described in formation.
Also there is a source code step display after described grouping step, a source code display window showing the source code of described preservation with code form is provided;
Described data displaying, the source code display window described in closedown, and provide one to show the waveform display window of described data message code with waveform display mode.Described waveform display mode is by Plotting data display format in a coordinate system.
Can not draw the True Data of surveying instrument for solving prior art application software, and can not watch the problem of true output situation of surveying instrument intuitively, the present invention also provides a kind of system receiving data from surveying instrument, comprising:
A source code receiving-member, for receiving the source code that described surveying instrument exports;
A data generating components, for according to a kind of data layout selected from multiple data layout, extracts data message code from described source code;
One number parts according to the show, for according to described data message code, carry out data display.
Described data generating components comprises grouping parts and an extracting parts, described grouping parts, for a kind of data layout that foundation is selected from multiple predetermined data layout, described source code is divided into groups, form grouping information code, described extracting parts is used for according to described grouping information code, extracts data message code.
Described multiple predetermined data layout comprises ASCII character form, byte form, double byte format, nybble form, 64 bit formats.
Also have a data saving part part, for preserving described source code, described grouping parts, for according to a kind of data layout selected from described multiple predetermined data layout, divide into groups the source code of described preservation, the grouping information code described in formation.
Also there is a source code display unit after described grouping parts, a source code display window showing the source code of described preservation with code form is provided;
Described data display unit, the source code display window described in closedown, and provide one to show the waveform display window of described data message code with waveform display mode.Described waveform display mode is by Plotting data display format in a coordinate system.
Method and system from surveying instrument reception data of the present invention at least has following beneficial effect:
Owing to having isolated data message from the source code of surveying instrument, make application application software of the present invention can not only draw the True Data of surveying instrument, also by selecting predetermined various modes that these real Plotting data are become waveform, reappear the output display of surveying instrument, make user watch the true output situation of distance apparatus intuitively by application software.
Accompanying drawing explanation
Fig. 1 is the modular structure schematic diagram of current measuring system 1
Fig. 2 is that the application program 2 disclosed in prior art of National Instruments (NI) company receives data and the schematic diagram shown with ASCII character form from surveying instrument
Fig. 3 is that the application program 2 disclosed in prior art of National Instruments (NI) company receives data and the schematic diagram shown with byte form from surveying instrument
Fig. 4 is that the application program 4 disclosed in prior art of Agilent (Agilent) company receives data and the schematic diagram shown with ASCII character form from surveying instrument
Fig. 5 is the present invention receives the method for data process flow diagram 5 from surveying instrument
Fig. 6 first embodiment of the invention and the second embodiment are with the schematic diagram of wave form display data message code
Fig. 7 is the source code display window of first embodiment of the invention and the second embodiment
Fig. 8 is that first embodiment of the invention and the second embodiment show the waveform display window of data message code with waveform display mode
Fig. 9 is that first embodiment of the invention and the second embodiment preserve the schematic diagram of form display data message code with text
Figure 10 is the present invention receives the system of data signal Figure 15 from surveying instrument
Embodiment
Embodiments of the present invention are introduced below in conjunction with accompanying drawing
With reference to Fig. 5, first first embodiment of the invention receives the source code that surveying instrument exports, and selection gist ASCII character form extracts data message code from source code, and for the following source code received, the source code received is as follows:
#9000008999-1.800000e-01,-1.920000e-01,-2.040000e-01,-2.160000e-01,-2.280000e-01,
-2.320000e-01,-2.400000e-01,-2.480000e-01,-2.560000e-01,-2.640000e-01,-2.640000e-01,
-2.640000e-01,-2.680000e-01,-2.680000e-01,-2.720000e-01,-2.680000e-01,-2.640000e-01,
-2.600000e-01,-2.560000e-01,-2.560000e-01,-2.440000e-01,-2.360000e-01,-2.240000e-01,
-2.160000e-01,-2.080000e-01,-1.960000e-01,-1.840000e-01,-1.720000e-01,-1.600000e-01,
-1.480000e-01,-1.320000e-01
From this group source code, extracting the process of data message as follows, first deleting comprising data header information #9000008999 in source code, then the comma deletion that will comprise in source code, and the form of foundation ASCII character representation of data to extract data message code as follows:
-0.18-0.192-0.204-0.216-0.228-0.232-0.24-0.248-0.256-0.264-0.264-0.264-0.264-0.268
-0.268-0.272-0.268-0.264-0.264-0.26-0.256-0.256-0.244-0.236-0.224-0.216-0.216-0.208
-0.208-0.196-0.184-0.172-0.16-0.148-0.148-0.132
With reference to Fig. 6, that first embodiment of the invention is with the schematic diagram of wave form display data message code, during display, the method of drawing waveforms is as follows: with the number of data message code for horizontal ordinate, with the numerical value of data message code for ordinate, such as :-0.18 is horizontal ordinate first point, the value of the ordinate that this point is corresponding is-0.18,-0.192 is horizontal ordinate second point, the value of the ordinate that this point is corresponding is-0.192,-0.204 is horizontal ordinate the 3rd point, the value of the ordinate that this point is corresponding is-0.204,-0.216 is horizontal ordinate the 4th point, the value of the ordinate that this point is corresponding is-0.216,-0.228 is horizontal ordinate the 5th point, the value of the ordinate that this point is corresponding is-0.228, the data message code of all taking-ups is drawn according to above-mentioned rule, just can obtain the oscillogram shown in Fig. 6, this oscillogram is consistent with the oscillogram on instrument, no matter computing machine and surveying instrument distance are how far, the output on instrument can be watched intuitively, here oscillogram also can be understood as Plotting data display format in a coordinate system, this display mode display mode current with surveying instrument is consistent.
As an example, with reference to Fig. 7, also have a source code step display, a source code display window carrying out showing according to the source code form after ASCII character format packets is provided.
As an example, when not comprising data header information in the source code received from instrument, in above-mentioned treatment step, just do not comprise the step of deleting data header information.
As an example, after the source code receiving surveying instrument output, also have a data saving step, preserve described source code, when extracting data message code, according to the source code transferring preservation, extraction data are carried out, the operations such as display to the source code preserved.
With reference to Fig. 8, as an example, after extraction data message code, also have a data displaying, the source code display window described in closedown, and provide one to show the waveform display window of described data message code with waveform display mode.
As an example, with reference to Fig. 9, after extraction data message code, can also there is one data message code is preserved into the step of text, the source code display window described in closedown, and provide one to preserve the schematic diagram of form display data message code with text.
Equally first second embodiment of the invention receives the source code that surveying instrument exports, and selection gist ASCII character form first divides into groups to source code, from source code, extract data message code again, for the following source code received, the source code received is as follows:
#9000008999-1.800000e-01,-1.920000e-01,-2.040000e-01,-2.160000e-01,-2.280000e-01,
-2.320000e-01,-2.400000e-01,-2.480000e-01,-2.560000e-01,-2.640000e-01,-2.640000e-01,
-2.640000e-01,-2.680000e-01,-2.680000e-01,-2.720000e-01,-2.680000e-01,-2.640000e-01,
-2.600000e-01,-2.560000e-01,-2.560000e-01,-2.440000e-01,-2.360000e-01,-2.240000e-01,
-2.160000e-01,-2.080000e-01,-1.960000e-01,-1.840000e-01,-1.720000e-01,-1.600000e-01,
-1.480000e-01,-1.320000e-01
During grouping, owing to comprising data header information in above-mentioned source code, first deleted by data header information, be then divide into groups to source code in interval with comma, the source code information after grouping is as follows:
-1.800000e-01
-1.920000e-01
-2.040000e-01
-2.160000e-01
-2.280000e-01
-2.320000e-01
-2.400000e-01
-2.480000e-01
-2.560000e-01
-2.640000e-01
-2.640000e-01
-2.640000e-01
-2.680000e-01
-2.680000e-01
-2.720000e-01
-2.680000e-01
-2.640000e-01
-2.600000e-01
-2.560000e-01
-2.560000e-01
-2.440000e-01
-2.360000e-01
-2.240000e-01
-2.160000e-01
-2.080000e-01
-1.960000e-01
-1.840000e-01
-1.720000e-01
-1.600000e-01
-1.480000e-01
-1.320000e-01
Data message code is extracted according to the form of ASCII character representation of data as follows from the source code after this component group:
-0.18-0.192-0.204-0.216-0.228-0.232-0.24-0.248-0.256-0.264-0.264-0.264-0.264-0.268
-0.268-0.272-0.268-0.264-0.264-0.26-0.256-0.256-0.244-0.236-0.224-0.216-0.216-0.208
-0.208-0.196-0.184-0.172-0.16-0.148-0.148-0.132
With reference to Fig. 6, that second embodiment of the invention is with the schematic diagram of wave form display data message code, during display, the method of drawing waveforms is as follows: with the number of data message code for horizontal ordinate, with the numerical value of data message code for ordinate, such as :-0.18 is horizontal ordinate first point, the value of the ordinate that this point is corresponding is-0.18,-0.192 is horizontal ordinate second point, the value of the ordinate that this point is corresponding is-0.192,-0.204 is horizontal ordinate the 3rd point, the value of the ordinate that this point is corresponding is-0.204,-0.216 is horizontal ordinate the 4th point, the value of the ordinate that this point is corresponding is-0.216,-0.228 is horizontal ordinate the 5th point, the value of the ordinate that this point is corresponding is-0.228, the data message code of all taking-ups is drawn according to above-mentioned rule, just can obtain the oscillogram shown in Fig. 6, this oscillogram is consistent with the oscillogram on instrument, no matter computing machine and surveying instrument distance are how far, the output on instrument can be watched intuitively.
As an example, when not comprising data header information in the source code received from instrument, in above-mentioned packet transaction step, just do not comprise the step of deleting data header information.
As an example, with reference to Fig. 7, also have a source code step display, a source code display window carrying out showing according to the source code form after ASCII character format packets is provided.
With reference to Fig. 8, after extraction data message code, also have a data displaying, the source code display window described in closedown, and provide one to show the waveform display window of described data message code with waveform display mode.
As an example, after the source code receiving surveying instrument output, also have a data saving step, preserve described source code, when dividing into groups, according to the source code transferring preservation, the source code preserved is divided into groups, extracts data, the operations such as display.
As an example, with reference to Fig. 9, after extraction data message code, can also there is one data message code is preserved into the step of text, the source code display window described in closedown, and provide one to preserve the schematic diagram of form display data message code with text.
As an example, data layout can also be byte form, double byte format, nybble form, the one in 64 bit formats, can process source code according to the method for the first embodiment and the second embodiment and show.When data layout is byte form, grouping or extract data time, be according to 8 one group form extract, when data layout is double byte format, when grouping or extraction data, be according to 16 one group form extract, when data layout is nybble form, grouping or extract data time, be according to 32 one group form extract, when data layout is 64 bit format, grouping or extract data time, be according to 64 one group form extract.
With reference to Figure 10, the system that the present invention receives data from surveying instrument comprises a source code receiving-member 101, data generating components 102, number parts 103 according to the show.Source code receiving-member 101, for receiving the source code that described surveying instrument exports; Data generating components 102, for according to a kind of data layout selected from multiple data layout, extracts data message code from described source code; Data display unit 103, for according to described data message code, carries out data display.
The present invention has isolated data message from the source code of surveying instrument, make application application software of the present invention can not only draw the True Data of surveying instrument, also by selecting predetermined various modes that these real Plotting data are become waveform, reappear the output display of surveying instrument, make user watch the true output situation of distance apparatus intuitively by application software.
Although describe embodiments of the present invention by reference to the accompanying drawings, those of ordinary skill in the art can make various changes and modifications within the scope of the appended claims.

Claims (10)

1. receive a method for data from surveying instrument, it is characterized in that, comprise the steps:
A source code receiving step, receives the source code that described surveying instrument exports;
A data generating step, according to a kind of data layout selected from multiple data layout, and according to the representation of data form of described selected data layout, extracts data message code from described source code;
A data displaying, according to described data message code, carries out data display.
2. method according to claim 1, it is characterized in that, described data generating step comprises a grouping step and an extraction step, described grouping step, according to a kind of data layout selected from multiple predetermined data layout, described source code is divided into groups, form grouping information code, described extraction step, according to described grouping information code, extracts data message code.
3. method according to claim 2, is characterized in that, described multiple predetermined data layout comprises ASCII character form, byte form, double byte format, nybble form, 64 bit formats.
4. method according to claim 2, it is characterized in that, also has a data saving step, preserve described source code, described grouping step, according to a kind of data layout selected from described multiple predetermined data layout, the source code of described preservation is divided into groups, the grouping information code described in formation.
5. method according to claim 4, is characterized in that, also has a source code step display after described grouping step, provides a source code display window showing the source code of described preservation with code form;
Described data displaying, the source code display window described in closedown, and provide one to show the waveform display window of described data message code with waveform display mode.
6. receive a system for data from surveying instrument, it is characterized in that, comprising:
A source code receiving-member, for receiving the source code that described surveying instrument exports;
A data generating components, for according to a kind of data layout selected from multiple data layout, and according to the representation of data form of described selected data layout, extracts data message code from described source code;
One number parts according to the show, for according to described data message code, carry out data display.
7. system according to claim 6, it is characterized in that, described data generating components comprises grouping parts and an extracting parts, described grouping parts, for according to a kind of data layout selected from multiple predetermined data layout, described source code is divided into groups, form grouping information code, described extracting parts is used for according to described grouping information code, extracts data message code.
8. system according to claim 7, is characterized in that, described multiple predetermined data layout comprises ASCII character form, byte form, double byte format, nybble form, 64 bit formats.
9. system according to claim 7, it is characterized in that, also has a data saving part part, for preserving described source code, described grouping parts, for according to a kind of data layout selected from described multiple predetermined data layout, the source code of described preservation is divided into groups, the grouping information code described in formation.
10. system according to claim 9, is characterized in that, also has a source code display unit after described grouping parts, provides a source code display window showing the source code of described preservation with code form;
Described data display unit, the source code display window described in closedown, and provide one to show the waveform display window of described data message code with waveform display mode.
CN201010534885.5A 2010-11-03 2010-11-03 The method and system of data are received from surveying instrument Active CN102467348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010534885.5A CN102467348B (en) 2010-11-03 2010-11-03 The method and system of data are received from surveying instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010534885.5A CN102467348B (en) 2010-11-03 2010-11-03 The method and system of data are received from surveying instrument

Publications (2)

Publication Number Publication Date
CN102467348A CN102467348A (en) 2012-05-23
CN102467348B true CN102467348B (en) 2016-01-20

Family

ID=46071031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010534885.5A Active CN102467348B (en) 2010-11-03 2010-11-03 The method and system of data are received from surveying instrument

Country Status (1)

Country Link
CN (1) CN102467348B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514087B (en) * 2012-06-18 2016-09-28 中国电子科技集团公司第四十一研究所 A kind of software simulation verification system of measuring instrument
CN103870566B (en) * 2014-03-10 2017-09-15 崔永杰 A kind of method and device of real-time data collection
US9794433B1 (en) * 2016-04-20 2017-10-17 Kabushiki Kaisha Toshiba System and method for remote monitoring of document processing devices
US10454647B2 (en) 2016-08-12 2019-10-22 Telefonaktiebolaget Lm Ericsson (Publ) One-segment PUCCH formats

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3237692B2 (en) * 1996-04-24 2001-12-10 横河電機株式会社 Converter for near infrared spectrometer
CN100359835C (en) * 2005-10-13 2008-01-02 中兴通讯股份有限公司 Decoding method based on explanation type signal
CN101170437A (en) * 2007-11-21 2008-04-30 中兴通讯股份有限公司 A method for signaling tracking client to display signaling message
CN101826113A (en) * 2010-05-14 2010-09-08 珠海世纪鼎利通信科技股份有限公司 High-efficiency and unified method for storing wireless measurement data

Also Published As

Publication number Publication date
CN102467348A (en) 2012-05-23

Similar Documents

Publication Publication Date Title
CN102467348B (en) The method and system of data are received from surveying instrument
CN110108955A (en) A kind of new-energy grid-connected performance automatic test analysis platform and detection method
CN104062570A (en) Power transformer partial discharge signal frequency-selecting method
US11929902B2 (en) PCIe signal bandwidth determining method, apparatus and device
CN102621365A (en) Test and measurement instrument with common presentation of time domain data
CN106645942B (en) Low-cost high-precision embedded signal acquisition and analysis system and method
CN204330001U (en) A kind of angle to digital conversion Module Automatic Test System based on LAN (Local Area Network)
CN105260422A (en) Multi-format waveform data file batch processing method
CN104268300A (en) Multifunctional data acquisition system
CN109961861A (en) Reactivity measurement instrument under a kind of nuclear power plant reactor depth subcritical state
CN100584278C (en) Device for testing the compatibility of front end amplification channel of ultrasonic diagnostic device
CN202939275U (en) Wafer IC test equipment
CN114184941A (en) Test system and method for module containing ADC chip
CN105044407A (en) Method and device for generating random simulation waveforms
CN201622352U (en) Alpha radiation nucleus signal simulator
CN204241102U (en) Based on the transformer vibration monitoring verification platform of DDS
CN103176013A (en) Oscilloscope capable of defining measuring range by user and achieving method thereof
CN201763328U (en) Compensation neutron logger
CN210807303U (en) Portable electric power protocol tester
CN102546268A (en) Power remote control tester
CN205785673U (en) A kind of dynamic balance detection system based on ARM
CN105974221A (en) Universal adapter for multi-channel bus interface module testing
CN104062571A (en) Power transformer partial discharging signal windowing display method
CN102467347A (en) Method and system for reading measurement information with status bit information from measurement instrument
CN203929966U (en) A kind of cable fault detecting device based on industrial control board and FPGA

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