This application claims priority to Chinese Patent Application No. 201610847310.6 entitled “Method and Apparatus for Outputting Gradient Signal” filed on Sep. 23, 2016, the entire content of which is incorporated herein by reference for all purposes.
The present disclosure relates to magnetic resonance technical fields, and more particularly to generating a gradient signal.
Nuclear magnetic resonance is a frequently-used imaging examination technique. A magnetic resonance imaging system can include a radio-frequency transmitting subsystem, a three-dimensional gradient subsystem, a radio-frequency receiving subsystem, and the like. The three-dimensional gradient subsystem can be configured to provide a gradient magnetic field which meets a linearity desire and can be rapidly switched on and off. The gradient magnetic field is superimposed on a main magnetic field so as to implement spatial location for an imaging voxel.
NEUSOFT MEDICAL SYSTEMS CO., LTD. (NMS), founded in 1998 with its world headquarters in China, is a leading supplier of medical equipment, medical IT solutions, and healthcare services. NMS supplies medical equipment with a wide portfolio, including CT, Magnetic Resonance Imaging (MRI), digital X-ray machine, ultrasound, Positron Emission Tomography (PET), Linear Accelerator (LINAC), and biochemistry analyser. Currently, NMS' products are exported to over 60 countries and regions around the globe, serving more than 5,000 renowned customers. NMS's latest successful developments, such as 128 Multi-Slice CT Scanner System, Superconducting MRI, LINAC, and PET products, have led China to become a global high-end medical equipment producer. As an integrated supplier with extensive experience in large medical equipment, NMS has been committed to the study of avoiding secondary potential harm caused by excessive X-ray irradiation to the subject during the CT scanning process.
In practical applications, a gradient signal which can be outputted by a Digital to Analog Converter (DAC) may have a low precision, while a precision of a gradient signal which a magnetic resonance imaging system demands a gradient system to output may be high. Thus, a DAC which can output a gradient signal with a target precision may be used. However, a cost for the DAC with the high output precision is high.
In view of above, a method of generating a gradient signal is provided according to an example of the present disclosure, so as to implement that a gradient signal with a high precision can be outputted by using a DAC with a low precision.
At block 101, a target amplitude and a target duration associated with a target precision are obtained, where the target precision corresponds to a gradient signal to be output.
A precision of a gradient signal which can be outputted by a DAC is an actual precision, and a precision of a gradient signal desired in a practical application is a target precision, where the target precision may be higher than the actual precision. For example, the actual precision of the DAC is 20 bits, while the target precision of the desired gradient signal is 24 bits.
A size of a gradient signal outputted by the DAC is expressed by an amplitude of the gradient signal and a duration of outputting the amplitude. That is, the size of the gradient signal is equal to product of the amplitude and the duration of outputting the amplitude. Thus, the target duration is a duration of outputting the target amplitude.
The actual precision of the DAC may be smaller than the target precision. For example, it is assumed that the precision of the gradient signal desired to be output is 24 bits, thus, the target precision is 24 bits, while the actual precision, e.g., 20 bits, is smaller than 24 bits.
At block 102, a first actual amplitude is obtained by intercepting the target amplitude based on the actual precision of the DAC. The actual precision available to be outputted by the DAC is low, and the target precision is high. The target amplitude is intercepted based on the actual precision of the DAC. An upper-bit numerical value which corresponds to the number of bits of the actual precision available to be outputted by the DAC is retained in the target amplitude, and a lower-bit numerical value exceeding the actual precision is rejected from the target amplitude, so as to obtain the first actual amplitude. In this case, the precision of the first actual amplitude may be regarded as the actual precision. And a second actual amplitude is generated according to the first actual amplitude, where a difference between the second actual amplitude and the first actual amplitude may be 1. However, the difference between the second and first actual amplitudes may be less than or greater than 1 without departing from the scope of the present disclosure.
For example, it is assumed that the target precision is 24 bits and the actual precision of the DAC is 20 bits. The target amplitude is intercepted. An upper 20 bits numerical value of the target amplitude is retained, and a lower 4 bits numerical value of the target amplitude is rejected. For example, the target amplitude is 0000 0000 0000 0000 0100 0011, and the target precision is 24 bits. According to the 20 bits actual precision of the DAC, the target amplitude is intercepted by just retaining the upper 20 bits numerical value to obtain the first actual amplitude 0000 0000 0000 0000 0100, and rejecting the lower 4 bits numerical value, i.e., 0011.
It should to be noted that in an example of the present disclosure, an amplitude, a target amplitude, a first actual amplitude and a second actual amplitude may be regarded as analog values outputted by a DAC. However, DACs with a same precision but made by different manufactures may have different output voltage ranges. For example, the output voltage ranges of the DACs with the precision of 20 bits may include 0 to 5V, 0 to 10V, etc. To make the method in examples of the present disclosure apply to DACs with different output voltage ranges, an amplitude may be expressed as a digital value with the number of valid bits corresponding to a precision value, i.e., the input digital value. For example, when the target precision is 24 bits, the target amplitude is expressed as a value in a range from 0000 0000 0000 0000 0000 0000 to 1111 1111 1111 1111 1111 1111, such as 0000 0000 0000 0000 0100 0011. That is because an input digital value range for a DAC can be fixed. For example, an input digital value range for each DAC with the precision of 20 bits is 0000 0000 0000 0000 to 1111 1111 1111 1111, further an input digital value has a linearly proportional relationship with an output analog value.
It can be seen that, the first actual amplitude is an upper bits numerical value with the number of bits corresponding to the actual precision in the target amplitude, and the precision of the first actual amplitude is the actual precision. The DAC can directly output the first actual amplitude.
At block 103, a first actual duration of outputting the first actual amplitude and a second actual duration of outputting the second actual amplitude are determined according to the target amplitude, the target duration, the first actual amplitude and the second actual amplitude.
The target amplitude is intercepted according to the actual precision to obtain the first actual amplitude. A rejected lower bit numerical value from the first actual amplitude corresponds to a decimal of the first actual amplitude, i.e., the rejected lower bit numerical value may be less than 1. It may be determined that the second actual amplitude is the first actual amplitude plus 1. In this case, the target amplitude is larger than the first actual amplitude and smaller than the second actual amplitude, where a difference between the target amplitude and the first actual amplitude is less than 1, and a difference between the second actual amplitude and the target amplitude is also less than 1.
In an example, the process of determining the first actual duration of outputting the first actual amplitude and the second actual duration of outputting the second actual amplitude according to the target amplitude, the target duration, the first actual amplitude and the second actual amplitude may include procedures as follows.
A first equivalent relationship is generated to indicate that a target area is equal to a product of an area sum and a n-th power of 2, where the target area is a product of the target amplitude and the target duration, the area sum is a sum of a first area and a second area, the first area is a product of the first actual amplitude and the first actual duration, a second area is the product of the second actual amplitude and the second duration, and n is a difference between the number of valid bits of the target precision and the number of valid bits of the actual precision.
A second equivalent relationship is generated to at least indicate that the target duration is equal to a sum of the first actual duration and the first actual duration.
The first actual duration and the second actual duration are determined according to the first equivalent relationship and the second equivalent relationship.
The first equivalent relationship may indicate that a size of a gradient signal outputted based on the target precision is same as that of a gradient signal outputted based on the actual precision. The size of the gradient signal outputted based on the target precision is the product of the target amplitude and the target duration. The size of the gradient signal outputted based on the actual precision is a sum of a first product value and a second product, where the first product value is the product of the first actual amplitude and the first actual duration, and the second product value is the product of the second actual amplitude and the second actual duration.
The target area is used to express the product of the target amplitude and the target duration, the first area is used to express the product of the first actual amplitude and the first actual duration, and the second area is used to express the product of the second actual amplitude and the second actual duration. Thus, when the target precision is reached, the sum of the first area and the second area is equal to the target area. Since the first area and the second area are calculated according to the actual precision, the area sum calculated based on the actual precision may be converted into an area sum based on the target precision according to a difference n between the number of the valid bits of the target precision and the number of the valid bits of the actual precision. For example, when the target precision is 24 bits and the actual precision of the DAC is 20 bits, n is 4.
For example, when the target precision is 24 bits and the actual precision of the DAC is 20 bits, n is equal to 4.
The first equivalent relationship may be expressed by formula (1):
[BT1+(B+1)T2]2n=AT (1)
The second equivalent relationship may indicate that the duration of outputting a gradient signal based on the target precision is same as the duration of outputting a gradient signal based on the actual precision, which may be expressed by formula (2):
T
1
+T
2
=T (2)
The first actual duration and the second actual duration may be determined according to the first equivalent relationship and the second equivalent relationship. For example, the formulas (3) and (4) are derived according to the formula (1) and the formula (2) to calculate T1 and T2.
The formula (3) is used to calculate the first actual duration:
The formula (4) is used to calculate the second actual duration:
At block 104, the DAC is controlled to output the first actual amplitude according to the first actual duration and to output the second actual amplitude according to the second actual duration.
In an example, the DAC is controlled to output the gradient signal with the target precision according to the first actual duration of outputting the first actual amplitude and the second actual duration of outputting the second actual amplitude.
After the first actual duration of outputting the first actual amplitude and the second actual duration of outputting the second actual amplitude are determined, an output of the DAC with the actual precision may be controlled accordingly in a way that it can be implemented to equivalently generate a gradient signal with the target precision.
As shown in
According to a method of generating a gradient signal provided in examples of the present disclosure, as shown in
In an example, as shown in
In the target duration, the first actual amplitude is firstly outputted in the first actual duration, and the second actual amplitude is subsequently in the second actual duration.
The DAC is controlled firstly to output the first actual amplitude in the first actual duration. After the first actual duration ends, the DAC is controlled to output the second actual amplitude in the second actual duration. In this case, there may be almost no time interval between the process of outputting the first actual amplitude and the process of outputting the second actual amplitude.
In an example, as shown in
According to a method of generating a gradient signal provided in examples of the present disclosure, as shown in
In the target duration, the second actual amplitude is firstly outputted in the second actual duration, and the first actual amplitude is subsequently in the first actual duration.
The DAC is controlled firstly to output the second actual amplitude in the second actual duration, and after the second actual duration ends, the DAC is controlled to output the first actual amplitude in the first actual duration. In this case, there may be almost no time interval between the process of outputting the second actual amplitude and the process of outputting the first actual amplitude.
In an example, as shown in
In the target duration, the first actual amplitude and the second actual amplitude are alternately outputted, where a sum of durations of outputting the first actual amplitude is equal to the first actual duration and a sum of durations of outputting the second actual amplitude is equal to the second actual duration.
As shown in
To better understand technical solutions based on examples of the present disclosure, a specific example is given below.
In the example, the target precision is 24 bits, the actual precision of the DAC is 20 bits, where the target amplitude A is 0000 0000 0000 0000 0100 0011 and the target duration is 16 μs. The target amplitude A equal to 0000 0000 0000 0000 0100 0011 is intercepted according to the 20 bits actual precision of the DAC to obtain the first actual amplitude B equal to 0000 0000 0000 0000 0100 and the second actual amplitude (B+1) equal to 0000 0000 0000 0000 0101, where n=4. T1 equal to 13 μs and T2 equal to 3 μs are obtained by performing calculation according to the formula (3) and the formula (4).
Thus, the duration of outputting the first actual amplitude B=0000 0000 0000 0000 0100 by the DAC may be controlled to be 13 μs, and the duration of outputting the second actual amplitude B+1=0000 0000 0000 0000 0101 is controlled to be 3 μs.
An area of a gradient signal outputted based on the 24 bits target precision is:
AT=1072.
An area of a gradient signal outputted by the DAC based on the 20 bits actual precision is:
BT1+(B+1)T2=67.
The area calculated based on the 20 bits actual precision is converted into an area associated with the 24 bits target precision:
67×24=1072.
Thus, the gradient signal outputted by the DAC based on the 20 bits actual precision is equal to the gradient signal outputted based on the 24 bits target precision.
Further, Table 1 shows an output manner that gradient signal with the 24 bits target precision is outputted by the DAC with the 20 bits actual precision in 16 μs.
It can be seen from above, a target amplitude and a target duration time period associated with a target precision corresponding to a gradient signal to be outputted is obtained; a first actual amplitude is obtained by intercepting the target amplitude according to an actual precision of a DAC; a second actual amplitude is obtained according to the first actual amplitude, wherein a difference between the second actual amplitude and the first actual amplitude is 1; a first actual duration of outputting the first actual amplitude and a second actual duration of outputting the second actual amplitude are determined according to the target amplitude, the target duration, the first actual amplitude and the second actual amplitude; and the DAC is controlled to output the first actual amplitude according to the first actual duration and to output the second actual amplitude according to the second actual duration. Thus, a gradient signal with the target precision can be provided, which is larger than the actual precision available to be provided by the DAC, and gradient coding errors can be effectively reduced, spatial locating accuracy can be improved, thereby ensuring a better imaging effect.
As shown in
In examples, the machine readable storage medium 62 may be: a Read-Only Memory (ROM), a volatile memory, a non-volatile memory, a flash memory, a storage drive (e.g. hard disk drive), a solid state hard disk, any type of storage disk (e.g., optical disk, Digital Video Disk (DVD)), or a similar storage medium, or a combination thereof.
Further, the machine readable storage medium 62 stores the control logic 70 for generating a gradient waveform. As shown in
An obtaining module 701 may be configured to obtain a target amplitude and a target duration associated with a target precision corresponding to the gradient signal.
An intercepting module 702 may be configured to generate a first actual amplitude by intercepting the target amplitude according to an actual precision of the DAC, generate a second actual amplitude according to the first actual amplitude, wherein a difference between the second actual amplitude and the first actual amplitude is 1.
A determining module 703 may be configured to determine a first actual duration of outputting the first actual amplitude and a second actual duration of outputting the second actual amplitude according to the target amplitude, the target duration, the first actual amplitude and the second actual amplitude; and
A controlling module 704 may be configured to control the DAC to output the first actual amplitude according to the first actual duration and to output the second actual amplitude according to the second actual duration.
In an example, the determining module includes sub-modules as follows.
A first generating sub-module may be configured to generate a first equivalent relationship to indicate that a target area is equal to product of an area sum and a n-th power of 2, wherein the target area is product of the target amplitude and the target duration; the area sum is a sum of a first area and a second area; the first area is product of the first actual amplitude and the first actual duration; the second area is product of the second actual amplitude and the second actual duration; n is a difference between the number of valid bits of the target precision and the number of valid bits of the actual precision.
A second generating sub-module may be configured to generate a second equivalent relationship to indicate that the target duration is equal to a sum of the first actual duration and the second actual duration.
A determining sub-module may be configured to determine the first actual duration and the second actual duration according to the first equivalent relationship and the second equivalent relationship.
In an example, the controlling module 704 may be configured to control, in the target duration, the DAC to: firstly output the first actual amplitude in the first actual duration; subsequently output the second actual amplitude in the second actual duration.
In an example, the controlling module 704 may be configured to control, in the target duration, the DAC to: firstly output the second actual amplitude in the second actual duration; subsequently output the first actual amplitude in the first actual duration.
In an example, the controlling module 704 may be configured to control, in the target duration, the DAC to alternately output the first actual amplitude and the second actual amplitude, wherein a sum of durations of outputting the first actual amplitude is equal to the first actual duration, a sum of durations of outputting the second actual amplitude is equal to the second actual duration.
Taking software implementation as an example to further describe how the gradient waveform generator executes the control logic 70. In the example, the control logic 70 may be interpreted as computer instructions stored on the machine readable storage medium 62. When a CPU 61 of the gradient waveform generator in the present disclosure executes the control logic 70, the CPU 61 executes operations as follows by invoking instructions corresponding to the control logic 70 and stored on the machine readable storage medium 62, where the instructions include to obtain a target amplitude and a target duration associated with a target precision corresponding to the gradient signal, generate a first actual amplitude by intercepting the target amplitude according to an actual precision of the DAC, generate a second actual amplitude according to the first actual amplitude, wherein a difference between the second actual amplitude and the first actual amplitude is 1, determine a first actual duration of outputting the first actual amplitude and a second actual duration of outputting the second actual amplitude according to the target amplitude, the target duration, the first actual amplitude and the second actual amplitude, and control the DAC to output the first actual amplitude according to the first actual duration and to output the second actual amplitude according to the second actual duration.
In an example, when determining the first actual duration of outputting the first actual amplitude and the second actual duration of outputting the second actual amplitude according to the target amplitude, the target duration, the first actual amplitude and the second actual amplitude, the processor is caused by the machine-executable instructions corresponding to the control logic and stored on the machine readable storage medium to generate a first equivalent relationship to indicate that a target area is equal to product of an area sum and a n-th power of 2, wherein the target area is product of the target amplitude and the target duration, the area sum is a sum of a first area and a second area, the first area is product of the first actual amplitude and the first actual duration, the second area is product of the second actual amplitude and the second actual duration, n is a difference between the number of valid bits of the target precision and the number of valid bits of the actual precision, generate a second equivalent relationship to indicate that the target duration is equal to a sum of the first actual duration and the second actual duration, and determine the first actual duration and the second actual duration according to the first equivalent relationship and the second equivalent relationship.
In an example, when controlling the DAC to output the first actual amplitude according to the first actual duration and to output the second actual amplitude according to the second actual duration, the processor is caused by the machine-executable instructions corresponding to the control logic and stored on the machine readable storage medium to control, in the target duration, the DAC to firstly output the first actual amplitude in the first actual duration and subsequently output the second actual amplitude in the second actual duration.
In an example, when controlling the DAC to output the first actual amplitude according to the first actual duration and to output the second actual amplitude according to the second actual duration, the processor is caused by the machine-executable instructions corresponding to the control logic and stored on the machine readable storage medium to control, in the target duration, the DAC to firstly output the second actual amplitude in the second actual duration and subsequently output the first actual amplitude in the first actual duration.
In an example, when controlling the DAC to output the first actual amplitude according to the first actual duration and to output the second actual amplitude according to the second actual duration, the processor is caused by the machine-executable instructions corresponding to the control logic and stored on the machine readable storage medium to control, in the target duration, the DAC to alternately output the first actual amplitude and the second actual amplitude, wherein a sum of durations of outputting the first actual amplitude is equal to the first actual duration, and a sum of durations of outputting the second actual amplitude is equal to the second actual duration.
Corresponding to the methods above, the present disclosure further provides a nuclear magnetic resonance imaging system.
The three-dimensional gradient subsystem 810 includes a gradient waveform generator 811, a gradient amplifier 812, and a gradient coil 813. The gradient waveform generator 811 is configured to generate three-dimensional gradient pulse signals, where the three-dimensional gradient pulse signals include a slice-selection direction gradient signal, a frequency-coding gradient signal, and a phase-coding gradient signal. The gradient amplifier 812 is configured to amplify the three-dimensional gradient pulse signals. And the gradient coil 813 is configured to generate a three-dimensional gradient magnetic field based on the three-dimensional gradient pulse signals, where the three dimensional gradient magnetic field enables an image to have spatial information.
The gradient waveform generator 811 includes a processor 61, a machine readable storage medium 62 and a DAC 65 as shown in
The machine readable storage medium 62 stores a control logic 70 for generating a gradient waveform. A manner of executing the control logic 70 by the gradient waveform generator is same as that in the examples above, which is not redundantly described herein.
For simplicity and illustrative purposes, the present disclosure is described by referring mainly to examples thereof. In the above descriptions, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. It will be readily apparent however, that the present disclosure may be practiced without limitation to these specific details. In other instances, some methods and structures have not been described in detail so as not to unnecessarily obscure the present disclosure. As used herein, the terms “a” and “an” are intended to denote at least one of a particular element, the term “includes” means includes but not limited to, the term “including” means including but not limited to, and the term “based on” means based at least in part on.
The above description is merely preferred examples of the present disclosure and is not intended to limit the present disclosure in any form. Although the present disclosure is disclosed by the above examples, the examples are not intended to limit the present disclosure. Those skilled in the art, without departing from the scope of the technical scheme of the present disclosure, may make a plurality of changes and modifications of the technical scheme of the present disclosure by the method and technical content disclosed above.
Therefore, without departing from the scope of the technical scheme of the present disclosure, based on technical essences of the present disclosure, any simple alterations, equal changes and modifications should fall within the protection scope of the technical scheme of the present disclosure. Accordingly, other embodiments are within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201610847310.6 | Sep 2016 | CN | national |