CN102466761A - Method and system for obtaining completed spectral data and apparatuses - Google Patents

Method and system for obtaining completed spectral data and apparatuses Download PDF

Info

Publication number
CN102466761A
CN102466761A CN2010105311066A CN201010531106A CN102466761A CN 102466761 A CN102466761 A CN 102466761A CN 2010105311066 A CN2010105311066 A CN 2010105311066A CN 201010531106 A CN201010531106 A CN 201010531106A CN 102466761 A CN102466761 A CN 102466761A
Authority
CN
China
Prior art keywords
spectrum data
frequency spectrum
frequency
host computer
sweep
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
CN2010105311066A
Other languages
Chinese (zh)
Other versions
CN102466761B (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 CN201010531106.6A priority Critical patent/CN102466761B/en
Publication of CN102466761A publication Critical patent/CN102466761A/en
Application granted granted Critical
Publication of CN102466761B publication Critical patent/CN102466761B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The invention relates to a method and a system for obtaining completed spectral data and apparatuses. The method comprises: a spectrum analyzer respectively stores completed spectral data that are generated by completed frequency sweeping and uncompleted spectral data that are generated by uncompleted frequency sweeping in independent storage areas; a PC host computer sends a spectral data reading request to the spectrum analyzer, wherein the request contains a type of spectral data that is going to be read; the spectrum analyzer receives the spectral data reading request and sends spectral data with a corresponded type to the PC host computer, wherein the sent spectral data carries a flag bit that indicating whether a frequency sweeping state is completed or not; and the PC host computer receives the spectral data and the flag bit is parsed from the spectral data; and a type of spectral data that are going to be read at the next time is determined according to the flag bit information and the reading process of the next-time spectral data is executed. According to the above-mentioned scheme in the invention, completed spectral data are obtained, so that a host computer of a PC terminal can present a frequency sweeping characteristic of a spectrum apparatus during a continuous refreshing and displaying process of frequency sweep data.

Description

Obtain the method, device and the system that accomplish frequency spectrum data
Technical field
The present invention relates to the spectrum analyzer technical field, particularly a kind of method, device and system that accomplishes frequency spectrum data that obtain.
Background technology
According to the relation of spectrum analyzer and PC, spectrum analyzer can be divided into two kinds: the instrument of a kind of PC of being based on, and this instrument is built among the PC, and as the specific installation existence of PC, the parts such as display keyboard of instrument itself realize by the resource of PC; Another kind is an embedded instrumentation, and the own cover system of instrument itself is realized its all functions, and like demonstration, keyboard, power supply power supply or the like, spectrum analyzer links to each other with PC and fetches the resource of using PC, and PC realizes the operation to instrument through the transmission control command.
The second way also is called as the host computer technology; The PC end is realized the control to the instrument end through the application tool software of self; This software is based on the spectrum analyzer basic function, with SCPI (Standard Commands for Programmable Instruments, programmable instrument standard commands) command set and VISA (Virtual Instrument Software Architecture; The virtual instrument software framework) drives to media, carry out spectrum analysis by the resource that PC is powerful.This type software that the general PC of title holds is " host computer ", and corresponding spectrum analyzer is called " slave computer ", and slave computer comprises data collecting card hardware and data acquisition card software.Fig. 1 is existing virtual instrument technique schematic diagram.
Because the restriction of instrument cost, general instrument all is structured on the embedded system, but the resource-constrained of embedded system (little like storage space, arithmetic speed is low etc.) causes various limited use.Embedded instrumentation has been alleviated this problem through using the PC resource, and the SCPI that " host computer " software that on PC, moves provides with reference to instrument fully orders and controls the use instrument.
Be example with the order of obtaining the current frequency spectrum data of spectrum analyzer below, how the PC that prior art is described controls to realize what frequency spectrum data showed instrument.Hereinafter, the frequency sweep data that frequency sweep accomplish to generate are called the completion frequency spectrum data, and frequency sweep is not accomplished the data of generation and is called and do not accomplish frequency spectrum data.
Option A:
1) PC sends the order of beginning frequency sweep to slave computer;
2) whether PC uses order inquiry frequency sweep such as * OPC to finish, if finish entering process 3, otherwise continuation deterministic process 2;
3) if frequency sweep finishes, PC reads the frequency sweep data.
The problem of this scheme is: because frequency sweep can continue always, the data that read possibly be frequency sweep data that contain outside this frequency sweep.And PC is in waiting status always in the process 2, can't read the data in the frequency sweep process, and the efficient of reading of data is very low.
Option b:
1) PC sends the single wavelength sweep order to slave computer;
2) PC sends the order of beginning frequency sweep to slave computer;
3) whether PC uses order inquiry frequency sweep such as * OPC to finish, if finish entering process 4, otherwise continuation deterministic process 3;
4) read the frequency sweep data.
This scheme must be used the single wavelength sweep order just can read one and accomplish frequency spectrum data.Instrument has just stopped after accomplishing a frequency sweep, continue if desired to read just to start the frequency sweep action once more, this scheme increased between PC and the instrument alternately.And the same with option A, process 3 is in waiting status always, can't read the data in the frequency sweep process, and the efficient of reading of data is very low.
Analysis through above-mentioned example can be known; The SCPI that the instrument of prior art provides is only to the function of instrument own; There is not the specific demand that PC controls instrument of considering of system; When carrying out spectrum analysis, the PC end possibly can't obtain to accomplish frequency spectrum data, also can cause treatment effeciency very low even perhaps obtained the completion frequency spectrum data.
Summary of the invention
The embodiment of the invention provides a kind of method, device and system that accomplishes frequency spectrum data that obtain, to solve the problem that can't obtain to accomplish frequency spectrum data or acquisition completion frequency spectrum data inefficiency in the prior art.
On the one hand; The embodiment of the invention provides a kind of method of accomplishing frequency spectrum data of obtaining, and said method comprises: spectrum analyzer is accomplished the completion frequency spectrum data that generated and frequency sweep with frequency sweep and is not accomplished the not completion frequency spectrum data that is generated and be stored in independently memory block respectively; The PC host computer sends frequency spectrum data to said spectrum analyzer and reads request, comprises the frequency spectrum data type of desiring to read in the described request; Said spectrum analyzer receives said frequency spectrum data and reads request, sends the frequency spectrum data of respective type to said PC host computer, and in the frequency spectrum data that is sent, carries the marker bit whether the frequency sweep state is accomplished; Said PC host computer receives said frequency spectrum data, from said frequency spectrum data, parses marker bit, according to the definite frequency spectrum data type that reads of said marker bit information next time, and carries out the process that reads of frequency spectrum data next time.
On the other hand; The embodiment of the invention also provides a kind of system that accomplishes frequency spectrum data that obtains; Said system comprises: spectrum analyzer, and frequency sweep is accomplished the completion frequency spectrum data generated and frequency sweep do not accomplish the not completion frequency spectrum data that is generated and be stored in independently memory block respectively; The frequency spectrum data that receives the transmission of PC host computer reads request, sends the frequency spectrum data of respective type to said PC host computer, and in the frequency spectrum data that is sent, carries the marker bit whether the frequency sweep state is accomplished; The PC host computer sends frequency spectrum data to said spectrum analyzer and reads request, comprises the frequency spectrum data type of desiring to read in the described request; Receive said frequency spectrum data, from said frequency spectrum data, parse marker bit,, and carry out the process that reads of frequency spectrum data next time according to the definite frequency spectrum data type that reads of said marker bit information next time.
Another aspect; The embodiment of the invention also provides a kind of spectrum analyzer; Said spectrum analyzer comprises: storage unit is used for that frequency sweep is accomplished the completion frequency spectrum data generated and frequency sweep and does not accomplish the not completion frequency spectrum data that is generated and be stored in independently memory block respectively; Data transmission unit; Be used to receive the frequency spectrum data that the PC host computer sends and read request; Comprise the frequency spectrum data type of desiring to read in the described request, send the frequency spectrum data of respective type to said PC host computer, and in the frequency spectrum data that is sent, carry the marker bit whether the frequency sweep state is accomplished.
Also have on the one hand, the embodiment of the invention also provides a kind of PC host computer, and said PC host computer comprises: receive processing unit, be used for sending frequency spectrum data to spectrum analyzer and read request, comprise the frequency spectrum data type of desiring to read in the described request; The frequency spectrum data that the received spectrum analyser sends carries the marker bit whether the frequency sweep state is accomplished in the frequency spectrum data that is received; According to the time sequencing frequency spectrum data that display process received successively; The mark resolution unit is used for parsing said marker bit from said frequency spectrum data, according to the definite frequency spectrum data type that reads of the information of said marker bit next time, and carries out the process that reads of frequency spectrum data next time.
Beneficial effect of the present invention is: the method for the embodiment of the invention, device and system come to store respectively not accomplish frequency spectrum data and accomplish frequency spectrum data through open up two memory blocks at spectrum analyzer one end; To accomplish frequency spectrum data and carry out special protection; To realize that the PC end can read the frequency sweep data continuously and (comprise the completion frequency spectrum data in the process of instrument end frequency spectrum frequency sweep; Comprise again and do not accomplish frequency spectrum data),, PC end host computer serial refresh demonstrates the characteristics of frequency spectrum instrument frequency sweep in showing the process of these data.
Description of drawings
Fig. 1 is existing virtual instrument technique schematic diagram;
Fig. 2 is the overall flow figure of embodiment of the invention method;
The systematic schematic diagram of Fig. 3 embodiment of the invention;
Fig. 4 is the functional block diagram of embodiment of the invention spectrum analyzer;
Fig. 5 is the functional block diagram of embodiment of the invention PC host computer;
Fig. 6 is the detailed operation process flow diagram of embodiment of the invention upper computer end;
Fig. 7 is the detailed operation process flow diagram of embodiment of the invention slave computer end;
The synoptic diagram of not accomplishing frequency spectrum data that Fig. 8 reads for the embodiment of the invention;
The synoptic diagram of the completion frequency spectrum data that Fig. 9 reads for the embodiment of the invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention at first provides a kind of method of accomplishing frequency spectrum data of obtaining; (both comprised the completion frequency spectrum data can read the frequency sweep data in the process that is implemented in continuous frequency sweep continuously; Comprise again and do not accomplish frequency spectrum data), hold the characteristics that demonstrate frequency spectrum instrument frequency sweep in the continuous process that refreshes these data of demonstration of host computer at PC.
Fig. 2 is the overall flow figure of embodiment of the invention method, and is as shown in Figure 2, and this method comprises:
S201, spectrum analyzer accomplish the completion frequency spectrum data that generated and frequency sweep with frequency sweep and do not accomplish the not completion frequency spectrum data that is generated and be stored in independently memory block respectively;
Frequency sweep needs the time, and its time possibly if obtain accomplishing frequency spectrum data, just must be waited for after it accomplishes a frequency sweep and just can read much larger than the time of reading the frequency sweep data; But; Also can read the frequency sweep data in the frequency sweep process; Frequency sweep imperfect tense can read does not accomplish frequency spectrum data (be called " dirty data ", need abandon), can read the completion frequency spectrum data when frequency sweep is accomplished and (be called " net amount certificate "; Need to keep), accomplish frequency spectrum data and be only and have break-up value.
Do not accomplish frequency spectrum data and accomplish frequency spectrum data in order to guarantee that PC can read in the frequency sweep process; The technical scheme of the embodiment of the invention need not stored respectively with the completion frequency spectrum data accomplishing frequency spectrum data at the instrument end; To accomplish frequency spectrum data and carry out special protection, and treat just to upgrade after PC reads.
Particularly, spectrum analyzer is accomplished the memory block that the completion frequency spectrum data that is generated is stored in the formation form with frequency sweep, frequency sweep is not accomplished the memory block that frequency spectrum data is stored in non-formation form of not accomplishing that is generated.
S202, PC host computer send frequency spectrum data to spectrum analyzer and read request, comprise the frequency spectrum data type of desiring to read in this request;
Alternatively; The PC host computer is first when spectrum analyzer transmission frequency spectrum data reads request; The frequency spectrum data type of desiring to read that comprises in this request is not for accomplishing frequency spectrum data, that is, the PC host computer is to read the process that reads that frequency spectrum data starts the entire spectrum data of not accomplishing.Certainly, if the instrument end has stored the completion frequency spectrum data, so, the PC host computer also can read the process that reads that frequency spectrum data starts the entire spectrum data of accomplishing earlier.
S203, spectrum analyzer received spectrum data read request are sent the frequency spectrum data of respective type to the PC host computer, and in the frequency spectrum data that is sent, are carried the marker bit whether the frequency sweep state is accomplished;
Particularly, when having the completion frequency spectrum data in the completion frequency spectrum data memory block of spectrum analyzer, spectrum analyzer carries the marker bit that frequency sweep is accomplished in the frequency spectrum data that is sent; When not having the completion frequency spectrum data in the completion frequency spectrum data memory block of spectrum analyzer, spectrum analyzer carries the uncompleted marker bit of frequency sweep in the frequency spectrum data that is sent.
The technical scheme of the embodiment of the invention adopt a sync mark realize both in communication process synchronously, whether this sync mark exists the instrument end is accomplished frequency spectrum data and informs the PC end.Instrument according to PC the request of reading send corresponding data, this sync mark can be carried on this and send to the completion frequency spectrum data of PC or do not accomplish in the frequency spectrum data.This sync mark is added after accomplishing frequency sweep by the instrument end, is added in the information of communication, can be added on any position, as long as the PC end can be resolved.
S204, PC host computer received spectrum data parse this marker bit from frequency spectrum data, according to the definite frequency spectrum data type that reads of this marker bit information next time, and carry out the process that reads of frequency spectrum data next time.
Particularly, represent frequency sweep imperfect tense when marker bit, the frequency spectrum data type that the PC host computer reads next time is not for accomplishing frequency spectrum data; When marker bit represented that frequency sweep is accomplished, the frequency spectrum data type that the PC host computer reads next time was for accomplishing frequency spectrum data.
Particularly; Frequency spectrum data situation according to the current storage of instrument end; PC end can carry out following data read operation: when these data that read for accomplishing frequency spectrum data, and the instrument end is when also having the frequency spectrum data of completion, the PC end still reads the completion frequency spectrum data next time; When these data that read for accomplishing frequency spectrum data, and the instrument end do not exist when accomplishing frequency spectrum data, the PC end reads does not next time accomplish frequency spectrum data; When these data that read for not accomplishing frequency spectrum data, and the instrument end has been when having had the frequency spectrum data of completion, the PC end reads the completion frequency spectrum data next time; When these data that read for not accomplishing frequency spectrum data, and the instrument end do not exist when accomplishing frequency spectrum data, the PC end still reads does not next time accomplish frequency spectrum data.
PC end just can learn through inquiry instrument when obtaining frequency spectrum data at every turn whether accomplish frequency spectrum data exists, if existence then obtain the completion frequency spectrum data, if would not do not exist then obtain and do not accomplish frequency spectrum data.This special protection mechanism of instrument end and instrument end make the PC end can equally with the instrument end read coherent completion frequency spectrum data with the cooperation mechanism of PC end.And this scheme can be implemented in to read in the frequency sweep process and not accomplish frequency spectrum data and accomplish frequency spectrum data, and does not need as prior art, to wait for that each frequency sweep completion just can read the completion frequency spectrum data, has improved the efficient of reading of data.
The method of the embodiment of the invention also comprises: S205, PC host computer are stored in the frequency spectrum data that reads in the queue memory according to time sequencing, with the frequency spectrum data of storing in the queue memory according to time sequencing display process successively.
The embodiment of the invention also provides a kind of system that accomplishes frequency spectrum data that obtains, and this system can realize the method for previous embodiment.Fig. 3 is the systematic schematic diagram of the embodiment of the invention.As shown in Figure 3, the system of present embodiment comprises: spectrum analyzer 301, and frequency sweep is accomplished the completion frequency spectrum data generated and frequency sweep do not accomplish the not completion frequency spectrum data that is generated and be stored in independently memory block respectively; The frequency spectrum data that receives the transmission of PC host computer reads request, sends the frequency spectrum data of respective type to the PC host computer, and in the frequency spectrum data that is sent, carries the marker bit whether the frequency sweep state is accomplished; PC host computer 302 sends frequency spectrum data to spectrum analyzer 301 and reads request, comprises the frequency spectrum data type of desiring to read in the request; The received spectrum data parse marker bit from frequency spectrum data, according to the definite frequency spectrum data type that reads of marker bit information next time, and carry out the process that reads of frequency spectrum data next time.
Particularly, as shown in Figure 3, the spectrum analyzer 301 of present embodiment comprises: queue stores district 3011 is used for accomplishing the completion frequency spectrum data that is generated with formation stored in form frequency sweep; Non-queue stores district 3012 is used for not accomplishing the not completion frequency spectrum data that is generated with non-formation stored in form frequency sweep.
Particularly; As shown in Figure 3, the spectrum analyzer 301 of present embodiment also comprises: accomplish frequency spectrum data transmitting element 3013, connect queue stores district 3011; Be used to receive the completion frequency spectrum data transmission request that PC host computer 302 sends, send to PC host computer 302 and accomplish frequency spectrum datas; Do not accomplish frequency spectrum data transmitting element 3014, connect non-queue stores district 3012, be used to receive the not completion frequency spectrum data transmission request that PC host computer 302 sends, send to PC host computer 302 and do not accomplish frequency spectrum data.
Particularly; As shown in Figure 3; The spectrum analyzer 301 of present embodiment also comprises: frequency sweep dry state symbol unit 3015, and connect and accomplish frequency spectrum data transmitting element 3013 and do not accomplish frequency spectrum data transmitting element 3014, be used for when there is the completion frequency spectrum data in queue stores district 3011; Generate frequency sweep and accomplish mark, and in the frequency spectrum data that is sent, carry the marker bit that frequency sweep is accomplished; When not having the completion frequency spectrum data in the queue stores district 3011, generate frequency sweep and do not accomplish mark, and in the frequency spectrum data that is sent, carry the uncompleted marker bit of frequency sweep.
Particularly, as shown in Figure 3, the PC host computer 302 of present embodiment comprises: frequency spectrum data reading unit 3021, be used for sending the frequency spectrum data request of reading and receiving the frequency spectrum data that reads to spectrum analyzer 301, and comprise the frequency spectrum data type of desiring to read in the request; Frequency spectrum data storage unit 3022 connects frequency spectrum data reading unit 3021, is used for the frequency spectrum data that reads is stored in queue memory according to time sequencing; Frequency spectrum data processing unit 3023 connects frequency spectrum data storage unit 3022, and the frequency spectrum data that is used for frequency spectrum data processing unit 3022 is stored is according to time sequencing display process successively.
Particularly; As shown in Figure 3; The PC host computer 302 of present embodiment also comprises: mark resolution unit 3024, connect frequency spectrum data reading unit 3021, and be used to parse marker bit information; When marker bit is represented frequency sweep imperfect tense, the frequency spectrum data type of confirming next time to read is not for accomplishing frequency spectrum data; When marker bit represented that frequency sweep is accomplished, the frequency spectrum data type of confirming next time to read was for accomplishing frequency spectrum data.
System corresponding to Fig. 3; The embodiment of the invention also provides a kind of spectrum analyzer; Fig. 4 is the functional block diagram of this spectrum analyzer; As shown in Figure 4, this spectrum analyzer 301 comprises: storage unit 401 is used for that frequency sweep is accomplished the completion frequency spectrum data generated and frequency sweep and does not accomplish the not completion frequency spectrum data that is generated and be stored in independently memory block respectively; Data transmission unit 402; Be used to receive the frequency spectrum data that the PC host computer sends and read request; Comprise the frequency spectrum data type of desiring to read in the described request, send the frequency spectrum data of respective type to said PC host computer, and in the frequency spectrum data that is sent, carry the marker bit whether the frequency sweep state is accomplished.
Particularly, storage unit 401 comprises queue stores district shown in Figure 3 3011 and non-queue stores district 3012; Data transmission unit 402 comprises completion frequency spectrum data transmitting element 3013 shown in Figure 3, does not accomplish frequency spectrum data transmitting element 3014 and frequency sweep dry state symbol unit 3015.Owing to the detailed operation principle of spectrum analyzer 301 is described among Fig. 3, repeats no more here.
System corresponding to Fig. 3; The embodiment of the invention also provides a kind of PC host computer; Fig. 5 is the functional block diagram of this PC host computer, and is as shown in Figure 5, and PC host computer 302 comprises: receive processing unit 501; Be used for sending frequency spectrum data and read request, comprise the frequency spectrum data type of desiring to read in the described request to spectrum analyzer; The frequency spectrum data that the received spectrum analyser sends carries the marker bit whether the frequency sweep state is accomplished in the frequency spectrum data that is received; According to the time sequencing frequency spectrum data that display process received successively; Mark resolution unit 3024 is used for parsing said marker bit from said frequency spectrum data, according to the definite frequency spectrum data type that reads of the information of said marker bit next time, and carries out the process that reads of frequency spectrum data next time.
Particularly, receive processing unit 501 and comprise frequency spectrum data reading unit 3021 shown in Figure 3, frequency spectrum data storage unit 3022 and frequency spectrum data processing unit 3023.Owing to the detailed operation principle of PC host computer 302 is described among Fig. 3, repeats no more here.
Particularly, mark resolution unit 3024 is used to parse said marker bit information, and when said marker bit is represented frequency sweep imperfect tense, the frequency spectrum data type of confirming next time to read is not for accomplishing frequency spectrum data; When said marker bit represented that frequency sweep is accomplished, the frequency spectrum data type of confirming next time to read was for accomplishing frequency spectrum data.
Specify the PC upper computer end of present embodiment system and the principle of work of slave computer end (being spectrum analyzer) with a concrete example below.
Fig. 6 is the detailed operation process flow diagram of embodiment of the invention upper computer end.As shown in Figure 6, at first the PC upper computer end gets into data read process, and present embodiment is not accomplished frequency spectrum data and begun to read; Then; Carry out reading of data next time through judging the sync mark in this communication process; Frequency spectrum data is accomplished in existence if this mark is represented the instrument end, and the data that next time read are the completion frequency spectrum data, otherwise the data that next time read are not for accomplishing frequency spectrum data; At last, the frequency spectrum data of acquisition deposits data queue in, and the host computer data processing section comprises demonstration, computing or the like through in formation, by its sequencing reading of data data being handled.
Fig. 7 is the detailed operation process flow diagram of embodiment of the invention slave computer end.Opened up two memory blocks at the slave computer end, one is not accomplish the frequency spectrum data memory block, is used for storing not accomplishing frequency spectrum data; One is to accomplish the frequency spectrum data memory block, is used for storing and accomplishes frequency spectrum data, does not wherein accomplish the data storage area and adopts non-formation mode, adopts the formation mode and accomplish the data storage area.As shown in Figure 7, the slave computer end group is confirmed the memory block of frequency spectrum data in the frequency sweep state, and the frequency sweep data get into different storage regions under different conditions, and frequency sweep is accomplished, and just deposits the frequency spectrum data that generates in completion frequency spectrum data memory block; Frequency sweep is not accomplished, and just the frequency sweep data is deposited in and does not accomplish the data storage area.The process of transmitting that different storage regions is corresponding different is joined the team data if the frequency sweep process is accomplished then in completion frequency spectrum data queue stores district, send for accomplishing frequency spectrum data; Otherwise then do not accomplish the data storage area storage, do not sending for accomplishing frequency spectrum data.
The synoptic diagram of the completion frequency spectrum data that the synoptic diagram of not accomplishing frequency spectrum data that Fig. 8 reads for the embodiment of the invention, Fig. 9 read for the embodiment of the invention.The technical scheme of the embodiment of the invention can guarantee to accomplish the succession of frequency spectrum data through the cooperation of host computer and slave computer, and this succession can guarantee the analysis of frequency spectrum data and application.Though do not accomplish loss of data can appear in the frequency spectrum data memory block with non-formation stored in form situation; So but owing to do not accomplish frequency spectrum data and do not participate in spectrum analysis and do not influence the spectrum analysis result, when the frequency spectrum data processing module will simulate the effect of frequency sweep dynamic process when value shows refresh data successively in formation.
The method of the embodiment of the invention, device and system read frequency spectrum data based on the command forms of SCPI; To guarantee that in the process of continuous frequency sweep, (not using single wavelength sweep to trigger) can read frequency spectrum data continuously; The data that read had both comprised the completion frequency spectrum data, comprised again not accomplishing frequency spectrum data.In continuous the refreshing of host computer shows the process of these data, demonstrate the characteristics effect of frequency spectrum instrument frequency sweep, make sensation when using the frequency spectrograph host computer as using true instrument the same.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; This program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.

Claims (13)

1. one kind is obtained the method for accomplishing frequency spectrum data, it is characterized in that said method comprises:
Spectrum analyzer is accomplished the completion frequency spectrum data generated and frequency sweep with frequency sweep and is not accomplished the not completion frequency spectrum data that is generated and be stored in independently memory block respectively;
The PC host computer sends frequency spectrum data to said spectrum analyzer and reads request, comprises the frequency spectrum data type of desiring to read in the described request;
Said spectrum analyzer receives said frequency spectrum data and reads request, sends the frequency spectrum data of respective type to said PC host computer, and in the frequency spectrum data that is sent, carries the marker bit whether the frequency sweep state is accomplished;
Said PC host computer receives said frequency spectrum data, from said frequency spectrum data, parses marker bit, according to the definite frequency spectrum data type that reads of said marker bit information next time, and carries out the process that reads of frequency spectrum data next time.
2. method according to claim 1 is characterized in that, said spectrum analyzer is accomplished the completion frequency spectrum data generated and frequency sweep with frequency sweep and do not accomplished the not completion frequency spectrum data that is generated and be stored in respectively independently that the memory block comprises:
Said spectrum analyzer is accomplished the memory block that the completion frequency spectrum data that is generated is stored in the formation form with frequency sweep, frequency sweep is not accomplished the memory block that frequency spectrum data is stored in non-formation form of not accomplishing that is generated.
3. method according to claim 1 is characterized in that, said PC host computer sends frequency spectrum data to said spectrum analyzer and reads request, comprises the frequency spectrum data type of desiring to read in the described request and comprises:
When said spectrum analyzer transmission frequency spectrum data read request, the frequency spectrum data type of desiring to read that comprises in the described request was not for accomplishing frequency spectrum data first for said PC host computer.
4. method according to claim 1 is characterized in that, said spectrum analyzer carries the marker bit whether the frequency sweep state accomplish and comprises in the frequency spectrum data that is sent:
When having the completion frequency spectrum data in the completion frequency spectrum data memory block of said spectrum analyzer, said spectrum analyzer carries the marker bit that frequency sweep is accomplished in the frequency spectrum data that is sent;
When not having the completion frequency spectrum data in the completion frequency spectrum data memory block of said spectrum analyzer, said spectrum analyzer carries the uncompleted marker bit of frequency sweep in the frequency spectrum data that is sent.
5. method according to claim 1 is characterized in that, said PC host computer is confirmed the frequency spectrum data type next time read according to said marker bit information, and carries out next time that the process that reads of frequency spectrum data comprises:
When said marker bit is represented frequency sweep imperfect tense, the frequency spectrum data type that said PC host computer reads next time is not for accomplishing frequency spectrum data;
When said marker bit represented that frequency sweep is accomplished, the frequency spectrum data type that said PC host computer reads next time was for accomplishing frequency spectrum data.
6. method according to claim 1 is characterized in that, said method also comprises:
Said PC host computer is stored in the frequency spectrum data that reads in the queue memory according to time sequencing, with the frequency spectrum data of storing in the said queue memory according to time sequencing display process successively.
7. one kind is obtained the system that accomplishes frequency spectrum data, it is characterized in that said system comprises:
Spectrum analyzer is used for that frequency sweep is accomplished the completion frequency spectrum data generated and frequency sweep and does not accomplish the not completion frequency spectrum data that is generated and be stored in independently memory block respectively; Be used to receive the frequency spectrum data that the PC host computer sends and read request; Comprise the frequency spectrum data type of desiring to read in the described request; Send the frequency spectrum data of respective type to said PC host computer, and in the frequency spectrum data that is sent, carry the marker bit whether the frequency sweep state is accomplished;
The PC host computer is used for sending said frequency spectrum data to said spectrum analyzer and reads request, receives said frequency spectrum data, and shows the frequency spectrum data that is received successively according to time sequencing; Parse marker bit with being used for from said frequency spectrum data,, and carry out the process that reads of frequency spectrum data next time according to the definite frequency spectrum data type that reads of said marker bit information next time.
8. a spectrum analyzer is characterized in that, said spectrum analyzer comprises:
Storage unit is used for that frequency sweep is accomplished the completion frequency spectrum data generated and frequency sweep and does not accomplish the not completion frequency spectrum data that is generated and be stored in independently memory block respectively;
Data transmission unit; Be used to receive the frequency spectrum data that the PC host computer sends and read request; Comprise the frequency spectrum data type of desiring to read in the described request, send the frequency spectrum data of respective type to said PC host computer, and in the frequency spectrum data that is sent, carry the marker bit whether the frequency sweep state is accomplished.
9. spectrum analyzer according to claim 8 is characterized in that, said storage unit comprises:
The queue stores district is used for accomplishing the completion frequency spectrum data that is generated with formation stored in form frequency sweep;
Non-queue stores district is used for not accomplishing the not completion frequency spectrum data that is generated with non-formation stored in form frequency sweep.
10. spectrum analyzer according to claim 8 is characterized in that, said data transmission unit comprises:
Accomplish the frequency spectrum data transmitting element, connect said queue stores district, be used to receive the completion frequency spectrum data transmission request that the PC host computer sends, send to said PC host computer and accomplish frequency spectrum data;
Do not accomplish the frequency spectrum data transmitting element, connect said non-queue stores district, be used to receive the not completion frequency spectrum data transmission request that the PC host computer sends, send to said PC host computer and do not accomplish frequency spectrum data;
The frequency sweep dry state symbol unit; Connect said completion frequency spectrum data transmitting element and the said frequency spectrum data transmitting element of not accomplishing; Be used for when there is the completion frequency spectrum data in said queue stores district, generates frequency sweep and accomplishing mark, and in the frequency spectrum data that is sent, carry the marker bit that frequency sweep is accomplished; When not having the completion frequency spectrum data in the said queue stores district, generate frequency sweep and do not accomplish mark, and in the frequency spectrum data that is sent, carry the uncompleted marker bit of frequency sweep.
11. a PC host computer is characterized in that, said PC host computer comprises:
Receive processing unit, be used for sending frequency spectrum data and read request, comprise the frequency spectrum data type of desiring to read in the described request to spectrum analyzer; The frequency spectrum data that the received spectrum analyser sends carries the marker bit whether the frequency sweep state is accomplished in the frequency spectrum data that is received; According to the time sequencing frequency spectrum data that display process received successively;
The mark resolution unit is used for parsing said marker bit from said frequency spectrum data, according to the definite frequency spectrum data type that reads of the information of said marker bit next time, and carries out the process that reads of frequency spectrum data next time.
12. PC host computer according to claim 11 is characterized in that, said reception processing unit comprises:
The frequency spectrum data reading unit is used for sending frequency spectrum data request of reading and received spectrum data to said spectrum analyzer, comprises the frequency spectrum data type of desiring to read in the described request;
The frequency spectrum data storage unit connects said frequency spectrum data reading unit, is used for the frequency spectrum data that receives is stored in queue memory according to time sequencing;
The frequency spectrum data processing unit connects said frequency spectrum data storage unit, is used for the frequency spectrum data that said frequency spectrum data storage unit is stored is shown according to time sequencing successively.
13. PC host computer according to claim 11 is characterized in that,
Said mark resolution unit specifically is used to parse said marker bit information, and when said marker bit is represented frequency sweep imperfect tense, the frequency spectrum data type of confirming next time to read is not for accomplishing frequency spectrum data; When said marker bit represented that frequency sweep is accomplished, the frequency spectrum data type of confirming next time to read was for accomplishing frequency spectrum data.
CN201010531106.6A 2010-11-03 2010-11-03 Method and system for obtaining completed spectral data and apparatuses Active CN102466761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010531106.6A CN102466761B (en) 2010-11-03 2010-11-03 Method and system for obtaining completed spectral data and apparatuses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010531106.6A CN102466761B (en) 2010-11-03 2010-11-03 Method and system for obtaining completed spectral data and apparatuses

Publications (2)

Publication Number Publication Date
CN102466761A true CN102466761A (en) 2012-05-23
CN102466761B CN102466761B (en) 2015-05-20

Family

ID=46070661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010531106.6A Active CN102466761B (en) 2010-11-03 2010-11-03 Method and system for obtaining completed spectral data and apparatuses

Country Status (1)

Country Link
CN (1) CN102466761B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110726874A (en) * 2019-10-29 2020-01-24 中国科学院微电子研究所 D/A data acquisition and analysis method based on remote frequency spectrograph communication

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101344556A (en) * 2008-09-03 2009-01-14 北京航空航天大学 Method for enlarging effective dynamic range in electromagnetic compatibility test
US20090017758A1 (en) * 2007-07-09 2009-01-15 International Business Machines Corporation Method, Data Processing Program and Computer Program Product for Determining a Periodic Cycle of Time Series Data
JP2009099496A (en) * 2007-10-19 2009-05-07 Hitachi High-Technologies Corp Plasma treatment device, and method of detecting its condition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090017758A1 (en) * 2007-07-09 2009-01-15 International Business Machines Corporation Method, Data Processing Program and Computer Program Product for Determining a Periodic Cycle of Time Series Data
JP2009099496A (en) * 2007-10-19 2009-05-07 Hitachi High-Technologies Corp Plasma treatment device, and method of detecting its condition
CN101344556A (en) * 2008-09-03 2009-01-14 北京航空航天大学 Method for enlarging effective dynamic range in electromagnetic compatibility test

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110726874A (en) * 2019-10-29 2020-01-24 中国科学院微电子研究所 D/A data acquisition and analysis method based on remote frequency spectrograph communication
CN110726874B (en) * 2019-10-29 2021-11-19 中国科学院微电子研究所 D/A data acquisition and analysis method based on remote frequency spectrograph communication

Also Published As

Publication number Publication date
CN102466761B (en) 2015-05-20

Similar Documents

Publication Publication Date Title
JP5467891B2 (en) Information processing apparatus, debugging apparatus, and debugging method
CN101281474B (en) Method and apparatus for opening appoint terminal port USB equipment
CN101308450B (en) FIFO control circuit and control method
CN102646025B (en) Can to the storage card of the data additional temporal information obtained from network
CN102255950A (en) Link server and program thereof, website browsing system, method, and program
CN109992234A (en) Image data read method, device, electronic equipment and readable storage medium storing program for executing
CN101996262B (en) General digital verification platform for non-contact intelligent card
CN101159957A (en) Data terminal equipment updating, renovating method and device
CN102394920A (en) Method, mobile terminal and computer for sharing computer network
CN105260329A (en) Scanner driver control apparatus and control method therefor
CN108182119A (en) Read and write abruption control method and device, storage medium and electronic device
CN104765266A (en) Simulation clock display method and device and LED display control card
CN102466761A (en) Method and system for obtaining completed spectral data and apparatuses
CN102236622A (en) Dynamic memory controller and method for increasing bandwidth utilization rate of dynamic memory
CN104050111A (en) Accessing different types of memory by respective commands with different timing requirements
CN101510175B (en) Method for updating target data to memory and apparatus thereof
CN110399596A (en) A kind of file layout change-over method, system and associated component
CN101441600B (en) Apparatus and method for rapidly changing page in microprocessor verification
CN104133781A (en) Network storage equipment and method thereof for improving data access speed
CN109656838A (en) Processor system and its memory control methods
CN116204121A (en) Flash memory control system and flash memory device thereof
CN105224266A (en) File printing method and device
CN114567445A (en) Signature verification data transmission method, device, equipment and medium
CN101833063B (en) Method and device for testing SPI (Serial Peripheral Interface) control chip
CN113672172A (en) Data interaction method and receiving card applied to LED display control system

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