TWI621856B - Signal measurement apparatus and signal measurement method - Google Patents

Signal measurement apparatus and signal measurement method Download PDF

Info

Publication number
TWI621856B
TWI621856B TW106122121A TW106122121A TWI621856B TW I621856 B TWI621856 B TW I621856B TW 106122121 A TW106122121 A TW 106122121A TW 106122121 A TW106122121 A TW 106122121A TW I621856 B TWI621856 B TW I621856B
Authority
TW
Taiwan
Prior art keywords
signal
measurement
measurement range
measuring
range
Prior art date
Application number
TW106122121A
Other languages
Chinese (zh)
Other versions
TW201905469A (en
Inventor
劉正彬
趙令煌
盧志誠
胡國柱
Original Assignee
致茂電子股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 致茂電子股份有限公司 filed Critical 致茂電子股份有限公司
Priority to TW106122121A priority Critical patent/TWI621856B/en
Application granted granted Critical
Publication of TWI621856B publication Critical patent/TWI621856B/en
Publication of TW201905469A publication Critical patent/TW201905469A/en

Links

Abstract

一種信號量測裝置,具有偵測電路、第一量測電路、第二量測電路以及控制電路。偵測電路用以電性連接待測物,以產生待測物的偵測信號。第一量測電路電性連接偵測電路,並依據偵測信號、第一量測範圍與第二量測範圍其中之一者產生第一量測信號,其中第二量測範圍大於第一量測範圍。第二量測電路電性連接偵測電路,並依據偵測信號與補償量測範圍產生第二量測信號,其中補償量測範圍大於第二量測範圍。控制電路電性連接第一量測電路與第二量測電路,並依據第二量測信號控制第一量測電路切換第一量測範圍與第二量測範圍其中之一者。A signal measuring device has a detecting circuit, a first measuring circuit, a second measuring circuit and a control circuit. The detecting circuit is electrically connected to the object to be tested to generate a detection signal of the object to be tested. The first measuring circuit is electrically connected to the detecting circuit, and generates a first measuring signal according to one of the detecting signal, the first measuring range and the second measuring range, wherein the second measuring range is greater than the first quantity Measuring range. The second measuring circuit is electrically connected to the detecting circuit, and generates a second measuring signal according to the detecting signal and the compensation measuring range, wherein the compensation measuring range is greater than the second measuring range. The control circuit is electrically connected to the first measuring circuit and the second measuring circuit, and controls the first measuring circuit to switch one of the first measuring range and the second measuring range according to the second measuring signal.

Description

信號量測裝置與信號量測方法Signal measuring device and signal measuring method

本發明係關於一種信號量測裝置與信號量測方法,特別是一種量測範圍可調的信號量測裝置與信號量測方法。The invention relates to a signal measuring device and a signal measuring method, in particular to a signal measuring device and a signal measuring method with adjustable measuring range.

量測設備或是電子設備中的量測電路常常需要持續地量測動態負載信號的功率。一般來說,在量測時有採用自動檔位(auto range)或是使用固定檔位(constant range)等兩種做法。由於負載信號振幅不固定,若使用自動檔位進行量測,在量測過程中常會因為檔位的頻繁更換而造成量測資料漏失。而若選擇固定檔位來進行量測,由於未知的動態負載信號往往無法被預估,而使得無法以所選定的固定檔位合適地匹配動態負載信號。當選擇過高的檔位作為固定檔位雖然可以量測到所有的信號時,但也會降低量測解析度與準確度;反之,當選擇過低的檔位時,雖然具有較佳的解析度,但仍極可能造成資料的漏失。Measuring devices or measuring circuits in electronic devices often require continuous measurement of the power of the dynamic load signal. In general, there are two methods of measuring the auto range or using a constant range. Since the amplitude of the load signal is not fixed, if the automatic gear position is used for measurement, the measurement data is often lost due to frequent replacement of the gear position during the measurement process. However, if a fixed gear is selected for measurement, the unknown dynamic load signal is often unpredictable, so that the dynamic load signal cannot be properly matched with the selected fixed gear. When selecting a gear position that is too high as a fixed gear position, it can measure all the signals, but it will also reduce the measurement resolution and accuracy; otherwise, when the gear position is too low, although it has better resolution Degree, but it is still very likely to cause data loss.

以數位功率錶來說,目前市面上的數位功率錶都會要求量測程序使用固定檔位,因此使用者必須對待測物執行預量測(pre-test)的程序,以便預測在正常程序測試中可能會發生的最高信號振幅。但這種方法除了造成使用上的不方便之外,也無法確保量測程序中不發生資料漏失,或是因高估了最高信號振幅而降低了量測解析度。In the case of a digital power meter, the current digital power meter on the market requires the measurement program to use a fixed gear position, so the user must perform a pre-test procedure on the object to be predicted in the normal program test. The highest signal amplitude that can occur. However, in addition to causing inconvenience in use, this method does not ensure that data loss does not occur in the measurement procedure, or that the measurement resolution is lowered by overestimating the highest signal amplitude.

本發明在於提供一種信號量測裝置與信號量測方法,以期克服以往待測信號的未知特性對量測程序所造成的麻煩。The invention provides a signal measuring device and a signal measuring method, in order to overcome the trouble caused by the unknown characteristics of the signal to be tested in the past.

本發明揭露了一種信號量測裝置,所述的信號量測裝置具有偵測電路、第一量測電路、第二量測電路與控制電路。偵測電路用以電性連接一待測物,以產生待測物的偵測信號。第一量測電路電性連接偵測電路,並依據偵測信號、一第一量測範圍與一第二量測範圍其中之一者產生第一量測信號,其中第二量測範圍大於第一量測範圍。第二量測電路電性連接偵測電路,並依據偵測信號與補償量測範圍產生第二量測信號,其中補償量測範圍大於第二量測範圍。控制電路電性連接第一量測電路與第二量測電路,並依據第二量測信號控制第一量測電路切換第一量測範圍與第二量測範圍其中之一者。The invention discloses a signal measuring device, wherein the signal measuring device has a detecting circuit, a first measuring circuit, a second measuring circuit and a control circuit. The detecting circuit is electrically connected to a test object to generate a detection signal of the object to be tested. The first measuring circuit is electrically connected to the detecting circuit, and generates a first measuring signal according to one of the detecting signal, a first measuring range and a second measuring range, wherein the second measuring range is greater than the first measuring range A measurement range. The second measuring circuit is electrically connected to the detecting circuit, and generates a second measuring signal according to the detecting signal and the compensation measuring range, wherein the compensation measuring range is greater than the second measuring range. The control circuit is electrically connected to the first measuring circuit and the second measuring circuit, and controls the first measuring circuit to switch one of the first measuring range and the second measuring range according to the second measuring signal.

本發明揭露了一種信號量測方法,所述的信號量測方法包括:電性連接待測物以產生偵測信號;依據偵測信號與設定量測範圍產生第一量測信號,設定量測範圍為多個預設量測範圍其中之一;依據偵測信號與補償量測範圍產生第二量測信號,補償量測範圍的上限不小於所述的預設量測範圍其中任一的上限;判斷第一量測信號的信號值大小是否大於當前的設定量測範圍的上限;若第一量測信號的信號值大小大於當前的設定量測範圍的上限時,則依據第二量測信號的信號值大小將設定量測範圍切換為所述的預設量測範圍其中之另一,經切換後的設定量測範圍的上限大於第二量測信號的信號值大小。The invention discloses a signal measurement method. The signal measurement method includes: electrically connecting a test object to generate a detection signal; generating a first measurement signal according to the detection signal and the set measurement range, and setting the measurement The range is one of a plurality of preset measurement ranges; the second measurement signal is generated according to the detection signal and the compensation measurement range, and the upper limit of the compensation measurement range is not less than an upper limit of any of the preset measurement ranges Determining whether the signal value of the first measurement signal is greater than the upper limit of the current set measurement range; if the signal value of the first measurement signal is greater than the upper limit of the current set measurement range, then according to the second measurement signal The signal value size switches the set measurement range to the other of the preset measurement ranges, and the upper limit of the set measurement range after the switching is greater than the signal value of the second measurement signal.

以上之關於本揭露內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。The above description of the disclosure and the following description of the embodiments of the present invention are intended to illustrate and explain the spirit and principles of the invention, and to provide further explanation of the scope of the invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。The detailed features and advantages of the present invention are set forth in the Detailed Description of the Detailed Description of the <RTIgt; </ RTI> <RTIgt; </ RTI> </ RTI> </ RTI> <RTIgt; The objects and advantages associated with the present invention can be readily understood by those skilled in the art. The following examples are intended to describe the present invention in further detail, but are not intended to limit the scope of the invention.

請參照圖1,圖1係為根據本發明一實施例所繪示之信號量測裝置的功能方塊圖。如圖1所示,信號量測裝置1具有偵測電路12、第一量測電路14、第二量測電路16與控制電路18。偵測電路12電性連接第一量測電路14與第二量測電路16。第一量測電路14與第二量測電路16分別電性連接控制電路18。Please refer to FIG. 1. FIG. 1 is a functional block diagram of a signal measuring device according to an embodiment of the invention. As shown in FIG. 1, the signal measuring device 1 has a detecting circuit 12, a first measuring circuit 14, a second measuring circuit 16, and a control circuit 18. The detecting circuit 12 is electrically connected to the first measuring circuit 14 and the second measuring circuit 16. The first measuring circuit 14 and the second measuring circuit 16 are electrically connected to the control circuit 18, respectively.

偵測電路12具有多個偵測端。在此實施例中係舉第一偵測端E1、第二偵測端E2進行說明。偵測電路12用以經由第一偵測端E1、第二偵測端E2取得待測物2的待量測信號。所述的待量測信號可以是電壓信號或是電流信號,在此並不加以限制。偵測電路12用以依據待量測信號產生偵測信號。The detection circuit 12 has a plurality of detection terminals. In this embodiment, the first detecting end E1 and the second detecting end E2 are described. The detecting circuit 12 is configured to obtain the signal to be measured of the object 2 to be measured via the first detecting end E1 and the second detecting end E2. The signal to be measured may be a voltage signal or a current signal, which is not limited herein. The detecting circuit 12 is configured to generate a detection signal according to the signal to be measured.

第一量測電路14具有多個預設量測範圍。第一量測電路14用以依據偵測信號與設定量測範圍產生第一量測信號。所述的設定量測範圍為所述的預設量測範圍其中之一。舉例來說,各個預設量測範圍例如分別為0毫安培(mA)至5毫安培、0毫安培至20毫安培、0毫安培至50毫安培、0毫安培至200毫安培與0毫安培至300毫安培。設定量測範圍可以被切換至預設量測範圍的其中任一。舉例來說,當設定量測範圍被切換至如前述的0毫安培至20毫安培的預設量測範圍,且偵測信號的電流大小也位於0毫安培至20毫安培之間時,此時第一量測電路14可用將偵測信號的電流大小以適當的形式記載於第一量測信號中。理想上,第一量測信號的信號值即為偵測信號的電流大小。設定量測範圍為其他預設量測範圍的情況係可依此類推。需說明的是,在此係舉第一量測電路14用以量測電流的情況以作說明,所屬領域具有通常知識者經詳閱本說明書後應可理解而類推當第一量測電路14被設計用以量測電壓的情況,在此並不重複贅述。The first measurement circuit 14 has a plurality of preset measurement ranges. The first measuring circuit 14 is configured to generate a first measuring signal according to the detection signal and the set measurement range. The set measurement range is one of the preset measurement ranges. For example, each preset measurement range is, for example, 0 milliamperes (mA) to 5 milliamperes, 0 milliamps to 20 milliamps, 0 milliamps to 50 milliamps, 0 milliamps to 200 milliamps, and 0 millimeters, respectively. Ampere to 300 mA. The set measurement range can be switched to any of the preset measurement ranges. For example, when the set measurement range is switched to the preset measurement range of 0 mA to 20 mA as described above, and the current of the detection signal is also between 0 mA to 20 mA, this The first measurement circuit 14 can record the current magnitude of the detection signal in the first measurement signal in an appropriate form. Ideally, the signal value of the first measurement signal is the magnitude of the current of the detection signal. The case where the measurement range is set to other preset measurement ranges can be deduced by analogy. It should be noted that the first measurement circuit 14 is used to measure the current for explanation. Those skilled in the art should understand that the first measurement circuit 14 should be understood after reading the specification. The case where the voltage is designed to be measured is not repeated here.

第二量測電路16電性連接偵測電路12。第二量測電路16具有補償量測範圍。補償量測範圍的上限不小於所述的預設量測範圍其中任一的上限。舉例來說,補償量測範圍例如為0毫安培至300毫安培而涵蓋了所有的預設量測範圍。或者,補償量測範圍的上限也可以是大於300毫安培,在此並不加以限制。第二量測電路16用以依據偵測信號與補償量測範圍產生第二量測信號。如前述所舉之例,當偵測信號的電流大小位於0毫安培至300毫安培之間時,第二量測電路16可以用適當的方式將偵測信號的電流大小記載在第二量測信號當中。理想上,此時第二量測信號的信號值大小即為偵測信號的電流大小。相仿地,在另一實施例中,第二量測信號的信號值大小也可為偵測信號的電壓大小。The second measuring circuit 16 is electrically connected to the detecting circuit 12. The second measurement circuit 16 has a compensation measurement range. The upper limit of the compensation measurement range is not less than the upper limit of any of the preset measurement ranges. For example, the compensation measurement range is, for example, 0 mA to 300 mA and covers all of the preset measurement ranges. Alternatively, the upper limit of the compensation measurement range may also be greater than 300 milliamperes, which is not limited herein. The second measuring circuit 16 is configured to generate a second measuring signal according to the detection signal and the compensation measurement range. As described above, when the magnitude of the current of the detection signal is between 0 mA and 300 mA, the second measurement circuit 16 can record the current of the detection signal in the second measurement in an appropriate manner. Among the signals. Ideally, the magnitude of the signal value of the second measurement signal at this time is the magnitude of the current of the detection signal. Similarly, in another embodiment, the signal value of the second measurement signal may also be the voltage level of the detection signal.

控制電路18電性連接第一量測電路14與第二量測電路16。控制電路18用以依據第一量測信號與第二量測信號指示第一量測電路14切換設定量測範圍為所述的預設量測範圍其中之另一。舉前述的各數值範圍來說,假設設定量測範圍例如為0毫安培至20毫安培,補償量測範圍例如為0毫安培至300毫安培,而偵測信號的電流大小例如為60毫安培。此時,偵測信號的電流大小大於設定量測範圍的上限,因此第一量測信號的信號值大小只為20毫安培。而偵測信號的電流大小小於補償量測範圍的上限,因此,理想上第二量測信號的信號值大小應為60毫安培。是故,當控制電路18判斷這樣的情況發生時,控制電路18依據第二量測信號的信號值大小指示第一量測電路14將設定量測範圍調整為上限值至少大於60毫安培的預設量測範圍。在此實施例中,控制電路18例如是將設定量測範圍的上限調大至200毫安培。The control circuit 18 is electrically connected to the first measurement circuit 14 and the second measurement circuit 16. The control circuit 18 is configured to instruct the first measurement circuit 14 to switch the set measurement range to the other of the preset measurement ranges according to the first measurement signal and the second measurement signal. For each of the foregoing numerical ranges, it is assumed that the set measurement range is, for example, 0 mA to 20 mA, the compensation measurement range is, for example, 0 mA to 300 mA, and the magnitude of the detected signal is, for example, 60 mA. . At this time, the magnitude of the current of the detection signal is greater than the upper limit of the set measurement range, so the signal value of the first measurement signal is only 20 milliamperes. The magnitude of the current of the detection signal is less than the upper limit of the compensation measurement range. Therefore, the signal value of the second measurement signal should ideally be 60 milliamperes. Therefore, when the control circuit 18 determines that such a situation occurs, the control circuit 18 instructs the first measurement circuit 14 to adjust the set measurement range to an upper limit value of at least 60 milliamps according to the magnitude of the signal value of the second measurement signal. Preset measurement range. In this embodiment, the control circuit 18, for example, increases the upper limit of the set measurement range to 200 milliamps.

在一實施例中,當控制電路18指示第一量測電路14於第一時間切換設定量測範圍為所述的預設量測範圍其中之另一時,控制電路18更依據第一時間的第二量測信號補償第一時間的第一量測信號。藉此,避免第一時間上的第一量測信號具有瑕疵或是無法被後端電路所辨識。In an embodiment, when the control circuit 18 instructs the first measurement circuit 14 to switch the set measurement range to the other of the preset measurement ranges at the first time, the control circuit 18 is further based on the first time. The second measurement signal compensates for the first measurement signal of the first time. Thereby, the first measurement signal at the first time is avoided or cannot be recognized by the back end circuit.

請接著參照圖2以對信號量測裝置進行更進一步的說明,圖2係為根據本發明另一實施例所繪示之信號量測裝置的功能方塊圖。圖2繪示出了信號量測裝置的一種具體實施方式。在圖2所示的實施例中,信號量測裝置1’係用以量測待量測信號的信號值大小。在圖2中,信號量測裝置1’更具有通訊通道13與耦合電路19。耦合電路19具有脈衝變壓器192與光電耦合器194,相關細節應為所屬技術領域具有通常知識者所熟知,在此不予贅述。脈衝變壓器192的一端電性連接第一量測電路14與第二量測電路,脈衝變壓器192的另一端經由通訊通道13電性連接控制電路18。光電耦合器194的一端電性連接第一量測電路14與第二量測電路,光電耦合器194的另一端經由通訊通道13電性連接控制電路18。2 is a functional block diagram of a signal measuring device according to another embodiment of the present invention. Figure 2 illustrates a specific embodiment of a signal measuring device. In the embodiment shown in Fig. 2, the signal measuring device 1' is used to measure the magnitude of the signal value of the signal to be measured. In Fig. 2, the signal measuring device 1' further has a communication channel 13 and a coupling circuit 19. The coupling circuit 19 has a pulse transformer 192 and a photocoupler 194. The relevant details are well known to those of ordinary skill in the art and will not be described herein. One end of the pulse transformer 192 is electrically connected to the first measuring circuit 14 and the second measuring circuit, and the other end of the pulse transformer 192 is electrically connected to the control circuit 18 via the communication channel 13 . One end of the photocoupler 194 is electrically connected to the first measuring circuit 14 and the second measuring circuit, and the other end of the photocoupler 194 is electrically connected to the control circuit 18 via the communication channel 13 .

控制電路18具有數位信號處理器182與現場可程式化閘陣列184(Field Programmable Gate Array, FPGA)。數位信號處理器182電性連接現場可程式化閘陣列184。數位信號處理器182經由現場可程式化閘陣列184存取第一量測信號或第二量測信號,且數位信號處理器182經由現場可程式化閘陣列184調整第一量測電路14或第二量測電路16。The control circuit 18 has a digital signal processor 182 and a Field Programmable Gate Array (FPGA). The digital signal processor 182 is electrically coupled to the field programmable gate array 184. The digital signal processor 182 accesses the first measurement signal or the second measurement signal via the field programmable gate array 184, and the digital signal processor 182 adjusts the first measurement circuit 14 or the first via the field programmable gate array 184. Two measuring circuit 16.

在圖2所示的實施例中,第一量測電路14具有第一放大器142、抗混疊濾波器144與第一類比數位轉換器146。第一放大器142、抗混疊濾波器144與第一類比數位轉換器146依序電性連接,第一放大器142的輸入端電性連接偵測電路,第一類比數位轉換器146的輸出端電性連接脈衝變壓器192。其中,第一放大器142係經由前述的電路結構受控於數位信號處理器182。在一實施例中,控制電路18用以依據第一量測信號的信號值大小與第二量測信號的信號值大小調整第一放大器的增益以切換設定量測範圍為所述的預設量測範圍其中之另一。In the embodiment shown in FIG. 2, the first measurement circuit 14 has a first amplifier 142, an anti-aliasing filter 144 and a first analog-to-digital converter 146. The first amplifier 142 and the anti-aliasing filter 144 are electrically connected to the first analog-to-digital converter 146. The input end of the first amplifier 142 is electrically connected to the detection circuit, and the output of the first analog-to-digital converter 146 is electrically connected. The pulse transformer 192 is connected. The first amplifier 142 is controlled by the digital signal processor 182 via the aforementioned circuit structure. In an embodiment, the control circuit 18 is configured to adjust the gain of the first amplifier according to the magnitude of the signal value of the first measurement signal and the signal value of the second measurement signal to switch the set measurement range to the preset amount. One of the measurement ranges.

此外,第二量測電路16具有第二放大器162、抗混疊濾波器164與第二類比數位轉換器166。第二放大器162、抗混疊濾波器164與第二類比數位轉換器166依序電性連接,第二放大器162的輸入端電性連接偵測電路,第二類比數位轉換器166的輸出端電性連接脈衝變壓器192。其中,第二放大器162係經由前述的電路結構受控於數位信號處理器182。在一實施例中,控制電路18用以依據第一量測信號的信號值大小與第二量測信號的信號值大小調整第二放大器的增益以切換補償量測範圍。Further, the second measurement circuit 16 has a second amplifier 162, an anti-aliasing filter 164 and a second analog-to-digital converter 166. The second amplifier 162 and the anti-aliasing filter 164 are electrically connected to the second analog-to-digital converter 166. The input end of the second amplifier 162 is electrically connected to the detecting circuit, and the output of the second analog-digital converter 166 is electrically connected. The pulse transformer 192 is connected. The second amplifier 162 is controlled by the digital signal processor 182 via the aforementioned circuit structure. In an embodiment, the control circuit 18 is configured to adjust the gain of the second amplifier according to the magnitude of the signal value of the first measurement signal and the signal value of the second measurement signal to switch the compensation measurement range.

從另一個角度來說,第一量測信號或第二量測信號例如為偵測信號經過取樣與量化後的數位信號。更具體地來說,第一量測信號與第二量測信號在取樣時序上係為同步,而第一量測信號所對應的動態範圍(dynamic range)與第二量測信號的動態範圍可以是相同或是不同。由於數位信號處理器182已知第一量測電路14的量測範圍與第二量測電路16的量測範圍,因此即使當第一量測信號的動態範圍與第二量測信號的動態範圍不同,數位信號處理器182還是可依據第一量測範圍的上限與第二量測範圍的上限的相對關係而自第二量測信號取得關聯於第一量測信號的資訊。如前述地,第一量測電路14於第一時間點切換設定量測範圍時,第一量測信號於第一時間點的相關數值或第一時間點前後的相關數值可能無法被辨識或是可能有瑕疵。此時數位信號處理器182即可依據第二量測信號於第一時間點的資訊換算出第一量測信號於第一時間點的相關數值,並據以補償第一量測信號。From another perspective, the first measurement signal or the second measurement signal is, for example, a sampled and quantized digital signal of the detection signal. More specifically, the first measurement signal and the second measurement signal are synchronized at the sampling timing, and the dynamic range corresponding to the first measurement signal and the dynamic range of the second measurement signal may be Is the same or different. Since the digital signal processor 182 knows the measurement range of the first measurement circuit 14 and the measurement range of the second measurement circuit 16, even when the dynamic range of the first measurement signal and the dynamic range of the second measurement signal Differently, the digital signal processor 182 can obtain the information associated with the first measurement signal from the second measurement signal according to the relative relationship between the upper limit of the first measurement range and the upper limit of the second measurement range. As described above, when the first measurement circuit 14 switches the set measurement range at the first time point, the correlation value of the first measurement signal at the first time point or the correlation value before and after the first time point may not be recognized or There may be flaws. At this time, the digital signal processor 182 can convert the correlation value of the first measurement signal at the first time point according to the information of the second measurement signal at the first time point, and compensate the first measurement signal accordingly.

另一方面,在此實施例中,偵測電路12更包括檔位切換子電路,檔位切換子電路具有第一電阻R1、第二電阻R2、第一繼電器RL1、第二繼電器RL2、第三繼電器RL3與第四繼電器RL4。第一電阻R1兩端分別電性連接第一偵測端E1與分壓節點ND。第二電阻R2兩端分別電性連接第二偵測端E2與分壓節點ND。On the other hand, in this embodiment, the detecting circuit 12 further includes a gear shifting sub-circuit, the gear shifting sub-circuit has a first resistor R1, a second resistor R2, a first relay RL1, a second relay RL2, and a third Relay RL3 and fourth relay RL4. The first resistor R1 is electrically connected to the first detecting end E1 and the voltage dividing node ND, respectively. The two ends of the second resistor R2 are electrically connected to the second detecting end E2 and the voltage dividing node ND, respectively.

第一繼電器RL1的輸出端電性連接第一放大器142的其中一個輸入端,第一繼電器RL1的多個輸入端分別電性連接第一偵測端E1、分壓節點ND與外部輸入端E3。第二繼電器RL2的輸出端電性連接第一放大器142的另一輸入端。第二繼電器RL2的多個輸入端分別電性連接第二偵測端E2、分壓節點ND與外部輸入端E3。第三繼電器RL3的輸出端電性連接第二放大器162的其中一個輸入端。第三繼電器RL3的多個輸入端其中之二分別電性連接第一偵測端E1與外部輸入端E3。第四繼電器RL4的輸出端電性連接第二放大器162的另一輸入端。第四繼電器RL4的多個輸入端其中之二分別電性連接分壓節點ND與外部輸入端E3。其中,外部輸入端E3用以讓使用者提供一使用者自定義的訊號源。於實務上,外部輸入端E3可以具有一或多個實體埠口,在此並不加以限制。The output end of the first relay RL1 is electrically connected to one of the input ends of the first amplifier 142. The plurality of input ends of the first relay RL1 are electrically connected to the first detecting end E1, the voltage dividing node ND and the external input end E3, respectively. The output of the second relay RL2 is electrically connected to the other input of the first amplifier 142. The plurality of input ends of the second relay RL2 are electrically connected to the second detecting end E2, the voltage dividing node ND and the external input end E3, respectively. The output of the third relay RL3 is electrically connected to one of the inputs of the second amplifier 162. Two of the plurality of input ends of the third relay RL3 are electrically connected to the first detecting end E1 and the external input end E3, respectively. The output of the fourth relay RL4 is electrically connected to the other input of the second amplifier 162. Two of the plurality of input ends of the fourth relay RL4 are electrically connected to the voltage dividing node ND and the external input terminal E3, respectively. The external input terminal E3 is used for the user to provide a user-defined signal source. In practice, the external input terminal E3 may have one or more physical ports, which are not limited herein.

藉由選擇性地導通繼電器的各輸入端及其輸出端,檔位切換子電路得以提供使用者更多的量測範圍選擇。其中,第一電阻R1的電阻值與第二電阻R2的電阻值係可依據電路阻抗以及實際所需的量測範圍而予以調整,在此並不加以限制。另一方面,偵測電路12’中更具有保護電路122’、124’、126’。保護電路122’係用以防止第一偵測端E1與第二偵測端E2短路。保護電路124’係用以避免使用者提供過大的電流而燒毀電路。當第二電阻R2具有較小的電阻值時,保護電路126’係用以避免具有大電流的待量測訊號使第二電阻R2毀損。The gear shifting sub-circuit provides the user with more measurement range selection by selectively turning on the various inputs of the relay and their outputs. The resistance value of the first resistor R1 and the resistance value of the second resistor R2 can be adjusted according to the circuit impedance and the actually required measurement range, and are not limited herein. On the other hand, the detecting circuit 12' further has protection circuits 122', 124', 126'. The protection circuit 122' is configured to prevent the first detection terminal E1 and the second detection terminal E2 from being short-circuited. The protection circuit 124' is used to prevent the user from providing excessive current to burn the circuit. When the second resistor R2 has a small resistance value, the protection circuit 126' is used to prevent the second signal R2 from being damaged by the signal to be measured having a large current.

請接著參照圖3,圖3係為根據本發明又一實施例所繪示之信號量測裝置的功能方塊圖。在圖3所示的實施例中,信號量測裝置1”係用以量測待量測信號的電壓大小。信號量測裝置1”的電路架構大致上相仿於圖2中的信號量測裝置1’,不同之處在於,信號量測裝置1”係藉由電阻R1”~R4”與二極體D1~D4組成分壓電路,並經由可程式增益放大器128”(programmable gain amplifier, PGA)依據分壓電路的輸出信號提供偵測信號。其中,可程式增益放大器128”係受控於數位信號處理器182。換句話說,數位信號處理器182除了可以藉由分別調整第一放大器142 的增益或第二放大器162的增益來調整設定量測範圍與補償量測範圍之外,數位信號處理器182更可以藉由調整可程式增益放大器128”的增益來調整設定量測範圍或補償量測範圍。Please refer to FIG. 3. FIG. 3 is a functional block diagram of a signal measuring apparatus according to another embodiment of the present invention. In the embodiment shown in FIG. 3, the signal measuring device 1" is used to measure the voltage level of the signal to be measured. The circuit structure of the signal measuring device 1" is substantially similar to the signal measuring device in FIG. 1', the difference is that the signal measuring device 1" is composed of a resistor R1"~R4" and a diode D1~D4 to form a voltage dividing circuit, and is via a programmable gain amplifier ("GA"). The detection signal is provided according to the output signal of the voltage dividing circuit. The programmable gain amplifier 128" is controlled by the digital signal processor 182. In other words, the digital signal processor 182 can adjust the set amount by adjusting the gain of the first amplifier 142 or the gain of the second amplifier 162, respectively. In addition to the measurement range and the compensation measurement range, the digital signal processor 182 can adjust the set measurement range or the compensation measurement range by adjusting the gain of the programmable gain amplifier 128".

依據上述,本發明提供了一種信號量測方法,請接著參照圖4以進行說明,圖4係為根據本發明一實施例所繪示之信號量測方法的方法流程圖。於步驟S101中,電性連接待測物以產生偵測信號。於步驟S103中,依據偵測信號與設定量測範圍產生第一量測信號,設定量測範圍為多個預設量測範圍其中之一。於步驟S105中,依據偵測信號與補償量測範圍產生第二量測信號,補償量測範圍的上限不小於所述的預設量測範圍其中任一的上限。於步驟S107中,判斷第一量測信號的信號值大小是否大於當前的設定量測範圍的上限。於步驟S109中,當判斷若第一量測信號的信號值大小大於當前的設定量測範圍的上限時,則依據第二量測信號的信號值大小將設定量測範圍切換為所述的預設量測範圍其中之另一。According to the above, the present invention provides a signal measurement method. Please refer to FIG. 4 for description. FIG. 4 is a flowchart of a method for measuring a signal according to an embodiment of the invention. In step S101, the object to be tested is electrically connected to generate a detection signal. In step S103, a first measurement signal is generated according to the detection signal and the set measurement range, and the measurement range is set to one of a plurality of preset measurement ranges. In step S105, a second measurement signal is generated according to the detection signal and the compensation measurement range, and an upper limit of the compensation measurement range is not less than an upper limit of any one of the preset measurement ranges. In step S107, it is determined whether the signal value of the first measurement signal is greater than the upper limit of the current set measurement range. In step S109, when it is determined that if the signal value of the first measurement signal is greater than the upper limit of the current set measurement range, the set measurement range is switched to the preset according to the signal value of the second measurement signal. Set one of the measurement ranges.

於一實施例中,當於第一時間切換設定量測範圍為預設量測範圍其中之另一時,依據第一時間的第二量測信號補償第一時間的第一量測信號。相關細節係如前述,於此不再重複贅述。In an embodiment, when the set measurement range is switched to the other of the preset measurement ranges at the first time, the first measurement signal of the first time is compensated according to the second measurement signal of the first time. The relevant details are as described above, and the detailed description thereof will not be repeated here.

此外,於實務上,所述的設定量測範圍係可被依據第一量測信號的信號值大小進行調整。所述的預設量測範圍分別對應於不同的多個量測門檻值。在一實施例中,係先判斷第一量測信號是否不小於當前的設定量測範圍所對應的量測門檻值。當判斷第一量測信號不小於當前的設定量測範圍所對應的量測門檻值時,切換設定量測範圍為預設量測範圍其中之另一。調整後的設定量測範圍的上限大於調整前的設定量測範圍的上限。舉例來說,當前的設定量測範圍例如為0毫安培至20毫安培,對應的門檻值為16毫安培。當第一量測信號的信號值為17毫安培時,即切換設定量測範圍為0毫安培至50毫安培。藉此,以使設定量測範圍能對應於第一量測信號的信號值範圍預作調整,避免偵測信號被剪除。In addition, in practice, the set measurement range can be adjusted according to the signal value of the first measurement signal. The preset measurement ranges respectively correspond to different multiple measurement threshold values. In an embodiment, it is first determined whether the first measurement signal is not less than a measurement threshold corresponding to the current set measurement range. When it is determined that the first measurement signal is not less than the measurement threshold corresponding to the current set measurement range, the switching set measurement range is the other of the preset measurement ranges. The upper limit of the adjusted set measurement range is larger than the upper limit of the set measurement range before adjustment. For example, the current set measurement range is, for example, 0 mA to 20 mA, and the corresponding threshold is 16 mA. When the signal value of the first measurement signal is 17 mA, the switching measurement range is 0 mA to 50 mA. Thereby, the set measurement range can be pre-adjusted corresponding to the signal value range of the first measurement signal to prevent the detection signal from being clipped.

於實務上,補償量測範圍也可依據量測情況而被調整,請接著參照圖5以進行說明,圖5係為根據本發明另一實施例所繪示之信號量測方法的方法流程圖。在此實施例中,第二量測電路係具有第一補償範圍與第二補償範圍,補償量測範圍係為第一補償範圍與第二補償範圍其中之一。第一補償範圍的上限於小於第二補償範圍的上限。第一補償範圍對應於第一門檻值。於步驟S201中,當補償量測範圍為第一補償範圍時,判斷第二量測信號的信號值大小是否小於第一門檻值。於步驟S203中,當判斷第二量測信號的信號值大小不小於第一門檻值時,將補償量測範圍切換為第二補償範圍。In practice, the compensation measurement range can also be adjusted according to the measurement situation. Please refer to FIG. 5 for description. FIG. 5 is a flowchart of a method for measuring a signal measurement according to another embodiment of the present invention. . In this embodiment, the second measuring circuit has a first compensation range and a second compensation range, and the compensation measurement range is one of the first compensation range and the second compensation range. The upper limit of the first compensation range is limited to less than the upper limit of the second compensation range. The first compensation range corresponds to the first threshold value. In step S201, when the compensation measurement range is the first compensation range, it is determined whether the signal value of the second measurement signal is smaller than the first threshold. In step S203, when it is determined that the signal value of the second measurement signal is not less than the first threshold, the compensation measurement range is switched to the second compensation range.

舉例來說,第一補償範圍例如為0毫安培至300毫安培,第一門檻值為290毫安培,第二補償範圍例如為0毫安培至500毫安培。當前述的數位信號處理器182判斷第二量測信號的信號值大小已等於或大於第一門檻值時,數位信號處理器182指示第二量測電路16將第一補償範圍切換為第二補償範圍。藉此,以使信號量測電路在電路能力範圍內盡可能地避免第二量測信號失真,從而避免無法自第二量測信號補償第一量測信號的窘境。For example, the first compensation range is, for example, 0 mA to 300 mA, the first threshold is 290 mA, and the second compensation range is, for example, 0 mA to 500 mA. When the foregoing digital signal processor 182 determines that the signal value of the second measurement signal is equal to or greater than the first threshold, the digital signal processor 182 instructs the second measurement circuit 16 to switch the first compensation range to the second compensation. range. Thereby, the signal measuring circuit can avoid the distortion of the second measuring signal as much as possible within the circuit capability, thereby avoiding the dilemma that the first measuring signal cannot be compensated from the second measuring signal.

此外,除了調大設定量測範圍的上限之外,於本發明所提供的信號量測裝置與信號量測方法中亦可依實際清況適當地調降設定量測範圍的上限,以使第一量測信號具有較佳的解析度。請接著參照圖6以進行說明其中一種做法,圖6係為根據本發明更一實施例所繪示之信號量測方法的方法流程圖。於此實施例中,所述的多個預設量測範圍中定義有一第一量測範圍與至少一第二量測範圍。當前的設定量測範圍的上限大於第一量測範圍的上限與至少一第二量測範圍的上限,至少一第三量測範圍的上限大於當前的設定量測範圍的上限,第一量測範圍的上限大於至少一第二量測範圍的上限。於信號量測方法的步驟S301中,係取得第一量測信號於調降參考時間區間中的有效參考值。於步驟S303中,係判斷有效參考值是否小於第一量測範圍的上限或小於至少一第二量測範圍的上限。於步驟S305中,當判斷有效參考值小於第一量測範圍的上限或小於至少一第二量測範圍的上限時,將設定量測範圍切換為第一量測範圍。In addition, in addition to the upper limit of the set measurement range, the upper limit of the set measurement range can be appropriately adjusted according to the actual condition of the signal measuring device and the signal measuring method provided by the present invention. A measured signal has a better resolution. Referring to FIG. 6 to illustrate one of the methods, FIG. 6 is a flowchart of a method for measuring a signal according to a further embodiment of the present invention. In this embodiment, the first measurement range and the at least one second measurement range are defined in the plurality of preset measurement ranges. The upper limit of the current set measurement range is greater than the upper limit of the first measurement range and the upper limit of the at least one second measurement range, and the upper limit of the at least one third measurement range is greater than the upper limit of the current set measurement range, the first measurement The upper limit of the range is greater than the upper limit of at least one second measurement range. In step S301 of the signal measurement method, the effective reference value of the first measurement signal in the down-conversion reference time interval is obtained. In step S303, it is determined whether the effective reference value is smaller than the upper limit of the first measurement range or smaller than the upper limit of the at least one second measurement range. In step S305, when it is determined that the effective reference value is less than the upper limit of the first measurement range or less than the upper limit of the at least one second measurement range, the set measurement range is switched to the first measurement range.

所述的有效值例如為第一量測信號的連續多個取樣點的均方根值(root mean square value, RMS value)。舉例來說,當前的量測範圍例如為0毫安培到200毫安培,第一量測範圍為0毫安培到50毫安培,第二量測範圍有二,分別為0毫安培到20毫安培與0毫安培到5毫安培。當第一量測信號於調降參考時間區間中的均方根值為30毫安培時,前述的數位信號處理器182指示第一量測電路14將設定量測範圍調整為第一量測範圍,也就是0毫安培到50毫安培。此舉的意義在於,所述的有效值例如用以代表第一量測信號的長期趨勢變化,也就是說,當有效值落於某個量測範圍時,代表第一量測信號的後續取樣點的大小都很有可能落於此量測範圍。因此,當有效值落於比當前的設定量測範圍還要小的量測範圍時,數位信號處理器182指示第一量測電路14調整設定量測範圍,以取得較佳的解析度,且在參考有效值作決定的情況下,調整後的設定量測範圍不致於太小而剪除了偵測訊號。The effective value is, for example, a root mean square value (RMS value) of a plurality of consecutive sampling points of the first measurement signal. For example, the current measurement range is, for example, 0 mA to 200 mA, the first measurement range is 0 mA to 50 mA, and the second measurement range is 2, 0 mA to 20 mA, respectively. With 0 mA to 5 mA. When the rms value of the first measurement signal in the down-conversion reference time interval is 30 milliamperes, the aforementioned digital signal processor 182 instructs the first measurement circuit 14 to adjust the set measurement range to the first measurement range. , that is, 0 mA to 50 mA. The significance of this is that the effective value is used, for example, to represent a long-term trend change of the first measurement signal, that is, when the effective value falls within a certain measurement range, it represents a subsequent sampling of the first measurement signal. The size of the points is likely to fall within this measurement range. Therefore, when the effective value falls within a measurement range smaller than the current set measurement range, the digital signal processor 182 instructs the first measurement circuit 14 to adjust the set measurement range to obtain a better resolution, and In the case of making a decision with reference to the effective value, the adjusted set measurement range is not too small and the detection signal is cut off.

延續前述,當第一量測信號於調降參考時間中的均方根值為15毫安培時,數位信號處理器182還是指示第一量測電路14將設定量測範圍調整為第一量測範圍,也就是0毫安培到50毫安培。此舉是為了避免過度快速地調降設定量測範圍的同時,偵測訊號的電流值或電壓值突然升高而使得偵測訊號的峰值被剪除。Continuing the foregoing, when the rms value of the first measurement signal in the down-conversion reference time is 15 milliamperes, the digital signal processor 182 further instructs the first measurement circuit 14 to adjust the set measurement range to the first measurement. The range is 0 mA to 50 mA. This is to avoid excessively rapid adjustment of the set measurement range, while the current value or voltage value of the detection signal suddenly rises so that the peak value of the detection signal is cut off.

請接著參照圖7說明調降設定量測範圍的另一種做法,圖7係為根據本發明又一實施例所繪示之信號量測方法的方法流程圖。於步驟S401中,判斷第一量測信號於模板參考時間中是否符合信號模板。於步驟S403中,當判斷第一量測信號於模板參考時間中符合信號模板時,調整設定量測範圍為所述的預設量測範圍中的第一量測範圍。其中,所述的預設量測範圍中更定義有至少一第二量測範圍,第一量測範圍的上限不小於第一量測信號的最大值,第一量測範圍的上限小於至少一第二量測範圍的上限。Please refer to FIG. 7 to illustrate another method for lowering the set measurement range. FIG. 7 is a flowchart of a method for measuring a signal according to still another embodiment of the present invention. In step S401, it is determined whether the first measurement signal conforms to the signal template in the template reference time. In step S403, when it is determined that the first measurement signal meets the signal template in the template reference time, the adjustment measurement measurement range is the first measurement range in the preset measurement range. Wherein, the preset measurement range further defines at least one second measurement range, where an upper limit of the first measurement range is not less than a maximum value of the first measurement signal, and an upper limit of the first measurement range is less than at least one The upper limit of the second measurement range.

需先說明的是,圖7所示之實施例中的第一量測範圍與第二量測範圍的定義並不同於圖6所示之實施例中的第一量測範圍與第二量測範圍的定義。所述的信號模板(signal pattern)例如指信號的變化幅度或是信號波形的升降趨勢等等,此係為所屬技術領域具有通常知識者經詳閱本說明書後可自行定義,在此並不加以限制。另一方面,模板參考時間等同於一觀察時間,在此同樣不加以限制。當第一量測信號於模板參考時間中符合信號模板時,代表第一量測信號應會符合一定的規律。因此,在適當地選擇信號模板後,即可判斷符合信號模板的第一量測信號的電壓值或電流大小會位於某個範圍中。此時,設定量測範圍即可被調整為此實施例中的第一量測範圍。從另一個角度來說,此實施例中的第一量測範圍的上限係為所有的預設量測範圍的上限中最接近第一量測信號的最大值且大於第一量測信號的最大值。It should be noted that the definitions of the first measurement range and the second measurement range in the embodiment shown in FIG. 7 are different from the first measurement range and the second measurement in the embodiment shown in FIG. 6. The definition of the scope. The signal pattern refers to, for example, the magnitude of the change of the signal or the trend of the rise and fall of the signal waveform, etc., which is generally known to those skilled in the art and can be defined after reading this specification. limit. On the other hand, the template reference time is equivalent to an observation time, and is also not limited here. When the first measurement signal meets the signal template in the template reference time, the first measurement signal should conform to a certain rule. Therefore, after the signal template is properly selected, it can be determined that the voltage value or the current magnitude of the first measurement signal that matches the signal template is located in a certain range. At this time, the set measurement range can be adjusted to the first measurement range in this embodiment. In another aspect, the upper limit of the first measurement range in this embodiment is the maximum of the first measurement signals of all the preset measurement ranges and is greater than the maximum of the first measurement signal. value.

請接著參照圖8以進行說明,圖8係為根據本發明再一實施例所繪示之信號量測方法的方法流程圖。於步驟S501中,判斷第一量測信號於變動參考時間區間中的最大值。於步驟S503中,判斷偵測信號於變動參考時間區間中的平均值。於步驟S505中,判斷最大值與平均值的差值是否小於差值閾值。於步驟S507中,判斷於變動參考時間區間中,第一量測信號小於參考閾值的統計時間。於步驟S509中,判斷統計時間是否小於時間閾值。於步驟S511中,當判斷最大值與平均值的差值小於差值閾值,且判斷統計時間小於時間閾值時,調整設定量測範圍為預設量測範圍其中之一,調整後的設定量測範圍的上限大於最大值。於步驟S513中,當判斷最大值與平均值的差值不小於差值閾值,且判斷統計時間不小於時間閾值時,調整設定量測範圍為所述的預設量測範圍其中之一,調整後的設定量測範圍的上限不大於最大值。Please refer to FIG. 8 for description. FIG. 8 is a flowchart of a method for measuring a signal according to still another embodiment of the present invention. In step S501, a maximum value of the first measurement signal in the variation reference time interval is determined. In step S503, an average value of the detection signal in the variation reference time interval is determined. In step S505, it is determined whether the difference between the maximum value and the average value is smaller than the difference threshold. In step S507, it is determined that the first measurement signal is less than the statistical time of the reference threshold in the variation reference time interval. In step S509, it is determined whether the statistical time is less than a time threshold. In step S511, when it is determined that the difference between the maximum value and the average value is less than the difference threshold, and the judgment statistical time is less than the time threshold, the set measurement range is adjusted to be one of the preset measurement ranges, and the adjusted set measurement is performed. The upper limit of the range is greater than the maximum value. In step S513, when it is determined that the difference between the maximum value and the average value is not less than the difference threshold, and the judgment statistical time is not less than the time threshold, the set measurement range is adjusted to be one of the preset measurement ranges, and the adjustment is performed. The upper limit of the set measurement range is not greater than the maximum value.

在此實施例中,係依據第一量測信號的變動程度來決定是否調整設定量測範圍以及如何調整設定量測範圍。進一步來說,當第一量測信號於變動參考時間區間中的最大值與平均值的差異較大時,代表第一量測信號的信號值變化相對劇烈。反過來說,當第一量測信號於變動參考時間區間中的最大值與平均值的差異較小時,代表第一量測信號的信號值相對穩定。另一方面,於此實施例中更判斷第一量測信號小於參考閾值的時間,藉此以簡單且有效地判斷第一量測信號的信號值分佈。In this embodiment, whether to adjust the set measurement range and how to adjust the set measurement range is determined according to the degree of fluctuation of the first measurement signal. Further, when the difference between the maximum value and the average value of the first measurement signal in the variation reference time interval is large, the signal value representing the first measurement signal changes relatively sharply. Conversely, when the difference between the maximum value and the average value of the first measurement signal in the variation reference time interval is small, the signal value representing the first measurement signal is relatively stable. On the other hand, in this embodiment, the time when the first measurement signal is smaller than the reference threshold is further determined, thereby determining the signal value distribution of the first measurement signal simply and effectively.

因此,如同步驟S511所述地,當判斷最大值與平均值的差值小於差值閾值,且判斷統計時間小於時間閾值時,代表第一量測訊號值變化相對快速,但是變化範圍並不大。此時,調整設定量測範圍為所述的預設量測範圍其中之一,調整後的設定量測範圍的上限大於最大值,藉此以避免太頻繁地切換設定量測範圍,而有出錯的風險。由於第一量測訊號的變化範圍不大,此舉也可使第一量測訊號具有相當不錯的解析度。另一方面,如同步驟S513所述地,當判斷最大值與平均值的差值不小於差值閾值,且判斷統計時間不小於時間閾值時,代表第一量測訊號的訊號值相對穩定,但是一旦第一量測訊號發生變化時,第一量測訊號的變化幅度會相當大。此時,調整設定量測範圍為所述的預設量測範圍其中之一,調整後的設定量測範圍的上限不大於最大值。藉此,以使第一量測訊號在大部分時間都具有較佳的解析度,且當訊號產生變化時,控制電路亦可如前述地依據第二量測訊號調整設定量測範圍,並依據第二量測訊號補償第一量測訊號,從而讓第一量測訊號仍然保有正確的量測結果。Therefore, as described in step S511, when it is determined that the difference between the maximum value and the average value is less than the difference threshold, and the judgment statistical time is less than the time threshold, the value of the first measurement signal value changes relatively quickly, but the variation range is not large. . At this time, the set measurement range is one of the preset measurement ranges, and the upper limit of the adjusted set measurement range is greater than the maximum value, thereby avoiding switching the set measurement range too frequently, and there is an error. risks of. Since the range of the first measurement signal is not large, the action can also make the first measurement signal have a fairly good resolution. On the other hand, as described in step S513, when it is determined that the difference between the maximum value and the average value is not less than the difference threshold, and the judgment statistical time is not less than the time threshold, the signal value representing the first measurement signal is relatively stable, but Once the first measurement signal changes, the first measurement signal will vary considerably. At this time, the set measurement range is one of the preset measurement ranges, and the upper limit of the adjusted set measurement range is not greater than the maximum value. Therefore, the first measurement signal has a better resolution for most of the time, and when the signal changes, the control circuit can also adjust the set measurement range according to the second measurement signal as described above, and according to The second measurement signal compensates for the first measurement signal, so that the first measurement signal still retains the correct measurement result.

綜合以上所述,本發明提供了一種信號量測裝置與信號量測方法。所述的信號量測裝置與信號量測方法係具有一設定量測範圍與一補償量測範圍。設定量測範圍係切換於多個預設量測範圍。藉此,所述的信號量測裝置與信號量測方法得以藉由切換設定量測範圍以試圖用最接近於待量測信號的動態範圍的量測範圍來量測待量測信號,藉以使量測結果具有較佳的解析度。另一方面,補償量測範圍涵蓋所有的預設量測範圍,因此,理想上所述的信號量測裝置與信號量測方法可依據補償量測範圍取得未經剪除(clip)的量測結果,且所述的信號量測裝置與信號量測方法可依據此未被剪除的量測結果來切換設定量測範圍於所述的多個預設量測範圍,以使設定量測範圍能夠在涵蓋待量測信號的動態範圍之外更能使量測結果具有較佳的解析度。In summary, the present invention provides a signal measuring device and a signal measuring method. The signal measuring device and the signal measuring method have a set measuring range and a compensation measuring range. The set measurement range is switched to a plurality of preset measurement ranges. Thereby, the signal measuring device and the signal measuring method can measure the signal to be measured by switching the set measuring range to try to measure the range to be measured with the dynamic range closest to the signal to be measured, thereby The measurement results have a better resolution. On the other hand, the compensation measurement range covers all the preset measurement ranges. Therefore, the ideal signal measurement device and signal measurement method can obtain the unclip measurement result according to the compensation measurement range. And the signal measuring device and the signal measuring method can switch the set measurement range to the plurality of preset measurement ranges according to the uncut detection result, so that the set measurement range can be In addition to the dynamic range of the signal to be measured, the measurement result has better resolution.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention has been disclosed above in the foregoing embodiments, it is not intended to limit the invention. It is within the scope of the invention to be modified and modified without departing from the spirit and scope of the invention. Please refer to the attached patent application for the scope of protection defined by the present invention.

1、1’、1”‧‧‧信號量測裝置
12‧‧‧偵測電路
122’、124’、126’‧‧‧保護電路
128”‧‧‧可程式增益放大器
13‧‧‧通訊通道
14‧‧‧第一量測電路
142‧‧‧第一放大器
144‧‧‧抗混疊濾波器
146‧‧‧第一類比數位轉換器
16‧‧‧第二量測電路
162‧‧‧第二放大器
164‧‧‧抗混疊濾波器
166‧‧‧第二類比數位轉換器
18‧‧‧控制電路
182‧‧‧數位信號處理器
184‧‧‧現場可程式化閘陣列
19‧‧‧耦合電路
192‧‧‧脈衝變壓器
194‧‧‧光電耦合器
2‧‧‧待測物
D1~D4‧‧‧二極體
E1‧‧‧第一偵測端
E2‧‧‧第二偵測端
E3‧‧‧外部輸入端
ND‧‧‧分壓節點
R1‧‧‧第一電阻
R2‧‧‧第二電阻
R1”~R4”‧‧‧電阻
RL1‧‧‧第一繼電器
RL2‧‧‧第二繼電器
RL3‧‧‧第三繼電器
RL4‧‧‧第四繼電器
1, 1', 1" ‧ ‧ signal measuring device
12‧‧‧Detection circuit
122', 124', 126'‧‧‧ protection circuit
128”‧‧‧Programmable Gain Amplifier
13‧‧‧Communication channel
14‧‧‧First measuring circuit
142‧‧‧First amplifier
144‧‧‧Anti-aliasing filter
146‧‧‧First analog-to-digital converter
16‧‧‧Second measurement circuit
162‧‧‧second amplifier
164‧‧‧Anti-aliasing filter
166‧‧‧Second analog-to-digital converter
18‧‧‧Control circuit
182‧‧‧Digital Signal Processor
184‧‧‧Field programmable gate array
19‧‧‧Coupling circuit
192‧‧‧pulse transformer
194‧‧‧Photocoupler
2‧‧‧Test object
D1~D4‧‧‧ Diode
E1‧‧‧ first detection end
E2‧‧‧Second detection end
E3‧‧‧ external input
ND‧‧‧pressure node
R1‧‧‧first resistance
R2‧‧‧second resistance
R1"~R4"‧‧‧resistance
RL1‧‧‧First Relay
RL2‧‧‧second relay
RL3‧‧‧ third relay
RL4‧‧‧fourth relay

圖1係為根據本發明一實施例所繪示之信號量測裝置的功能方塊圖。 圖2係為根據本發明另一實施例所繪示之信號量測裝置的功能方塊圖。 圖3係為根據本發明又一實施例所繪示之信號量測裝置的功能方塊圖。 圖4係為根據本發明一實施例所繪示之信號量測方法的方法流程圖。 圖5係為根據本發明另一實施例所繪示之信號量測方法的方法流程圖。 圖6係為根據本發明更一實施例所繪示之信號量測方法的方法流程圖。 圖7係為根據本發明又一實施例所繪示之信號量測方法的方法流程圖。 圖8係為根據本發明再一實施例所繪示之信號量測方法的方法流程圖。FIG. 1 is a functional block diagram of a signal measuring apparatus according to an embodiment of the invention. 2 is a functional block diagram of a signal measuring device according to another embodiment of the present invention. FIG. 3 is a functional block diagram of a signal measuring apparatus according to still another embodiment of the present invention. FIG. 4 is a flow chart of a method for measuring a signal according to an embodiment of the invention. FIG. 5 is a flowchart of a method for measuring a signal according to another embodiment of the present invention. FIG. 6 is a flow chart of a method for measuring a signal according to a further embodiment of the present invention. FIG. 7 is a flowchart of a method for measuring a signal according to still another embodiment of the present invention. FIG. 8 is a flowchart of a method for measuring a signal according to still another embodiment of the present invention.

Claims (11)

一種信號量測裝置,包括:一偵測電路,用以電性連接一待測物,以產生一偵測信號;一第一量測電路,電性連接該偵測電路,該第一量測電路依據該偵測信號,並依據一第一量測範圍與一第二量測範圍其中之一者,產生一第一量測信號,其中該第二量測範圍大於該第一量測範圍;一第二量測電路,電性連接該偵測電路,該第二量測電路依據該偵測信號與一補償量測範圍產生一第二量測信號,其中該補償量測範圍大於該第二量測範圍;以及一控制電路,電性連接該第一量測電路與該第二量測電路,該控制電路依據該第二量測信號控制該第一量測電路切換該第一量測範圍與該第二量測範圍其中之一者。A signal measuring device includes: a detecting circuit for electrically connecting a test object to generate a detecting signal; a first measuring circuit electrically connected to the detecting circuit, the first measuring The circuit generates a first measurement signal according to the detection signal and according to one of the first measurement range and the second measurement range, wherein the second measurement range is greater than the first measurement range; a second measuring circuit electrically connected to the detecting circuit, wherein the second measuring circuit generates a second measuring signal according to the detecting signal and a compensation measuring range, wherein the compensation measuring range is greater than the second measuring a measuring circuit; and a control circuit electrically connected to the first measuring circuit and the second measuring circuit, wherein the control circuit controls the first measuring circuit to switch the first measuring range according to the second measuring signal And one of the second measurement ranges. 如請求項1所述之信號量測裝置,其中該控制電路於該第一量測電路切換該第一量測範圍與該第二量測範圍其中之一者時,可依據該第二量測信號補償該第一量測信號。The signal measuring device of claim 1, wherein the control circuit switches the second measurement range according to the second measurement range when the first measurement circuit switches one of the first measurement range and the second measurement range The signal compensates for the first measurement signal. 如請求項1所述之信號量測裝置,其中該第一量測電路包括一第一放大器與一第一類比數位轉換器,該第一放大器電性連接該偵測電路與該第一類比數位轉換器,該控制電路依據該第一量測信號的信號值大小與該第二量測信號的信號值大小調整該第一放大器的增益以切換該第一量測範圍與該第二量測範圍其中之一者。The signal measuring device of claim 1, wherein the first measuring circuit comprises a first amplifier and a first analog-to-digital converter, the first amplifier is electrically connected to the detecting circuit and the first analog digital a converter, the control circuit adjusts a gain of the first amplifier according to a magnitude of a signal value of the first measurement signal and a signal value of the second measurement signal to switch the first measurement range and the second measurement range One of them. 如請求項3所述之信號量測裝置,其中該第二量測電路包括一第二放大器與一第二類比數位轉換器,該第二放大器電性連接該偵測電路與該第二類比數位轉換器,該控制電路依據該第一量測信號的信號值大小與該第二量測信號的信號值大小調整該第二放大器的增益以調整該補償量測範圍。The signal measuring device of claim 3, wherein the second measuring circuit comprises a second amplifier and a second analog-to-digital converter, the second amplifier is electrically connected to the detecting circuit and the second analog digital The converter adjusts the gain of the second amplifier according to the magnitude of the signal value of the first measurement signal and the signal value of the second measurement signal to adjust the compensation measurement range. 如請求項4所述之信號量測裝置,其中該偵測電路包括一第一偵測端、一第二偵測端及一檔位切換子電路,該檔位切換子電路包括:一第一電阻,兩端分別電性連接該第一偵測端與一分壓節點;一第二電阻,兩端分別電性連接該第二偵測端與該分壓節點;一第一繼電器,該第一繼電器的輸出端電性連接該第一放大器的一輸入端,該第一繼電器的多個輸入端分別電性連接該第一偵測端、該分壓節點與一外部輸入端;一第二繼電器,該第二繼電器的輸出端電性連接該第一放大器的另一輸入端,該第二繼電器的多個輸入端分別電性連接該第二偵測端、該分壓節點與該外部輸入端;一第三繼電器,該第三繼電器的輸出端電性連接該第二放大器的一輸入端,該第三繼電器的多個輸入端其中之二分別電性連接該第一偵測端與該外部輸入端;以及一第四繼電器,該第四繼電器的輸出端電性連接該第二放大器的另一輸入端,該第四繼電器的多個輸入端其中之二分別電性連接該分壓節點與該外部輸入端。The signal measuring device of claim 4, wherein the detecting circuit comprises a first detecting end, a second detecting end and a gear shifting sub-circuit, the gear switching sub-circuit comprising: a first a resistor, the two ends are electrically connected to the first detecting end and a voltage dividing node respectively; a second resistor is electrically connected to the second detecting end and the voltage dividing node respectively; a first relay, the first An output end of a relay is electrically connected to an input end of the first amplifier, and the plurality of input ends of the first relay are electrically connected to the first detecting end, the voltage dividing node and an external input end respectively; a relay, the output end of the second relay is electrically connected to another input end of the first amplifier, and the plurality of input ends of the second relay are electrically connected to the second detecting end, the voltage dividing node and the external input a third relay, the output end of the third relay is electrically connected to an input end of the second amplifier, and two of the plurality of input ends of the third relay are electrically connected to the first detecting end and the An external input; and a fourth relay, the The output end of the fourth relay is electrically connected to the other input end of the second amplifier, and two of the plurality of input ends of the fourth relay are electrically connected to the voltage dividing node and the external input end respectively. 一種信號量測方法,包括:電性連接一待測物以產生一偵測信號;依據該偵測信號與一設定量測範圍產生一第一量測信號,該設定量測範圍為多個預設量測範圍其中之一;依據該偵測信號與一補償量測範圍產生一第二量測信號,該補償量測範圍的上限不小於該些預設量測範圍其中任一的上限;判斷該第一量測信號的信號值大小是否大於當前的該設定量測範圍的上限;以及當判斷若該第一量測信號的信號值大小大於當前的該設定量測範圍的上限時,則依據該第二量測信號的信號值大小將該設定量測範圍切換為該些預設量測範圍其中之另一,經切換後的該設定量測範圍的上限大於該第二量測信號的信號值大小。A signal measurement method includes: electrically connecting a test object to generate a detection signal; generating a first measurement signal according to the detection signal and a set measurement range, wherein the set measurement range is multiple pre-measurements Setting one of the measurement ranges; generating a second measurement signal according to the detection signal and a compensation measurement range, and the upper limit of the compensation measurement range is not less than an upper limit of any of the preset measurement ranges; Whether the signal value of the first measurement signal is greater than the current upper limit of the set measurement range; and when determining that the signal value of the first measurement signal is greater than the current upper limit of the set measurement range, The magnitude of the signal value of the second measurement signal switches the set measurement range to the other of the preset measurement ranges, and the upper limit of the set measurement range after the switching is greater than the signal of the second measurement signal The value size. 如請求項6所述的信號量測方法,更包括:於一第一時間切換該設定量測範圍為該些預設量測範圍其中之另一時,依據該第一時間的該第二量測信號補償該第一時間的該第一量測信號。The method for measuring the signal according to claim 6, further comprising: when the set measurement range is switched to the other of the preset measurement ranges at a first time, the second measurement according to the first time The signal compensates for the first measurement signal of the first time. 如請求項6所述之信號量測方法,其中該些預設量測範圍包括一第一量測範圍、至少一第二量測範圍,當前的該設定量測範圍的上限大於該第一量測範圍的上限與該至少一第二量測範圍的上限該第一量測範圍的上限大於該至少一第二量測範圍的上限,該信號量測方法更包括:取得該第一量測信號於一調降參考時間區間中的一有效參考值;判斷該有效參考值是否小於該第一量測範圍的上限或小於該至少一第二量測範圍的上限;以及當判斷該有效參考值小於該第一量測範圍的上限或小於該至少一第二量測範圍的上限時,將該設定量測範圍切換為該第一量測範圍。The signal measurement method of claim 6, wherein the preset measurement ranges include a first measurement range and at least a second measurement range, and an upper limit of the current set measurement range is greater than the first quantity. The upper limit of the measurement range and the upper limit of the at least one second measurement range, the upper limit of the first measurement range is greater than the upper limit of the at least one second measurement range, and the signal measurement method further comprises: obtaining the first measurement signal Determining a valid reference value in the reference time interval; determining whether the valid reference value is less than an upper limit of the first measurement range or less than an upper limit of the at least one second measurement range; and determining that the valid reference value is less than When the upper limit of the first measurement range is less than the upper limit of the at least one second measurement range, the set measurement range is switched to the first measurement range. 如請求項6所述之信號量測方法,更包括:判斷該第一量測信號於一模板參考時間中是否符合一信號模板;以及當判斷該第一量測信號於該模板參考時間中符合該信號模板時,調整該設定量測範圍為該些預設量測範圍中的一第一量測範圍;其中,該些預設量測範圍中更定義有至少一第二量測範圍,該第一量測範圍的上限不小於該第一量測信號的最大值,該第一量測範圍的上限小於該至少一第二量測範圍的上限。The signal measurement method of claim 6, further comprising: determining whether the first measurement signal conforms to a signal template in a template reference time; and determining that the first measurement signal meets the template reference time In the signal template, the set measurement range is adjusted to be a first measurement range of the preset measurement ranges; wherein the preset measurement ranges further define at least one second measurement range, The upper limit of the first measurement range is not less than the maximum value of the first measurement signal, and the upper limit of the first measurement range is smaller than the upper limit of the at least one second measurement range. 如請求項6所述之信號量測方法,更包括:判斷該第一量測信號於一變動參考時間區間中的一最大值;判斷該偵測信號於該變動參考時間區間中的一平均值;判斷該最大值與該平均值的差值是否小於一差值閾值;判斷於該變動參考時間區間中,該第一量測信號小於一參考閾值的一統計時間;判斷該統計時間是否小於一時間閾值;以及當判斷該最大值與該平均值的差值小於該差值閾值,且判斷該統計時間小於該時間閾值時,調整該設定量測範圍為該些預設量測範圍其中之一,調整後的該設定量測範圍的上限大於該最大值。The method for measuring a signal according to claim 6, further comprising: determining a maximum value of the first measurement signal in a variation reference time interval; determining an average value of the detection signal in the variation reference time interval Determining whether the difference between the maximum value and the average value is less than a difference threshold value; determining that the first measurement signal is less than a reference time of a statistical time in the variation reference time interval; determining whether the statistical time is less than one a time threshold; and when it is determined that the difference between the maximum value and the average value is less than the difference threshold value, and determining that the statistical time is less than the time threshold, adjusting the set measurement range to one of the preset measurement ranges The upper limit of the adjusted measurement range is greater than the maximum value. 如請求項6所述之信號量測方法,更包括:判斷該第一量測信號於一變動參考時間區間中的一最大值;判斷該偵測信號於該變動參考時間區間中的一平均值;判斷該最大值與該平均值的差值是否小於一差值閾值;判斷於該變動參考時間區間中,該第一量測信號小於一參考閾值的一統計時間;判斷該統計時間是否小於一時間閾值;以及當判斷該最大值與該平均值的差值不小於該差值閾值,且判斷該統計時間不小於該時間閾值時,調整該設定量測範圍為該些預設量測範圍其中之一,調整後的該設定量測範圍的上限不大於該最大值。The method for measuring a signal according to claim 6, further comprising: determining a maximum value of the first measurement signal in a variation reference time interval; determining an average value of the detection signal in the variation reference time interval Determining whether the difference between the maximum value and the average value is less than a difference threshold value; determining that the first measurement signal is less than a reference time of a statistical time in the variation reference time interval; determining whether the statistical time is less than one a time threshold; and when it is determined that the difference between the maximum value and the average value is not less than the difference threshold, and determining that the statistical time is not less than the time threshold, adjusting the set measurement range to the preset measurement ranges. In one of the adjustments, the upper limit of the set measurement range is not greater than the maximum value.
TW106122121A 2017-06-30 2017-06-30 Signal measurement apparatus and signal measurement method TWI621856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106122121A TWI621856B (en) 2017-06-30 2017-06-30 Signal measurement apparatus and signal measurement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106122121A TWI621856B (en) 2017-06-30 2017-06-30 Signal measurement apparatus and signal measurement method

Publications (2)

Publication Number Publication Date
TWI621856B true TWI621856B (en) 2018-04-21
TW201905469A TW201905469A (en) 2019-02-01

Family

ID=62640091

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106122121A TWI621856B (en) 2017-06-30 2017-06-30 Signal measurement apparatus and signal measurement method

Country Status (1)

Country Link
TW (1) TWI621856B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI728868B (en) * 2020-07-17 2021-05-21 皇晶科技股份有限公司 Method of threshold setting for mixed-signal logic analyzer

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM345239U (en) * 2008-07-17 2008-11-21 Inventec Corp Signal measuring apparatus
CN103969487A (en) * 2013-01-24 2014-08-06 承永资讯科技股份有限公司 Digital multi-meter (DMM) having LCR measuring function
US20150323570A1 (en) * 2014-05-08 2015-11-12 Intersil Americas LLC Input Current Compensation during Current Measurement
CN105548848A (en) * 2015-12-11 2016-05-04 武汉中派科技有限责任公司 Device, equipment and method for measuring breakdown voltage
TW201621333A (en) * 2014-10-20 2016-06-16 艾爾測試系統 Tester for device, method of operating switching circuit, and method of testing device
US20170146632A1 (en) * 2015-11-20 2017-05-25 Teradyne, Inc. Calibration device for automatic test equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM345239U (en) * 2008-07-17 2008-11-21 Inventec Corp Signal measuring apparatus
CN103969487A (en) * 2013-01-24 2014-08-06 承永资讯科技股份有限公司 Digital multi-meter (DMM) having LCR measuring function
US20150323570A1 (en) * 2014-05-08 2015-11-12 Intersil Americas LLC Input Current Compensation during Current Measurement
TW201621333A (en) * 2014-10-20 2016-06-16 艾爾測試系統 Tester for device, method of operating switching circuit, and method of testing device
US20170146632A1 (en) * 2015-11-20 2017-05-25 Teradyne, Inc. Calibration device for automatic test equipment
CN105548848A (en) * 2015-12-11 2016-05-04 武汉中派科技有限责任公司 Device, equipment and method for measuring breakdown voltage

Also Published As

Publication number Publication date
TW201905469A (en) 2019-02-01

Similar Documents

Publication Publication Date Title
CN107078707B (en) System and method for gain calibration of an audio signal path
KR102062209B1 (en) Anc test module and anc test apparatus using the same
US11162990B2 (en) Calibration arrangement and method for deriving a resistance of a resistor
CN115753022B (en) Testing system and testing method for performance of optical device
US10763836B2 (en) Measuring circuit for quantizing variations in circuit operating speed
TWI621856B (en) Signal measurement apparatus and signal measurement method
JP4499589B2 (en) Current measuring device and insulation resistance measuring device
CA3014682A1 (en) Test device for testing a control unit of a switching apparatus of a switchgear
WO2016106544A1 (en) Analog-to-digital converter protection circuit and control method thereof, and controller
JP6426326B2 (en) Speaker protection from thermal damage
US8461913B2 (en) Integrated circuit and a method for selecting a voltage in an integrated circuit
JP2017505914A (en) Current detection apparatus and method for detecting current
WO2015169354A1 (en) Mems microphone and method of operating a mems microphone
CN109212307B (en) Signal measurement device and signal measurement method
EP4280457A3 (en) Protection circuit in electronic device and method therefor
US10809299B2 (en) Testing device and method for testing a control unit of a switching device of a switchgear installation
US11422049B2 (en) Sensor device configured to reduce output errors due to temperature characteristics
WO2020160393A1 (en) Analog based speaker thermal protection in class-d amplifiers
JP6230894B2 (en) Surge test device, surge test method and electronic component
KR20210001215A (en) Voltage trimming circuit and voltage generation circuit including the same
CN111934636B (en) Attenuator calibration device and method
JP4851792B2 (en) Control circuit for diode-based RF circuit
JP2023137814A (en) Reliability test device for semiconductor device
KR101448557B1 (en) Apparatus for testing electronic device
JP3468197B2 (en) Method for measuring gain of variable amplifier