The objective of the invention is to design a kind of method of spectrogram being carried out the localization analytical calculation, this method can show spectrogram by computing machine on the lattice liquid crystal display screen, and the measurement localization is set in spectrogram with keyboard, make the border, the left and right sides of measuring localization be positioned at the two ends of the stripping signal peak of tested metal, computing machine is found out the maximal value and the minimum value of spectrogram ordinate the spectrogram in measuring localization automatically, thereby obtains the peak height of stripping signal peak.
The object of the present invention is achieved like this, a kind of polarogram stripping voltammetry that adopts polarograph, computing machine, lattice liquid crystal display screen LCD and keyboard to carry out, and keyboard has
Key, keyboard, lattice liquid crystal display screen and polarograph all are connected with computing machine;
In the data memory RAM of computing machine, open up storage portions, be respectively:
DATA: being used to deposit the working electrode current signal of polarograph or working electrode electric current is the raw data of spectrogram to the single order of time or second derivative signal with the change curve of scanning voltage, these raw data are computing machines every the working electrode current value of the resulting a series of polarographs of certain sampling period once sampling or working electrode electric current single order or the second derivative value to the time, and they are deposited by the sampling time order in DATA;
BUFFER:, be used to deposit the reflection that lattice liquid crystal display screen LCD goes up picture that show, row's transferring as the display buffer;
AddrA left side: be used to deposit localization left side boundary line LA left sideAbscissa value XA left side, and deposit an initial value in;
AddrRight: be used to deposit localization the right boundary line LRightAbscissa value XRight, and deposit an initial value in;
Flag: sign, if it equals " left side ", L is being transferred in expression nowA left side, if it equals " right side ", L is being transferred in expression nowRight, initial value is put " left side ";
BxRight: the low order end abscissa value MAX that is used to deposit whole indication range;
A Bx left side: the high order end abscissa value MIN that is used to deposit whole indication range;
According to the concrete model establishment slot man subroutine of computing machine and lattice liquid crystal display screen LCD, this program deposits among the memory under program ROM of computing machine, and it can be with the raw data and the L of the spectrogram among the DATAA left side, LRightArticle two, straight line carries out the picture composing, and the reflection that forms picture deposits among the BUFFER;
According to the concrete model establishment display subroutine of computing machine and lattice liquid crystal display screen LCD, this program deposits among the memory under program ROM of computing machine, and it can give the value among the BUFFER spectrogram and the L that lattice liquid crystal display screen LCD shows certain space of a whole page one by oneA left side, LRightArticle two, straight line;
Establishment analytical calculation subroutine, this program can be found out at straight line LA left sideWith straight line LRightBetween localization in the maximal value and the minimum value of ordinate of spectrogram, this program deposits among the memory under program ROM of computing machine;
Its special character is, adopts the following step:
(1) in the electrolytic cell of polarograph, adds test solution, starting computer system starts working, when polarograph scans, computing machine every a sampling period to working electrode electric current or working electrode electric current single order or second derivative once sampling to the time, working electrode current signal that obtains or working electrode electric current are that spectrogram deposits among the DATA to the single order of time or second derivative signal with the change curve of scanning voltage;
(2) empty BUFFER, transfer the slot man subroutine, spectrogram among the DATA and LA left side, LRightArticle two, straight line carries out the picture composing, with spectrogram and LA left side, LRightArticle two, the reflection of the picture of straight line deposits among the BUFFER;
(3) transfer display subroutine, give lattice liquid crystal display screen LCD one by one with the value among the BUFFER and show spectrogram and LA left side, LRightArticle two, straight line;
(4) read keyboard:
-whenever press once
Key is judged X
A left sideWhether less than MAX, if X
A left sideLess than MAX X then
A left sideAdd 1 and deposit Addr in
A left sideIn, repeating step (2) is to (4), otherwise repeating step (2) is to (4);
-whenever press once
Key is judged X
A left sideWhether greater than MIN, if X
A left sideGreater than MIN X then
A left sideSubtract 1 and deposit Addr in
A left sideIn, important step (2) is to (4), otherwise repeating step (2) is to (4);
-as straight line LA left sideWhen being transferred to the left margin of stripping signal peak of the tested element in the spectrogram, pressKey, XA left sideBe identified, the flag value becomes " right side " by " left side ";
-whenever press onceKey is judged XRightWhether less than MAX, if XRightLess than MAX X thenRightAdd 1 and deposit Addr inRightIn, important step (2) is to (4), otherwise repeating step (2) is to (4);
-whenever press once
Key is judged X
RightWhether greater than X
A left side, if X
RightGreater than X
A left side, X then
RightSubtract 1 and deposit Addr in
RightIn, important step (2) is to (4), otherwise repeating step (2) is to (4);
-as straight line LRightWhen being transferred to the right margin of stripping signal peak of the tested element in the spectrogram, pressKey, XRightBe identified;
(5) transfer the analytical calculation subroutine, the analytical calculation subroutine is from straight line LA left sideWith straight line LRightBetween localization in spectrogram in find out the maximal value y of spectrogram ordinateMax1, and minimum value yMin1, and calculate the stripping signal peak height Δ y of tested element1=yMax1-yMin1
(6) pass through the output device of computing machine with Δ y1Output;
(7) in the test solution of the electrolytic cell of polarograph, add standard solution by " standard addition method ", polarograph is swept when arranging, computing machine every a sampling period to working electrode electric current or working electrode electric current single order or second derivative once sampling to the time, working electrode current signal that obtains or working electrode electric current are that spectrogram deposits among the DATA to the single order of time or second derivative signal with the change curve of scanning voltage;
(8) the new spectrogram of selecting step (7) to obtain is transferred the analytical calculation subroutine, the straight line L that the analytical calculation subroutine is determined from step (4)A left sideWith straight line LRightBetween localization in spectrogram in find out the maximal value y of spectrogram ordinateMax2With minimum value yMin2, and calculate tested element stripping signal peak height Δ y2=yMax2-yMin2
(9) pass through the output device of computing machine with Δ y2Output;
(10) according to Δ y1With Δ y2And concentration, the volume of the titer that adds carry out quantitative Analysis to the concentration of tested element.
The present invention at first passes through computer sampling, the raw data of spectrogram is deposited in the DATA storage portions of data memory, these raw data are a series of working electrode current value or working electrode electric current to single order or the second derivative value of time, and they are that time sequencing according to sampling deposits among the DATA.Set type through the raw data of spectrogram being carried out picture, on lattice liquid crystal display screen LCD, show spectrogram, the ordinate y of spectrogram is exactly working electrode current value or working electrode electric current single order or the second derivative value to the time, because scanning voltage is a linear change to the time, so the horizontal ordinate x of spectrogram is exactly the scanning voltage value.Can observe the stripping signal peak of tested metal by observation point configuration LCDs LCD, by in the keyboard

Key will be measured the boundary line L of localization
A left sideAnd L
RightBe transferred to the two ends of the stripping signal peak of tested metal.L
A left sideAnd L
RightBe respectively that horizontal ordinate equals X
A left sideAnd X
RightTwo straight lines, i.e. L
A left sideBe X=X
A left side, L
RightBe X=X
RightOn lattice liquid crystal display screen LCD, show L
A left sideAnd L
RightArticle two, straight line is for the operator observes, and their real effect is the horizontal ordinate interval of determining analytical calculation.The analytical calculation subroutine is only at straight line L
A left sideWith straight line L
RightBetween localization in spectrogram is carried out analytical calculation, promptly to horizontal ordinate X
A left sideAnd X
RightBetween the ordinate value of spectrogram compare, find at horizontal ordinate X
A left sideWith X
RightBetween the maximal value y of ordinate value of spectrogram
MaxWith minimum value y
Min, maximal value y
MaxDeduct minimum value y
MinCan obtain the peak height Δ y of stripping signal peak.Because employed analytical calculation localization is identical before and after adopting " standard addition method ", promptly at the L that adopts " standard addition method " front and back
A left sideAnd L
RightThe position identical, so obtaining with under the scan voltage in the maximal value of the ordinate value that adopts the spectrogram that obtains before and after " standard addition method ", minimum value is also obtaining with under the scan voltage.Straight line L
A left sideAnd L
RightJust, adjust L in order to set the localization of analytical calculation
A left side, L
RightSequencing unimportant, also can work out concrete computer program in actual applications, adjust earlier L
RightThe position, L is adjusted in the back
A left sideThe position.L
A left sideWith L
RightParticular location neither be unique, L
A left sideWith L
RightAs long as particular location can make the maximal value of the spectrogram that will measure and minimum value be included in L
A left sideWith L
RightBetween get final product.X
A left sideAnd X
RightInitial value should between the high order end abscissa value MIN of the indication range of lattice liquid crystal display screen LCD and low order end abscissa value MAX, choose.For the ease of observing operation, generally with X
A left sideAnd X
RightInitial value all elect MIN as.
Slot man subroutine of the present invention is at first with the raw data and the L of the spectrogram among the DATAA left side, LRightArticle two, straight line carries out the picture composing, forms spectrogram and LA left side, LRightArticle two, the reflection of the picture of straight line deposits among the BUFFER, then with L among the BUFFERA left sideAnd LRightArticle two, the picture color negate between the straight line, that is: be originally " bright " point become " secretly " point, be originally put " secretly " become " bright " point.Like this after lattice liquid crystal display screen LCD shows, straight line LA left sideWith straight line LRightBetween the measurement localization in spectrogram with measure localization outside the color opposite (that is: light and shade is opposite) of spectrogram, at adjustment LA left sideAnd LRightThe position time, be convenient to the operator and observe.
If simultaneously several metal ion species in the test solution are measured simultaneously, can adopt following technical solution to realize purpose of the present invention: a kind of polarogram stripping voltammetry that adopts polarograph, computing machine, lattice liquid crystal display screen LCD and keyboard to carry out, keyboard hasKey, keyboard, lattice liquid crystal display screen and polarograph all are connected with computing machine;
In the data memory RAM of computing machine, open up storage portions, be respectively:
DATA: be used to deposit the working electrode current signal of polarograph or working electrode electric current to the single order of time or second derivative signal raw data with the change curve of scanning voltage, these raw data are computing machines every the working electrode current value of the resulting a series of polarographs of certain sampling period once sampling or working electrode electric current single order or the second derivative value to the time, and they are deposited by the sampling time order in DATA;
BUFFER:, be used to deposit the reflection that lattice liquid crystal display screen LCD goes up picture that show, row's transferring as the display buffer;
AddrLeft side i: be used to deposit localization i left side boundary line LLeft side iAbscissa value XLeft side i, and deposit an initial value in, and i=1,2,3......N, N are the integer more than or equal to 1;
AddrRight i: be used to deposit localization i the right boundary line LRight iAbscissa value XRight i, and depositing an initial value in, i=1,2,3......N, N are the integer more than or equal to 1;
Flag: sign, if it equals " left side ", L is being transferred in expression nowLeft side i, if it equals " right side ", L is being transferred in expression nowRight i, initial value is put " left side ";
BxRight: the low order end abscissa value MAX that is used to deposit whole indication range;
BxA left side: the high order end abscissa value MIN that is used to deposit whole indication range;
According to the concrete model establishment slot man subroutine of computing machine and lattice liquid crystal display screen LCD, this program deposits among the memory under program ROM of computing machine, and it can be with the raw data and the L of the spectrogram among the DATALeft side i, LRight iArticle two, straight line carries out the picture composing, and the reflection that forms picture deposits among the BUFFER;
According to the concrete model establishment display subroutine of computing machine and lattice liquid crystal display screen LCD, this program deposits among the memory under program ROM of computing machine, and it can give the value among the BUFFER spectrogram and the L that lattice liquid crystal display screen LCD shows certain space of a whole page one by oneLeft side i, LRight iArticle two, straight line;
Establishment analytical calculation subroutine, this program can be found out at straight line LLeft side iWith straight line LRight iBetween localization in the maximal value and the minimum value of ordinate of spectrogram, this program deposits among the memory under program ROM of computing machine;
Its special character is, adopts the following step:
(1) in the electrolytic cell of polarograph, adds test solution, starting computer system starts working, when polarograph scans, computing machine every a sampling period to working electrode electric current or working electrode electric current single order or second derivative once sampling to the time, working electrode current signal that obtains or working electrode electric current are that spectrogram deposits among the DATA to the single order of time or second derivative signal with the change curve of scanning voltage;
(2) the sequence number i of the analytical calculation localization that is provided with keyboard input desire, i=1,2,3.....N, N are the integer more than or equal to 1;
(3) judge whether i equals 1,,, judge X if i is not equal to 1 if i equals 1 and connects step (4)A left side (i-1)Whether equal XRight (i-1), if XA left side (i-1)Equal XRight (i-1)Then repeat rapid (2) to (3), if XA left side (i-1)Be not equal to XRight (i-1), then:
(4) empty BUFFER, transfer the slot man subroutine, the L of the spectrogram among the DATA and all localizationLeft side i, LRight iArticle two, straight line carries out the picture composing, with the L of spectrogram and all localizationLeft side i, LRight iArticle two, the image of the picture of straight line deposits among the BUFFER;
(5) transfer display subroutine, give the L that lattice liquid crystal display screen LCD shows spectrogram and all localization one by one the value among the BUFFERLeft side i, LRightArticle two, straight line;
(6) read keyboard:
-whenever press onceKey is judged XLeft side iWhether less than MAX, if XLeft side iLess than MAX X thenLeft side iAdd 1 and deposit Addr inLeft side iIn, repeating step (4) is to (6), otherwise repeating step (4) is to (6);
-whenever press onceKey judges whether i equals 1, if i equals 1, judges XLeft side iWhether greater than MIN, if XLeft side iGreater than MIN X thenLeft side iSubtract 1 and deposit Addr inLeft side iIn, repeating step (4) is to (6), otherwise repeating step (4) is to (6); If i is not equal to 1, judge XLeft side iWhether greater than XRight (i-1), if XLeft side iGreater than XRight (i-1), X thenLeft side iSubtract 1 and deposit Addr inLeft side iIn, repeating step (4) is to (6), otherwise repeating step (4) is to (6);
-as straight line LLeft side iWhen being transferred to the left margin of stripping signal peak of the tested element in the spectrogram, pressKey, XLeft side iBe identified, the flag value becomes " right side " by " left side ";
-whenever press once
Key is judged X
Right iWhether less than MAX, if X
Right iLess than MAX X then
Right iAdd 1 and deposit Addr in
Right iIn, repeating step (4) is to (6), otherwise repeating step (4) is to (6);
-whenever press onceKey is judged XRight iWhether greater than XLeft side i, if XRight iGreater than XLeft side iX thenRight iSubtract 1 and deposit Addr inRight iIn, repeating step (4) is to (6), otherwise repeating step (4) is to (6);
-as straight line LRight iWhen being transferred to the right margin of stripping signal peak of the tested element in the spectrogram, pressKey, XRight iBe identified, the flag value becomes " left side " by " right side ";
(7) judge XRight iWhether greater than XA left side (i+i), if XRight iGreater than XA left side (i+1), then localization (i+1), (i+2) ... the X of NA left side (i+1), XA left side (i+2)... XLeft side NAnd XRight (i+1), XRight (i+2)... XRight NAll equal XRight i, and deposit corresponding Addr inA left side (i+1), AddrA left side (i+2)... AddrLeft side NAnd AddrRight (i+1), AddrRight (i+2)... AddrRight NIn, connect step (8), otherwise:
(8) transfer the analytical calculation subroutine, the analytical calculation subroutine is from straight line LLeft side iWith straight line LRight iBetween localization in spectrogram in find out the maximal value y of spectrogram ordinateImax1With minimum value yImini, and calculate the stripping signal peak height Δ y of tested elementI1=yImax1-yImini
(9) repeating step (2) is to (8), and the stripping signal peak of all tested elements is all set up the analytical calculation localization, and after calculating the stripping signal peak height of all tested elements, and the output device by computing machine is with Δ y11, Δ y21... Δ yN1Output;
(10) in the test solution of the electrolytic cell of polarograph, add standard solution by " standard addition method ", when polarograph scans, computing machine every a sampling period to working electrode electric current or working electrode electric current single order or second derivative once sampling to the time, working electrode current signal that obtains or working electrode electric current are that spectrogram deposits among the DATA to the single order of time or second derivative signal with the change curve of scanning voltage;
(11) the new spectrogram of selecting step (10) to obtain is transferred the analytical calculation subroutine, the straight line L that the analytical calculation subroutine is determined from step (6)Left side iWith straight line LRight iBetween localization in spectrogram in find out the maximal value y of spectrogram ordinateImax2With minimum value yImin2, and calculate the stripping signal peak height Δ y of all tested elementsI2=yImax2-yImin2
(12) pass through the output device of computing machine with Δ y12, Δ y22... Δ yN2Output;
(13) according to Δ y11With Δ y12, Δ y21With Δ y22... Δ yN1With Δ yN2And concentration, the volume of the titer that adds carry out quantitative Analysis to the concentration of all tested elements.
LLeft side iAnd LRight iBe respectively that horizontal ordinate equals XLeft side iAnd XRight iTwo straight lines, that is: LLeft side iBe X=XLeft side i, LRight iBe X=XRight iStraight line LLeft side iAnd LRight iJust, adjust L in order to set the localization of analytical calculationLeft side i, LRight iSequencing unimportant, also can work out concrete computer program in actual applications, adjust earlier LRight iThe position, L is adjusted in the backLeft side iThe position.XLeft side iAnd XRight iInitial value should between the high order end abscissa value MIN of the indication range of lattice liquid crystal display screen LCD and low order end abscissa value MAX, choose.For the ease of observing operation, generally with XLeft side iAnd XRight iInitial value all elect MIN as.
Above-mentioned technical solution can be provided with several analytical calculation localization in same spectrogram, simultaneously the stripping signal peak height of several tested metals is measured, the different analytical calculation localization of difference during for the ease of operator's observation point configuration LCDs LCD, slot man subroutine of the present invention are at first with the L of raw data He all localization of the spectrogram among the DATALeft side i, LRight iArticle two, straight line carries out the picture composing, forms the L of spectrogram and all localizationLeft side i, LRight iArticle two, the reflection of the picture of straight line deposits among the BUFFER, then with L among the BUFFERLeft side iAnd LRight iArticle two, the picture color negate between the straight line, promptly be originally " bright " point become " secretly " point, be originally put " secretly " become " bright " point.After lattice liquid crystal display screen LCD showed, color in each localization and the color opposite (being that light and shade is opposite) outside the localization helped the operator and distinguish each different analytical calculation localization like this.
The present invention is used for the anodic stripping voltammetry of polarogarphy, can carry out the localization analytical calculation to spectrogram, thereby draws the peak height of the stripping signal peak of tested metal.Because the horizontal ordinate position of the stripping signal peak of the tested metal that is measured with same set of electrode, in liquid of the same end, under the same test parameter is not subjected to displacement in theory, in the reality test, be not subjected to displacement substantially yet, so to same or, in case choose L according to the position of the stripping signal peak of each tested metal with a kind of test of sampleA left sideAnd LRightBetween localization after, generally do not need again boundary line L to localizationA left sideAnd LRightChange.When quantitative Analysis is carried out in utilization " standard addition method ", can make operating process simplify, save a large amount of Measuring Time like this.The present invention is by the analytical calculation subroutine, at the straight line L of settingA left sideWith straight line LRightBetween the measurement localization in, ordinate value to spectrogram compares, maximizing and minimum value, deduct the peak height that minimum value obtains tested metal stripping signal peak by maximal value then, the measuring accuracy of its peak height depends on the length (or sampled point what) in the sampling period of computing machine, just can improve measuring accuracy to peak height as long as the sampling period shortens (or sampled point increases).Can overcome like this when adopting registering instrument and oscillograph to measure, because ruler and grid precision are low and the big shortcoming of artificial measuring error.Because the present invention can be provided with the analytical calculation localization easily, can be targetedly the scope of analytical calculation be set according to the position of the stripping signal peak of tested metal, avoid peak height unnecessary in the spectrogram is carried out analytical calculation, particularly help rejecting the assorted peak interference that signal noise causes.In the derivative spectrogram, the stripping signal peak of tested metal contains positive and negative two peaks, and analytical calculation subroutine of the present invention is only analyzed comparison to the ordinate of the spectrogram in the analytical calculation localization that is provided with, and finds out maximum ordinate YMaxWith minimum ordinate YMin, maximum ordinate and minimum ordinate are subtracted each other the peak height of the stripping signal peak that obtains tested metal, so the present invention also can carry out analytical calculation to the derivative spectrogram that contains negative peak.Because measure, measurement baseline smooth advantage more highly sensitive than having with conventional spectrogram measurement with the derivative spectrogram, just can directly carry out analytical calculation with computing machine after adopting the present invention to the derivative spectrogram, use the derivative spectrogram to measure the superiority that is had and combine, improved the automaticity of the sensitivity and the measurement of polarograph with the automatic measurement of computing machine.After adopting the present invention, the resolution of instrument is reachedMake the peak height in the derivative spectrogram measure is realized fast, accurately, avoided the misjudgment of sum of errors computing machine that artificial measurement causes the position of tested metal stripping signal peak.When particularly several tested metal stripping signal peak heights are measured simultaneously in will be to sample, can several measurement localization be set, calculate the peak height of the stripping signal peak of various tested metals simultaneously, can save a large amount of Measuring Time spectrogram.In addition, because the present invention can be with straight line LA left sideWith straight line LRightBetween the measurement localization in the picture color negate, help the operator and observe.When particularly the stripping signal peak height of several metals in the same sample being measured simultaneously, several measurement localization can be set on same spectrogram, the color negate that each measures the picture in the localization helps the operator and distinguishes the border, the left and right sides that each measures localization.
Several technical solution of the present invention recited above is all carried out in this order, at first the spectrogram of test solution is sampled, and the raw data of spectrogram is deposited among the DATA; Second pair of spectrogram is provided with the measurement localization, calculates the peak height and the output of stripping signal peak; The 3rd, in test solution, add standard solution, sampling deposits the raw data of spectrogram among the DATA in; The 4th, in the measurement localization that has set, calculate the peak height of stripping signal peak in the new spectrogram and also export.This order is unimportant in fact, key of the present invention is the measurement localization can be set in spectrogram, and can adopt same measurement localization to resulting two spectrograms before and after adding standard solution, computing machine is calculated the peak height of stripping signal peak in measuring localization with the analytical calculation subroutine.All improvement projects of this spirit are all in protection scope of the present invention according to the present invention.For example: earlier the spectrogram of test solution is sampled, the raw data of spectrogram is deposited among the DATA; Add standard solution again in test solution, sampling also deposits in the raw data of spectrogram among the DATA; In two spectrograms before and after the selection adding standard solution any one is provided with the measurement localization, calculates the peak height of stripping signal peak; In the measurement localization that has set, calculate the peak height of stripping signal peak in another spectrogram; The peak height output that will add the stripping signal peak in two spectrograms that obtain before and after the standard solution at last.According to this technical solution in sequence, also in protection scope of the present invention.
Below in conjunction with accompanying drawing inventive embodiment is described in detail.
Embodiment 1: present embodiment is used for measuring the concentration of test solution Zn, can only be provided with one in the computer program and measure localization.
(1) in the electrolytic cell of polarograph, adds test solution, starting computer system starts working, when polarograph scans, computing machine every a sampling period to the working electrode current sample once, the working electrode electric current that obtains is that conventional spectrogram deposits among the DATA with the change curve of scanning voltage.The spectrogram that deposits among the DATA is to obtain with post-sampling at the in stable condition of electrode.The horizontal ordinate of spectrogram is a scanning voltage, and ordinate is the working electrode electric current.
As shown in Figure 4, computing machine follows these steps to operation:
(2) empty BUFFER, transfer the slot man subroutine, spectrogram among the DATA and LA left side, LRightArticle two, straight line carries out the picture composing, with spectrogram and LA left side, LRightArticle two, the reflection of the picture of straight line deposits among the BUFFER;
(3) transfer display subroutine, give lattice liquid crystal display screen LCD one by one with the value among the BUFFER and show spectrogram and LA left side, LRightArticle two, straight line.
At this moment, lattice liquid crystal display screen LCD goes up the spectrogram that shows as shown in Figure 6, and 1 is the stripping current peak of Zn in the spectrogram, straight line LA left sideAnd LRightHigh order end at lattice liquid crystal display screen LCD overlaps.
(4) read keyboard:
-whenever press onceKey is judged XA left sideWhether less than MAX.If XA left sideLess than MAX, X thenA left sideAdd 1 and deposit Addr inA left sideIn, then judge XRightWhether less than XA left side, if XRightLess than XA left side, X thenRight=XA left sideDeposit in the Addr right side, repeating step (2) is to (4); If XRightBe not less than XA left side, repeating step (2) is to (4).If XA left sideBe not less than MAX, repeating step (2) is to (4);
L in this processA left sideAdjusted L to the rightRightAlso follow LA left sideAdjusted to the right together.
-whenever press once
Key is judged X
A left sideWhether greater than MIN, if X
A left sideGreater than MIN, X then
A left sideSubtract 1 and deposit Addr in
A left sideIn, repeating step (2) is to (4); Otherwise, if X
A left sideBe not more than MIN, repeating step (2) is to (4);
In this process, L
A left sideAdjusted left, be mainly used in and work as L
A left sideTransfer to the right excessive after, use
Key is recalled to the origin-location with it again.
-as straight line L
A left sideWhen being transferred to the left margin of stripping
current peak 1 of the Zn in the spectrogram, press
Key, X
A left sideBe identified, the flag value becomes " right side " by " left side ";
This process will be measured boundary line, the left side L of localizationA left sideConfirm, later on no longer change.
-whenever press onceKey is judged XRightWhether less than MAX, if XRightLess than MAX, X thenRightAdd 1 and deposit Addr inRightIn, repeating step (2) is to (4); Otherwise, if XRightBe not less than MAX, then repeating step (2) is to (4);
In this process, LRightAdjusted to the right.
-whenever press once
Key is judged X
RightWhether greater than X
A left side, if X
RightGreater than X
A left side, X then
RightSubtract 1 and deposit Addr in
RightIn, repeating step (2) is to (4); Otherwise, if X
RightBe not more than X
A left side, then repeating step (2) is to (4);
In this process, LRightAdjusted left.
-as straight line LRightWhen being transferred to the right margin of strippingcurrent peak 1 of the Zn in the spectrogram, pressKey, XRightBe identified;
This process will be measured boundary line, the right L of localizationRightConfirm, later on no longer change.That lattice liquid crystal display screen LCD shows, as to mix up measurement localization spectrogram as shown in Figure 7.
(5) transfer the analytical calculation subroutine, the analytical calculation subroutine is with the X that is identifiedA left sideAnd XRightBetween the ordinate of spectrogram compare, find out XA left sideAnd XRightBetween the maximal value y of ordinate of spectrogramMax1With minimum value yMin1, and the peak height Δ y that calculates the stripping current peak of Zn1=yMax1-yMin1, and deposit in the corresponding storage portions;
(6) by printer with Δ y1Printout;
(7) in the test solution of the electrolytic cell of polarograph, add the standard solution of Zn by " standard addition method ", when polarograph scans, computing machine every a sampling period to the working electrode current sample once, the working electrode electric current that obtains is that conventional spectrogram deposits among the DATA with the change curve of scanning voltage.The spectrogram that deposits among the DATA is to obtain with post-sampling at the in stable condition of electrode.The horizontal ordinate of spectrogram is a scanning voltage, and ordinate is the working electrode electric current;
(8) the new spectrogram of selecting step (7) to obtain is transferred the analytical calculation subroutine, the straight line L that the analytical calculation subroutine is determined step (4)A left sideWith straight line LRightBetween localization in spectrogram carry out analytical calculation, i.e. the X that step (4) is determinedA left sideWith XRightBetween the ordinate of spectrogram compare, find out XA left sideAnd XRightBetween the maximal value y of ordinate of spectrogramMax2With minimum value yMin2, and the peak height Δ y that calculates the stripping current peak of Zn2=yMax2-yMin2
(9) by printer with Δ y2Printout;
(10) according to Δ y1With Δ yZAnd concentration, the volume of the titer of the Zn that adds carry out quantitative Analysis to the concentration of Zn.
Embodiment 2: present embodiment is mainly used in to be measured simultaneously to the Zn in the test solution, Cd, four kinds of metals of Pb, Cu, in the computer program four measuring localization can be set.
(1) in the electrolytic cell of polarograph, adds test solution, starting computer system starts working, when polarograph scans, computing machine every a sampling period to the first order derivative once sampling of working electrode electric current to the time, the working electrode electric current that obtains is that the raw data of derivative spectrogram deposits among the DATA to the first order derivative of time with the change curve of scanning voltage.The derivative spectrogram that deposits among the DATA is to obtain with post-sampling at the in stable condition of electrode.The horizontal ordinate of derivative spectrogram is a scanning voltage, and ordinate is the first order derivative of working electrode electric current to the time.Differentiate to the working electrode electric current is to finish by differentiator.
As shown in Figure 5, computing machine follows these steps to operation:
(2) the sequence number i of the analytical calculation localization that is provided with keyboard input desire, i=1,2,3,4,input sequence number 1 earlier here;
(3) judge whether i equals 1, if i equals 1 and connects step (4); If i is not equal to 1, judge XA left side (i-1)Whether equal XRight (i-1), if XA left side (i-1)Equal XRight (i-1), then repeating step (2) is to (3), if XA left side (i-1)Be not equal to XRight (i-1), then: connect step (4);
Selected analytical calculation localization sequence number i is 1 in the step (2), so directly enter step (4) after judgement i is 1 in step (3).Judge XA left side (i-1)Whether equal XRight (i-1)Being mainly used in the left side of seeing selected analytical calculation localization sequence number i has the analytical calculation localization that endlessly sets, if do not have then the value of gravity treatment sequence number i.
(4) empty BUFFER, transfer the slot man subroutine, the L of the derivative spectrogram among the DATA and all localizationLeft side i, LRight iArticle two, straight line carries out the picture composing, with the L of derivative spectrogram and all localizationLeft side i, LRight iArticle two, the image of the picture of straight line deposits among the BUFFER;
(5) transfer display subroutine, give the L that lattice liquid crystal display screen LCD shows derivative spectrogram and all localization one by one the value among the BUFFERLeft side i, LRight iArticle two, straight line;
At this moment, lattice liquid crystal display screen LCD goes up the derivative spectrogram that shows as shown in Figure 8, andpeak 1,2,3,4 is respectively the stripping current peak of Zn, Cd, Pb, Cu, straight line L in the derivative spectrogramLeft side iAnd LRight iHigh order end at lattice liquid crystal display screen LCD overlaps.
(6) read keyboard:
---whenever press onceKey is judged XLeft side iWhether less than MAX, if less than MAX, X thenA left side 1Add 1 and deposit Addr inA left side 1In, judge XA left side 1Whether greater than XRight 1, if XA left side 1Greater than XRight 1, X thenRight 1=XA left side 1Deposit Addr inRight 1In, if XA left side 1Be not more than XRight 1, then repeating step (4) is to (6); If XA left side 1Be not less than MAX, then repeating step (4) is to (6);
-whenever press onceKey is judged: whether equal 1, if i equals 1 (equaling I this moment), judge XA left side 1Whether greater than MIN, if XA left side 1Greater than MIN, X thenA left side 1Subtract 1 and deposit Addr inA left side 1In, repeating step (4) is to (6); If XA left side 1Be not more than MIN, then repeating step (4) is to (6); If i is not equal to 1, judge XA left side 1Whether greater than XRight (i-1), if XA left side 1Greater than XRight (i-1), X thenA left side 1Equal XA left side 1Subtract 1 and deposit Addr inA left side 1In, repeating step (4) is to (6).If XA left side 1Be not more than XRight (i-1), then repeating step (4) is to (6);
-as straight line LA left side 1When being transferred to the left side at stripping electric currentderivative peak 1 of Zn in the derivative spectrogram, pressKey, XA left side 1Be identified, the flag value becomes " right side " by " left side ";
-whenever press
Key is judged X
Right 1Whether less than MAX, if X
Right 1Less than MAX, X then
Right 1Add 1 and deposit Addr in
Right 1In, important step (4) is to (6), otherwise repeating step (4) is to (6);
-whenever press onceKey is judged XRight 1Whether greater than XA left side 1, if XRight 1Greater than XA left side 1, X thenRight 1Subtract 1 and deposit Addr inRight 1In, repeating step (4) is to (6), otherwise repeating step (4) is to (6);
-as straight line L
Right 1When being transferred to the right side at stripping electric current
derivative peak 1 of the Zn in the derivative spectrogram, press
Key, X
Right 1Be identified, the flag value becomes " left side " by " right side ";
Determine LA left side 1With LRight 1Particular location the time, as long as can make by LA left side 1With LRight 1The summit of the posivtive spike at the stripping electric currentderivative peak 1 of the tested Metal Zn in the measurement localization that is limited is that the peak valley of maximal value, negative peak is that minimum value gets final product.
(7) judge XRight 1Whether greater than XA left side 2, if XRight 1Greater than XA left side 2, the X oflocalization 2,3,4 thenA left side 2, XA left side 3, XA left side 4, XRight 2, XRight 3, XRight 4All equal XRight 1, and deposit corresponding Addr inA left side 2, AddrA left side 3, AddrA left side 4, AddrRight 2, AddrRight 3, AddrRight 4In, connect step (8); If XRight 1Be not more than XA left side 2, then:
(8) transfer the analytical calculation subroutine, the analytical calculation subroutine is from straight line LA left side 1With straight line LRight 1Betweenlocalization 1 in the derivative spectrogram in, to XA left side 1With XRight 1Between the ordinate of derivative spectrogram compare, find out maximum ordinate y1max1With minimum ordinate y1min1, and calculate the derivative peak height Δ y of the stripping electric current of Zn11=y1max1-y1min1, deposit in the corresponding storage portions;
(9) repeating step (2) is to (8), and the both sides at the stripping electric currentderivative peak 2,3,4 of Cd, Pb, Cu are provided withanalytical calculation localization 2,3,4 respectively, and the peak height of calculating the stripping electric current derivative peak of Cd, Pb, Cu is respectively Δ y21, Δ y31, Δ y41, by printer with Δ y11, Δ y21, Δ y31, Δ y41Printout;
At this moment, lattice liquid crystal display screen LCD goes up derivative spectrogram and the straight line L that showsA left side 1, LRight 1, LA left side 2, LRight 2, LA left side 3, LRight 3, LA left side 4, LRight 4As shown in Figure 9.
(10) in the test solution of the electrolytic cell of polarograph, add the standard solution of Zn, Cd, Pb, Cu by " standard addition method ".When polarograph scans, computing machine every a sampling period to the first order derivative once sampling of working electrode electric current to the time, the working electrode electric current that obtains is that the raw data of derivative spectrogram deposits among the DATA to the first order derivative of time with the change curve of scanning voltage.The derivative spectrogram that deposits among the DATA is to obtain with post-sampling at the in stable condition of electrode.The horizontal ordinate of derivative spectrogram is a scanning voltage, and ordinate is the first order derivative of working electrode electric current to the time.
(11) the new derivative spectrogram of selecting step (10) to obtain is transferred the analytical calculation subroutine, the straight line L that the analytical calculation subroutine is determined from step (6)A left side 1With LRight 1Between, LA left side 2With LRight 2Between, LA left side 3With LRight 3Between, LA left side 4With LRight 4Betweenlocalization 1,localization 2,localization 3,localization 4 in the derivative spectrogram in, find out the maximal value y of the ordinate of spectrogram respectively1max2, y2max2, y3max2And y4max2, minimum value y1min2, y2min2, y3min2And y4min2, and calculate the peak height Δ y at the stripping electric current derivative peak of Zn, Cd, Pb, Cu12=y1max2-y1min2, Δ y22=y2max2-y2min2, Δ y32=y3max2-y3min2, Δ y42=y4max2-y4min2, and deposit in the corresponding storage portions;
(12) by printer with Δ y12, Δ y22, Δ y32, Δ y42Output;
(13) according to Δ y11With Δ y12, Δ y21With Δ y22, Δ y31With Δ y32, Δ y41With Δ y42And concentration, the volume of the titer of the Zn, the Cd that add, Pb, Cu carry out quantitative Analysis to the concentration of Zn, Cd, Pb, Cu.