particular embodiments of the present disclosure will be described hereinbelow with reference to the accompanying drawings . in the following description , well - known functions or constructions are not described in detail to avoid obscuring the present disclosure in unnecessary detail . those skilled in the art will understand that the present disclosure may be adapted for use with either an endoscopic instrument or an open instrument . a generator according to the present disclosure can perform monopolar and bipolar electrosurgical procedures , including tissue ablation procedures . the generator may include a plurality of outputs for interfacing with various electrosurgical instruments ( e . g ., a monopolar active electrode , return electrode , bipolar electrosurgical forceps , footswitch , etc .). further , the generator includes electronic circuitry configured for generating radio frequency power specifically suited for various electrosurgical modes ( e . g ., cutting , blending , division , etc .) and procedures ( e . g ., monopolar , bipolar , vessel sealing ). fig1 is a schematic illustration of a monopolar electrosurgical system according to one embodiment of the present disclosure . the system includes a monopolar electrosurgical instrument 2 including one or more active electrodes 3 , which can be electrosurgical cutting probes , ablation electrode ( s ), etc . electrosurgical rf energy is supplied to the instrument 2 by a generator 20 via a supply line 4 , which is connected to an active terminal 30 ( fig2 ) of the generator 20 , allowing the instrument 2 to coagulate , ablate and / or otherwise treat tissue . the energy is returned to the generator 20 through a return electrode 6 via a return line 8 at a return terminal 32 ( fig2 ) of the generator 20 . the active terminal 30 and the return terminal 32 are connectors configured to interface with plugs ( not explicitly shown ) of the instrument 2 and the return electrode 6 , which are disposed at the ends of the supply line 4 and the return line 8 , respectively . the system may include a plurality of return electrodes 6 that are arranged to minimize the chances of tissue damage by maximizing the overall contact area with the patient p . in addition , the generator 20 and the return electrode 6 may be configured for monitoring so - called “ tissue - to - patient ” contact to insure that sufficient contact exists therebetween to further minimize chances of tissue damage . not explicitly shown in fig1 , the generator 20 includes suitable input controls ( e . g ., buttons , activators , switches , touch screen , etc .) for controlling the generator 20 , as well as one or more display screens for providing the surgeon with variety of output information ( e . g ., intensity settings , treatment complete indicators , etc .). the controls allow the surgeon to adjust power of the rf energy , waveform , and other parameters to achieve the desired waveform suitable for a particular task ( e . g ., tissue ablation ). further , the instrument 2 may include a plurality of input controls which may be redundant with certain input controls of the generator 20 . placing the input controls at the installment 2 allows for easier and faster modification of rf energy parameters during the surgical procedure without requiring interaction with the generator 20 . fig2 shows a schematic block diagram of the generator 20 having a controller 24 , a power supply 27 , an rf output stage 28 , and a sensor module 22 . the power supply 27 may provide dc power to the rf output stage 28 which then converts the dc power into rf energy and delivers the rf energy to the instrument 2 . the controller 24 includes a microprocessor 25 having a memory 26 which may be volatile type memory ( e . g ., ram ) and / or non - volatile type memory ( e . g ., flash media , disk media , etc .). the microprocessor 25 includes an output port connected to the power supply 27 and / or rf output stage 28 which allows the microprocessor 25 to control the output of the generator 20 according to either open and / or closed control loop schemes . a closed loop control scheme generally includes a feedback control loop wherein the sensor module 22 provides feedback to the controller 24 ( i . e ., information obtained from one or more sensing mechanisms for sensing various tissue parameters such as tissue impedance , tissue temperature , output current and / or voltage , etc .). the controller 24 then signals the power supply 27 and / or rf output stage 2 s which then adjusts the dc and / or rf power supply , respectively . the controller 24 also receives input signals from the input controls of the generator 20 and / or instrument 2 . the controller 24 utilizes the input signals to adjust the power output of the generator 20 and / or instructs the generator 20 to perform other control functions . the microprocessor 25 is capable of executing software instructions for processing data received by the sensor module 22 , and for outputting control signals to the generator 20 , accordingly . the software instructions , which are executable by the controller 24 , are stored in the memory 26 of the controller 24 . the controller 24 may include analog and / or logic circuitry for processing the sensed values and determining the control signals that are sent to the generator 20 , rather than , or in combination with , the microprocessor 25 . the sensor module 22 may include a plurality of sensors ( not explicitly shown ) strategically located for sensing various properties or conditions , e . g ., tissue impedance , voltage at the tissue site , current at the tissue site , etc . the sensors are provided with leads ( or wireless ) for transmitting information to the controller 24 . the sensor module 22 may include control circuitry which receives information from multiple sensors , and provides the information and the source of the information ( e . g . the particular sensor providing the information ) to the controller 24 . more particularly , the sensor module 22 may include a real - time voltage sensing system ( not explicitly shown ) and a real - time current sensing system ( not explicitly shown ) for sensing real - time values related to applied voltage and current at the surgical site . additionally , an rms voltage sensing system ( not explicitly shown ) and an rms current sensing system ( not explicitly shown ) may be included for sensing and deriving rms values for applied voltage and current at the surgical site . the measured or sensed values are further processed , either by circuitry and / or a processor ( not explicitly shown ) in the sensor module 22 and / or by the controller 24 , to determine changes in sensed values and tissue impedance . tissue impedance and changes therein may be determined by measuring the voltage and / or current across the tissue and then calculating changes thereof over time . the measured and calculated values may be then compared with known or desired voltage and current values associated with various tissue types , procedures , instruments , etc . this may be used to drive electrosurgical output to achieve desired impedance and / or change in impedance values . as the surgical procedure proceeds , tissue impedance fluctuates in response to adjustments in generator output as well as removal and restoration of liquids ( e . g ., steam bubbles ) from the tissue at the surgical site . the controller 24 monitors the tissue impedance and changes in tissue impedance and regulates the output of the generator 20 in response thereto to achieve the desired and optimal electrosurgical effect . in general , the system according to the present disclosure regulates the application of energy to achieve the desired tissue treatment based on properties ( e . g ., electrical and / or physical ) of tissue . in embodiments , the application of energy to tissue is regulated based on the electrical conductivity of that tissue as a function of the tissue temperature . tissue conductivity as a function of tissue temperature may be represented as a conductivity vs . temperature curve . tissue conductance is inversely related to tissue impedance if the material tissue properties ( e . g ., length of tissue , area of tissue , etc .) remain constant . specifically , tissue conductance and tissue impedance are related by the following equation : fig3 illustrates the relationship between a typical conductivity vs . temperature curve and a corresponding ( i . e ., over the same temperature range ) impedance vs . temperature curve for tissue undergoing ablation ( e . g . utilizing electrosurgical instrument 2 ). the illustrated curves demonstrate that , for tissue undergoing ablation , the lowest impedance value on the impedance vs . temperature curve corresponds to the highest conductance value on the conductance vs . temperature curve . the conductance vs . temperature curve for tissue undergoing ablation may be dynamically changing due a variety of factors such as , for example , the changes in energy applied to tissue . the present disclosure provides for a control algorithm that actively tracks this curve to allow for the application of energy to maintain an optimal positioning on the curve ( e . g ., peak tissue conductance ) despite the dynamic nature of the curve . fig4 shows a flow chart illustrating a control algorithm 200 for regulating the application of energy to tissue , according to one embodiment of the present disclosure . in embodiments , algorithm 200 may be a software application residing in the memory 26 and executable by the controller 24 ( e . g ., via the microprocessor 25 ). the control algorithm defines a state variable ( sv ) to express a real - time value of one or more physical properties of the tissue undergoing ablation ( e . g ., tissue impedance , voltage across tissue , current through tissue ) and / or one or more electrical properties related to the applied energy ( e . g ., amplitude and / or phase of power applied to tissue , etc .). in embodiments , the sv may be defined in any one or more so - called “ states ”. for example , the sv may represent the real - time state of tissue resistance as being either “ decreasing ” or “ rising ”. in the embodiment illustrated in fig4 a , the algorithm 200 initially defines the sv as decreasing and increases the application of energy to tissue ( e . g ., the controller 24 increases the output of the generator 20 ). subsequently , the control algorithm 200 enters a switch loop 210 wherein the algorithm 200 continuously monitors the sv to be in any one of two states ( e . g ., decreasing or rising ). based on the detected state of the sv , the algorithm 200 switches between two control loops to control the application of energy to tissue . in the illustrated embodiment , the algorithm 200 enters one of two control loops 220 and 230 to correspond to decreasing and rising states of the sv , respectively , as detected by the algorithm 200 via the switch loop 210 . more specifically , the algorithm 200 enters a decreasing case control loop 220 if the switch loop 210 detects the state of the sv as decreasing . upon entering control loop 220 , the algorithm 200 continuously detects ( e . g ., via the sensor module 22 ) the slope of the control curve ( e . g ., the impedance vs . temperature curve of fig3 ). if the detected slope of the control curve is negative , the algorithm 200 increases the application of energy to tissue ( e . g ., the controller 24 increases the output of the generator 20 ) and subsequently defines the sv as decreasing . in this manner , the decreasing case control loop 220 is repeated as long as the sv is defined as decreasing and the slope of the control curve is negative . conversely , if the detected slope of the control curve is not negative ( e . g ., slope = 0 or slope & gt ; 0 ), the algorithm 200 decreases the application of energy to tissue and subsequently defines the sv as rising . in this manner , the switch loop 210 detects the sv as rising and , thus , triggers the algorithm 200 to enter a rising case control loop 230 . upon entering the rising case control loop 230 , the algorithm 200 continuously detects the slope of the control curve . the rising case control loop 230 is configured such that the response to the detected slope of the control curve is directly opposite to that of the decreasing case control loop 220 . more specifically , if the detected slope of the control curve is negative during the rising case control loop 230 , the algorithm 200 continues to decrease the application of energy to tissue ( e . g ., the controller 24 further decreases the output of the generator 20 ) and subsequently defines the sv as decreasing . continuing to decrease the application of energy to tissue in this scenario allows the algorithm 200 to effectively track the optimal point on the control curve ( e . g ., lowest possible tissue impedance as a function of temperature ). conversely , if the detected slope of the control curve is not negative ( e . g ., slope = 0 or slope & gt ; 0 ), the algorithm 200 increases the application of energy to tissue and subsequently defines the sv as decreasing . increasing the application of energy to tissue in this scenario allows the algorithm 200 to effectively deliver the maximum energy to tissue . in either scenario ( i . e ., slope & lt ; 0 ; and slope & gt ; 0 ) of the rising case control loop 230 , the sv is reset to decreasing such that the algorithm 200 enters or re - enters the decreasing case control loop 220 . in this way , the algorithm 200 aggressively applies energy to tissue to achieve maximal tissue heating while tracking the optimal point on the control curve ( e . g ., the lowest possible tissue impedance ). in embodiments wherein a tissue impedance vs . temperature curve ( e . g ., fig3 ) is utilized as the control curve , the decreasing case control loop 220 recognizes that a slope detected as negative corresponds to the tissue impedance as decreasing and , thus , the algorithm 200 increases the application of energy to tissue accordingly and re - enters the decreasing case control loop 220 . conversely , the decreasing case control loop 220 recognizes that a slope detected as not negative corresponds to the tissue impedance as rising and , thus , the algorithm 200 decreases the application of energy to tissue accordingly and enters the rising case control loop 230 . the rising case control loop 230 recognizes that a slope detected as negative corresponds to the tissue impedance as decreasing and , thus , the algorithm 200 further decreases the application of energy to tissue to ensure the algorithm 200 finds the lowest possible tissue impedance . conversely , the rising case control loop 230 recognizes that a slope detected as not negative corresponds to the tissue impedance as not changing or continuing to rise and , thus , the algorithm 200 increases the application of energy to tissue to ensure that the maximum energy is delivered to tissue . in embodiments , in the case of the sv being defined as rising , if the slope of the control curve is negative , energy applied to tissue is decreased and the sv is reset to rising rather than decreasing , as is the case in the embodiment illustrated in fig4 a . fig4 b shows a flow chart illustrating an alternative algorithm 300 according to embodiments of the present disclosure . the algorithm 300 operates similarly to the algorithm 200 illustrated in fig4 a and is only described to the extent necessary to illustrate the differences between the embodiments . the algorithm 300 utilizes the identical initialization as that of the algorithm 200 illustrated in fig4 a . further , the algorithm 300 includes a switch loop 310 configured to switch between two control loops , namely , a decreasing case control loop 320 and a rising case control loop 330 corresponding to the sv being defined as decreasing and rising , respectively . as illustrated in fig4 a and 4b , the difference between the algorithms 200 and 300 lies in the respective rising case control loops 230 and 330 . in the case of the sv being defined as rising in the switch loop 310 of the algorithm 300 , if the slope of the control curve is negative , the algorithm 300 decreases the energy applied to tissue and maintains the sv as rising rather than reset to decreasing , as is the case in the algorithm 200 embodied in fig4 a . in this manner , the rising case control loop 330 will continue to loop until the slope of the control curve is not negative ( e . g ., slope = 0 or slope & gt ; 0 ). in embodiments wherein a tissue impedance vs . temperature curve ( e . g ., fig3 ) is utilized as the control curve , if the tissue impedance is decreasing ( e . g ., slope of the control curve & lt ; 0 ), the rising case control loop 330 will continue until the algorithm 300 detects that the tissue impedance is not negative ( i . e . slope of the control curve & gt ; 0 ). upon detection that the tissue impedance is not negative , the algorithm 300 increases the application of energy to tissue and resets the sv to decreasing . in embodiments , a high priority control loop may be layered over the algorithms 200 and 300 to run concurrently therewith . during the ablation of tissue , conditions may exist that lead to continued energy increases . such energy increases may cause tissue properties ( e . g ., impedance ) to rise and / or fall outside of the peak conductance range or into a so - called “ runaway state .” the high priority control loop monitors the control curve for the runaway state and adjusts the application of energy ( e . g ., the controller 24 decreases the output of the generator 20 ) accordingly . more specifically , the high priority loop interrupts the algorithm ( e . g ., algorithm 200 and 300 ) to check for the runaway state , and decreases the application of energy in the event that such a state is detected . in embodiments wherein an impedance vs . temperature curve ( fig3 ) is utilized as the control curve , the high priority loop continually interrogates whether tissue impedance is rising more than a pre - determined threshold value . the pre - determined threshold value may be pre - determined by the surgeon via the generator 20 input controls and / or reside in the memory 26 for execution by the microprocessor 25 . with reference to fig5 , another embodiment of the present disclosure is shown . in the illustrated embodiment , energy application is regulated by the controller 24 pursuant to a closed loop control system 400 stored within the memory 26 . the system 400 continuously monitors tissue impedance as an indicator of tissue conductance and automatically adjusts output to create the lowest possible tissue impedance and / or the highest possible tissue conductance . upon the initialization of a given procedure or at some predetermined time delay thereafter , the system 400 processes and stores a baseline impedance z base determined by the sensor 24 . the system 400 determines deviations in average tissue impedance from the baseline impedance z base as a function of time and adjusts generator 20 output in response to such deviations . this allows peak tissue conductance to be maintained independent of tissue changes , variations in generator 20 output , and device accessory selection . further , the system 400 continually interrogates whether detected impedance has risen above a threshold value , and reduces generator output in response to any such threshold breaches . finally , the system 400 may commence a treatment termination sequence upon detection of specific tissue conditions which indicate a completed treatment . treatment completion may be indicated by an equilibrium between the level of energy applied to the tissue ( e . g ., via the forceps 10 ) and the level of energy dissipated from the tissue . based on this equilibrium , the system 400 determines that the detected tissue impedance has achieved its lowest sustainable level and has remained at that level without change for a substantial amount of time . accordingly , the closed loop control system 400 of the present disclosure provides continual control of the power supply 27 and / or the output stage 28 ( fig2 ) in response to so - called “ sensed ” physical or electrical properties at the surgical site and / or proximate the output stage 2 s . in embodiments of the present disclosure and in particular reference to fig5 , the controller 24 may be provided with and / or in operative communication with an inner loop control module 402 and an outer loop control module 404 through which various priority tasks ( e . g ., loops ) may be executed . the inner and outer loop control modules 402 , 404 may be software modules executable by the microprocessor 25 of the controller 24 ( fig2 ) and both may receive signals generated by the sensor module 22 . the inner and outer loop control modules 402 , 404 continually receive real - time sensed values , such as current i and voltage v , from the sensor module 22 as well as a time t . the modules 402 , 404 perform calculations on the sensed values to derive additional real - time values , such as power p and impedance z . for example , the value for change in impedance ( dz / dt ) is obtained in accordance with : where z is the impedance in accordance with values measured at time t ; and z_old is the stored impedance in accordance with values measured at a previous time interval at time t_old . the inner and outer loop control modules 402 , 404 process the real - time sensed values and output an rf command to the generator 20 which controls the output power needed for achieving a desired tissue effect . fig6 a shows a normal priority task 410 controlled by the inner loop control module 402 for automatic power adjustment to achieve peak conductance . the normal priority task 410 adjusts the power output by the generator 20 to continuously achieve peak tissue conductance ( i . e ., lowest tissue impedance ) irrespective of changes to tissue ( e . g ., thickness , bubble formation , temperature , etc . ), variations in generator output ( e . g ., manual adjustment of generator output power ), and device and / or accessory selection ( e . g ., monopolar device , bipolar forceps , etc .). the inner loop control module 402 utilizes the normal priority task 410 to continuously monitor average tissue impedance over a period of time ( e . g ., a dz ave / dt waveform ) as an indicator of tissue conductance since tissue conductance is inversely proportional to tissue impedance . the module 402 then automatically adjusts the output power of the generator 20 to provide the lowest possible tissue impedance and , thus , the highest possible tissue conductance . the normal priority task 410 is characterized by a dual - control loop that continuously interrogates ( e . g ., via the sensor module 22 ) the slope of the average impedance waveform over a particular window of time and adjusts the output power of the generator 20 in response to the direction of the slope ( e . g ., m = 0 , m & lt ; 0 , or m & gt ; 0 ) detected over the duration of that particular window of time . during operation of the normal priority task 410 , an initial increase of the output power of the generator 20 is made over the duration of a first sample window of time ( e . g ., a user - defined time delay ). during the first sample window of time , the sensor module 22 determines a first slope of the average impedance waveform in response to the initial increase in output power of the generator 20 . during a second sample window of time , a second adjustment is made to the power output by the generator 20 and a second slope of the average impedance waveform is determined . if the second slope of the average impedance waveform is substantially the same as the first slope of the average impedance waveform , a third adjustment to the output power of the generator 20 is made . in this scenario , the second adjustment made to the power output by the generator 20 is a “ reverse ” adjustment to that of the first adjustment made to the power output by the generator 20 . during a first sampled time delay “ t 1 ,” the tissue ablation procedure is activated ( e . g ., by pressing of a foot pedal or handswitch ) and a host processor ( e . g ., microprocessor 5 ) activates the normal priority task 410 to monitor changes in average impedance as a function of time ( e . g ., dz / dt ). more specifically , an initial increase δp i in output power of the generator 20 is made during time delay t 1 while the sensor module 22 continuously monitors a first sampled average tissue impedance z 1 ave to detect changes therein in response to the initial increase δp i in output power of the generator 20 as a function of time delay t 1 . the change in z 1 ave may be embodied as a waveform interpreted by the inner loop control module 402 which represents the first average impedance z 1 ave as a function of time delay t 1 ( e . g ., dz 1 ave / dt 1 ). in this manner , the normal priority task 410 may monitor the slope of the impedance waveform as an indication of changes in average tissue impedance over a sample window of time . in embodiments , time delay t 1 may be up to four ( 4 ) seconds during which the initial increase δp i in output power of the generator 20 is made at a rate of twenty ( 20 ) watts per second . in this configuration , the output power of the generator 20 may be gradually increased to eighty watts ( 80 ) over the duration of the time delay t 1 . if , over the duration of the first time delay t 1 , the first average impedance z 1 ave decreases ( e . g ., the slope of dz 1 ave / dt 1 & lt ; 0 ) in response to the initial increase δp i in power output , the controller 24 makes a first adjustment δp 1 to increase the power output over the duration of a second time delay “ t 2 .” in certain embodiments , the second time delay t 2 may be up to four ( 4 ) seconds to allow the sensor module 22 to record a sufficient sample of data related to changes in tissue impedance . conversely , if over the duration of the first time delay t 1 , the first average tissue impedance z 1 ave either increases or is unchanged ( e . g ., the slope of dz 1 ave / dt 1 & gt ; 0 ) in response to the initial increase δp i in power output , the controller 24 makes a second adjustment δp 2 to decrease the power output over the duration of the second time delay t 2 . as the controller 24 makes the second adjustment δp 2 to decrease the power output over the duration of the second time delay t 2 , the sensor module 22 continuously monitors for changes in a second sampled average tissue impedance z 2 ave . in embodiments , the second adjustment δp 2 may be as much as a five ( 5 ) watt decrease over the duration of the second time delay t 2 . if , over the duration of the second time delay t 2 , the second average tissue impedance z 2 ave either increases or is unchanged ( e . g ., the slope of dz 1 ave / dt 1 & gt ; 0 ) in response to the second adjustment δp 2 to decrease the power output , the controller 24 makes a third adjustment δp 3 to increase the power output by the generator 20 over the duration of a third time delay “ t 3 .” the normal priority task 410 is thereafter repeated . if , over the duration of the second time delay t 2 , the second average tissue impedance z 2 ave decreases ( e . g ., the slope of dz 1 ave / dt 1 & lt ; 0 ) in response to the second adjustment δp 2 to decrease the power output , the controller 24 makes a fourth adjustment δp 4 to decrease the power output over the duration of the third time delay t 3 , and the normal priority task 410 is repeated . in this way , the normal priority task 410 performs a reverse adjustment of power output by the generator 20 over the duration of the third time delay t 3 relative to the adjustment made over the duration of the second time delay t 2 in response to the same direction of the change ( e . g ., same slope direction ) in the average tissue impedance as detected by the controller 24 during the first time delay t 1 . that is , over the duration of the first time delay t 1 , if the first average tissue impedance z 1 ave either increases or is unchanged in response to the initial increase δp i in power output the controller 24 makes the second adjustment δp 2 to decrease the power output over the duration of the second time delay t 2 . conversely , if the second average tissue impedance z 2 ave either increases or is unchanged in response to the second adjustment δp 2 to decrease the power output the controller 24 makes the third adjustment δp 3 to increase the power output over the duration of the third time delay t 3 . it is in this manner that the normal priority task 410 operates to control the power output by the generator 20 to achieve the highest possible tissue conductance and , thus , the lowest possible tissue impedance throughout the duration of a given procedure . in embodiments , the duration of the time delays t 1 , t 2 , t 3 , the amount of the power adjustments δp i , δp 1 , δp 2 , δp 3 , δp 4 , the rate at which the power adjustments δp i , δp 1 , δp 2 , δp 3 , δp 4 are made , and the maximum level to which the power output may be increased by δp i may be pre - determined by the user via the user inputs of the generator 20 and / or a software - based user interface , as will be discussed in further detail below . the outer loop control module 404 is layered over the inner loop control module 402 and runs concurrently therewith to provide additional control of the generator 20 to reach a desired output value or effect . the outer loop control module 404 utilizes a high priority task 420 to prevent tissue properties ( e . g ., impedance ) from rising and / or falling outside the peak conductance range or a so - called “ run - away state .” upon activation , the sensor module 22 records a baseline impedance value z base and transmits this value to the controller 24 for storing in the memory 26 . the high priority task 420 processes the base impedance z base stored in the memory 26 and continually monitors deviations in average tissue impedance z ave from the base impedance z base as a function of time ( e . g ., a dz / dt waveform ). the high priority task 420 compares the deviations to a threshold impedance value z max , and automatically adjusts the output power of the generator 20 to counteract increases in the average impedance z ave that breach the threshold value z max . that is , if a rise in average tissue impedance z ave over a sample window of time exceeds the threshold value z max , the output power of the generator 20 is decreased by the controller 24 . in embodiments , the threshold impedance value z max may be determined by detecting a change in average impedance z ave : over some period of time ( e . g ., an average change of 20 ohms over seven seconds ), and comparing this change in average impedance z ave to the base impedance value z base stored in memory 26 . fig6 b shows the high priority task 420 controlled by the outer loop control module 404 for automatic power adjustment based on detected rises in average tissue impedance z ave that exceed the threshold impedance value z max . the high priority task 420 is layered over the normal priority task 410 and runs concurrently therewith . specifically , the outer loop control module 404 utilizes the high priority task 420 to continuously monitor average tissue impedance as a fund ion of time ( e . g ., a dz / dt waveform ). the average tissue impedance may be an average peak impedance z peak sampled over a substantially short period of time , e . g ., 0 . 05 seconds . if the rise in peak impedance z peak exceeds or is equal to a predetermined impedance value δp ( e . g ., 20 ohms nominal ) above the base impedance z base ; the controller 24 makes a fifth adjustment δp 5 to decrease the power output . in embodiments , the output level of the generator 20 at which the base impedance z base will be determined , the impedance value δp , and the fifth adjustment δp 5 may be pre - determined by the user via the user inputs of the generator 20 and / or a software - based user interface , as will be discussed in further detail below . in embodiments , the outer loop control module 404 may utilize a low priority task 430 to determine when to terminate the power output by the generator 20 to end a given tissue treatment . the low priority task 430 is based on a determination that an equilibrium exists between the energy applied by the generator 20 ( e . g ., via the forceps 10 ) and the energy that is dissipated from the tissue site . the low priority task 430 may determine whether average tissue impedance has achieved its lowest sustainable level and remains at that level without substantial change for a substantial period of time . discussed below with reference to fig6 c , the low priority task 430 is layered over the normal priority task 410 and runs concurrently therewith . the outer loop control module 404 utilizes the low priority task 430 to continuously monitor average tissue impedance as a function of time ( e . g ., over the duration of a given procedure ). specifically , the controller 24 continually receives a current average tissue impedance value z aven from the sensor module 22 . upon processing the current average tissue impedance value z aven , the low priority task 430 compares the current tissue impedance value z aven to a historical tissue impedance value z aven - 1 stored in the memory 26 from the previous iteration through the low priority task 430 . thereafter , the current average tissue impedance value z aven is stored in the memory 26 as the historical tissue impedance value z aven - 1 . in operation , after the expiration of a fourth time delay “ t 4 ” following the activation of the generator 20 , the low priority task 430 monitors average tissue impedance for pertain criteria that may indicate that a given treatment is complete and , thus , the power output may be terminated , in certain embodiments of the present disclosure , this criteria may include determining that the current tissue impedance value z aven is substantially equivalent to the historical tissue impedance value z aven - 1 stored in the memory 26 over the duration of a fifth time delay “ t 5 ” after the generator 20 is activated . in response , the generator 20 may continue to output power over the duration of a sixth time delay “ t 6 .” following the time delay t 6 , the generator 20 is turned “ off ” and the procedure is terminated . in certain embodiments of the low priority task 430 , the power output may be terminated immediately by the controller 24 upon the expiration of the fifth time delay t 5 . alternatively , output may be adjusted by the controller 24 to a predetermined level by the user ( e . g ., via the user inputs of the generator 20 and / or a software - based user interface ). in embodiments , the duration of the time delays t 4 , t 5 , t 6 may be pre - determined by the user via the user inputs of the generator 20 and / or a software - based user interface , as will be discussed in further detail below . according to embodiments of the present disclosure , the interrogation of impedance may be achieved via single pole recursive filtering . fig7 a illustrates a software system 500 embedded in the memory 26 and executed by the microprocessor 25 which utilizes a normal priority task 510 , a high priority task 520 , and low priority task 530 to control generator 20 output based on changes in average tissue impedance as a function of time . each task 510 , 520 , 530 processes averaged impedance data received from a plurality of single pole recursive impedance filters that continuously filter and / or average tissue impedance data sensed by the sensor module 22 . in the illustrated embodiment , eight impedance filters zf 1 - zf 8 are used in conjunction with the software system 500 . each of the impedance filters zf 1 - zf 8 may be formatted for use with the following data averaging formula ( i ): a and b are dependent on a time constant and may be specified by the user , via the input controls of the generator 20 , for each particular impedance filter zfx . when calculating a and b , the following formulas may be used : the sample rate may also be specified by the user for calculating the number of samples . in formula ( 1 ), zin is the new impedance value ( e . g ., z rms ) just calculated , and zfx n - 1 is the filtered impedance , for the filter number specified by x , from the previous iteration through the loop , and zfx n is the new filtered impedance value for the filter number specified by x . referring now to fig7 b , the normal priority task 510 is made up of three states , namely , an initializing state 550 , a run state 560 , and a peak state 570 . during the initializing state 550 , the ablation procedure is activated ( e . g ., by pressing of a foot pedal or handswitch ) and a host processor ( e . g ., microprocessor 5 ) activates the software system 500 for monitoring the plurality of impedance filters zf 1 - zf 8 . upon activation of the state 550 , a first timer “ t 1 ” is initialized to run concurrently with the initializing state 550 . the first timer t 1 may be set by the user ( e . g . via the user inputs of the generator 20 and / or a software - based user interface ) as the amount of time the software system 500 waits during the state 550 , after initial activation , before interrogating the plurality of impedance fillers , as will be discussed in further detail below . once turned on , the generator 20 operates at a baseline level of power p base . it is at this baseline level of power phase that the sensor module 22 records a baseline impedance z base and transmits this value to the controller 24 for storing in the memory 26 . once the baseline impedance z base has been recorded , the power output by the generator 20 is ramped by the controller 24 to an initial level p init . the user may be able to specify ( e . g ., via the user inputs of the generator 20 and / or a software - based user interface ) the rate at which the power output by the generator 20 is ramped as well as a maximum level of power p max to which the generator 20 may be ramped . the power output by the generator 20 is ramped by the controller 24 until either the first timer t 1 expires or p max is reached . upon expiration of the first timer t 1 , the normal priority task 510 stores the baseline impedance z base into the memory 26 as impedance value zf 1 n - 1 and enters the run state 560 . once the run state 560 is initialized , the normal priority task 510 starts a second timer “ t 2 ” which runs concurrently with the run state 560 . the second timer t 2 may be predetermined by the user ( e . g ., via the user inputs of the generator 20 and / or a software - based user interface ) as the amount of lime the normal priority task 510 operates in the run state 560 prior to interrogating the plurality of impedance filters for average impedance data . if the run state 560 is entered from the initializing state 550 , the software system 500 immediately calculates the difference between the current filtered impedance zf 2 n and the previous filtered impedance zf 1 n - 1 and compares this difference to a first impedance reference zdelta 1 . the first impedance reference , zdelta 1 , is the amount of change from the previous filtered impedance zf 1 n - 1 to the current filtered impedance zf 2 n which is a threshold for triggering an increase or decrease in power output by the generator 20 . the impedance reference zdelta 1 may be predetermined ( e . g ., via the user inputs of the generator 20 and / or a software - based user interface ) by the user . if the difference between the current filtered impedance zf 2 n and the previous filtered impedance zf 1 n - 1 is less than or equal to zdelta 1 , the controller 24 makes a first adjustment p 1 to increase the power output by the generator 20 and the normal priority task 510 reenters the run state 560 . upon reentering the run state 560 , the software system 500 restarts the second timer t 2 and waits for the second timer to expire before interrogating impedance filters zf 1 and zf 2 for filtered impedance data . if the difference between the current filtered impedance zf 2 n and the previous filtered impedance zf 1 n - 1 is greater than zdelta 1 , the controller 24 makes a second adjustment p 2 to decrease the power output by the generator 20 and the normal priority task 510 enters the peak state 570 . upon entering the peak state 570 , the software system 500 starts a third timer “ t 3 ”, as will be discussed in further detail below . in embodiments , the duration of the third timer t 3 , the amount of the first and second power adjustments p 1 , p 2 may be pre - determined by the user via the user inputs of the generator 20 and / or a software - based user interface , as will be discussed in further detail below . upon exiting the run state 560 , the software system 500 stores the current filtered impedance value zf 1 n into the memory 26 as the previous filtered impedance zf 1 n - 1 and stores the filtered impedance zf 3 n into the memory 26 as the previous filtered impedance zf 3 n - 1 . that is , prior to the exiting of the run state 560 , the current filtered impedances zf 1 n and zf 3 n determined during the present iteration through the run state 560 become the respective previous filtered impedances zf 1 n - 1 and zf 3 n - 1 once the run state 560 is reentered ( i . e . once the present iteration through the run state 560 becomes the previous iteration through the run state ). the third timer t 3 is initialized by the software system 500 to coincide with the initialization of the peak state 570 and to run concurrently therewith . once the third timer t 3 expires , the software system 500 calculates the difference between the current filtered impedance zf 4 n and the previous filtered impedance zf 3 n - 1 and compares this difference to a second impedance reference zdelta 2 . the second impedance reference . zdelta 2 , is the amount of change from the previous filtered impedance zf 3 n - 1 to the current filtered impedance zf 4 n which is a threshold for triggering an increase or decrease in power output . if the difference between the current filtered impedance zf 4 n and the previous filtered impedance zf 3 n - 1 is less than the second impedance reference zdelta 2 , the controller 24 makes a third adjustment p 3 to decrease the power output and the normal priority task 510 reenters the run state 560 and the software system 500 restarts the second timer t 2 . if the difference between the current filtered impedance zf 4 n and the previous littered impedance zf 3 n - 1 is greater than or equal to the second impedance reference zdelta 2 , the controller 24 makes a fourth adjustment p 4 to increase the power output and the normal priority task 510 reenters the run state 560 and the software system 500 restarts the second timer t 2 . in embodiments , the second impedance reference zdelta 2 and the third and fourth power adjustments p 3 , p 4 may be pre - determined by the user via the user inputs of the generator 20 and / or a software - based user interface , as will be discussed in further detail below . upon exiting the peak state 570 , the software system 500 stores the current filtered impedance zf 1 n into the memory 26 as the previous filtered impedance zf 1 n - 1 and stores the current filtered impedance zf 3 n into the memory 26 as the previous filtered impedance zf 3 n - 1 . in embodiments , the duration of the first , second , and third timers t 1 , t 2 , t 3 and the amount of the first and second power adjustments p 1 , p 2 may be pre - determined by the user via the user inputs of the generator 20 and / or a software - based user interface , as will be discussed in further detail below . referring now to fig7 c , the high priority task 520 is layered over the normal priority task 510 and runs concurrently therewith to provide additional control of the generator 20 to reach a desired output value or effect . a fourth timer “ t 4 ” is initialized by the software system 500 to coincide with the initialization of the high priority task 520 and to run concurrently therewith . once the fourth timer t 4 expires , the software system 500 calculates the difference between the current filtered impedance zf 6 n and the current filtered impedance zf 5 n and compares this difference to a third impedance reference zdelta 3 . the third impedance reference . zdelta 3 , is the amount of change from the current filtered impedance zf 5 n to the current filtered impedance zf 6 n which is a threshold for triggering a decrease in power output . in this manner , the third impedance reference zdelta 3 operates in a threshold capacity to prevent dangerous conditions such as a run - away state that may arise and lead to continued power increases and impedance rises . if the difference between the current filtered impedance zf 6 n and the current filtered impedance zf 5 n is greater than or equal to the third impedance reference zdelta 3 , the controller 24 makes a fifth adjustment p 5 to decrease the power output and the software system 500 reenters the high priority task 520 and restarts the fourth timer t 4 . if the difference between the current filtered impedance zf 6 n and the current filtered impedance zf 5 n is less than the third impedance reference zdelta 3 , the software system 500 enters the normal priority task 510 . hence , the normal priority task 510 is only entered from the high priority task 520 if the third reference impedance zdelta 3 threshold is not equaled or exceeded . in embodiments , the duration of the fourth timer t 4 , the third impedance reference zdelta 3 , and the amount of the fifth power adjustment p 5 may be pre - determined by the user via the user inputs of the generator 20 and / or a software - based user interface , as will be discussed in further detail below . the low priority task 530 is layered over the normal priority task 510 and runs concurrently with both the high priority task 520 and the normal priority task 510 to provide additional control of the generator 20 to terminate the procedure once a desired output value or effect has been achieved . a fifth timer “ t 5 ” is initialized to coincide with the initialization of the vessel sealing procedure ( e . g ., by pressing a foot pedal or handswitch ), and to run concurrently therewith . once the fifth timer t 5 expires , the software system 500 continuously interrogates whether particular impedance conditions indicative of a desired tissue effect exist for the duration of a sixth timer “ t 6 ” and , if such criteria is met , accordingly initiates a process to terminate the power output . specifically , the software system 500 calculates the difference between the current filtered impedance zf 8 n and the current filtered impedance zf 7 n and compares this difference to a fourth impedance reference zdelta 4 . the fourth impedance reference zdelta 4 is the amount of change from the current filtered impedance zf 7 n to the current filtered impedance zf 8 n that initiates a seventh timer “ t 7 ,” the expiration of which triggers the generator 20 to shut off and the procedure to be terminated . if the absolute value of the difference between the current filtered impedance zf 8 n and the current filtered impedance zf 7 n is less than or equal to the impedance reference zdelta 3 for the duration of the sixth timer t 6 , the seventh timer t 7 is initialized . in addition , a termination state 535 of the low priority task 530 is triggered to provide for a plurality of options which allow the user to predetermine ( e . g ., via the user inputs of the generator 20 ) how the generator 20 will behave once the condition discussed above is satisfied for the duration of the sixth timer t 6 . options available to the user with respect to the termination state 535 may include allowing the generator 20 to operate at it &# 39 ; s current output level for the duration of the seventh timer t 7 , specifying an output level at which generator 20 is to operate for the duration of the seventh timer t 7 , and continuing with the low priority task 530 until the seventh timer t 7 expires . if the absolute value of the difference between the current filtered impedance zf 8 n and the current filtered impedance zf 7 n is not less than or equal to the impedance reference zdelta 3 for the duration of the sixth timer t 6 , the software system 500 continues to execute the low priority task 530 concurrently with the high priority and normal priority tasks 520 and 530 . in embodiments , the duration of the fifth , sixth , and seventh timers t 5 , t 6 , t 7 and the fourth impedance reference zdelta 4 may be pre - determined by the user via the user inputs of the generator 20 and / or a software - based user interface , as will be discussed in further detail below . in embodiments of the present disclosure , an eighth timer t 8 may be specified by the user ( e . g . via the user inputs of the generator 20 and / or a software - based user interface ) as a “ master ” timer ( i . e ., total procedure time ) for the operation of the generator 20 in a given procedure . in this configuration , the generator 20 is shut off upon the expiration of the procedure timer t 8 regardless of whether or not the termination state 535 is entered . with reference now to fig8 , a software - based graphical user interface 600 is shown for use with embodiments of the software system 500 of the present disclosure . the interface 600 may include a plurality of editable parameters to allow the user to provide specific values ( e . g ., via the user inputs of the generator 20 ) for controlling the power output by the generator 20 via the software system 500 . the interface 600 allows the user to test and / or validate the software system 500 of the present disclosure . specifically , the interface 600 may be organized by priority level and / or task level including a normal priority interface 610 , a high priority interface 620 , and a low priority interface 630 , as shown in fig8 . further , a control interface 640 may be provided to allow the user to specify various control parameters such as , for example , the procedure time ( e . g . the eighth timer t 8 ) and the file path and / or location of a file to be executed by the software system 500 , etc . the normal priority interface 610 is configured to be edited by the user to provide specific parameters for predetermining the behavior of the normal priority task 510 during a given procedure . the normal priority interface 610 may be divided into three sub - interfaces , namely , an initialization state interface 650 , a run state interface 660 , and a peak state interface 670 , to coincide with the three states 550 , 560 , and 570 of the normal priority task 510 , respectively . the interfaces 650 , 660 , and 670 may be edited by the user to provide specific parameters for further predetermining the behavior of the normal priority task 510 during a given procedure . referring now to interface 650 , the user may be able to specify parameters related to the initialization state 550 of the normal priority task 510 , such as the duration of the first timer t 1 and power levels of p base , p init , p rate , and p max . with reference to interface 660 , the user may be able to specify parameters related to the run state 560 of the normal priority task 510 , such as the duration of the second timer t 2 , the first impedance reference zdelta 1 , and the amount of the first and second power adjustments p 1 . p 2 . with reference to interface 670 , the user may be able to specify parameters related to the peak state 570 of the normal priority task 510 , such as the duration of the third timer t 3 , the second impedance reference zdelta 2 , and the amount of the third and fourth power adjustments p 3 and p 4 . the high priority interface 620 is configured to be edited by the user to provide specific parameters for predetermining the behavior of the high priority task 520 during a given procedure . in particular , the user may be able to specify parameters such as the duration of the fourth timer t 4 , the third impedance reference zdelta 3 , and the fifth power adjustment p 5 . the low priority interface 630 is configured to be edited by the user to provide specific parameters for predetermining the behavior of the low priority task 530 during a given procedure . in particular , the user may be able to specify parameters such as the duration of the fifth , sixth , and seventh timers t 5 , t 6 , t 7 and impedance reference zdelta 4 . further , with respect to the termination state 535 of the low priority task 530 , the user may be able to choose from a menu of options ( not explicitly shown ) to select how the generator 20 will behave over the duration of the seventh timer t 7 once the termination state 535 is entered ( e . g . continue current output level , adjust to a predetermined output level , shut off upon the expiration of the seventh timer t 7 , etc .). while several embodiments of the disclosure have been shown in the drawings and / or discussed herein , it is not intended that the disclosure be limited thereto , as it is intended that the disclosure be as broad in scope as the art will allow and that the specification be read likewise . therefore , the above description should not be construed as limiting , but merely as exemplifications of particular embodiments . those skilled in the art will envision other modifications within the scope and spirit of the claims appended hereto .
a method for controlling energy applied to tissue as a function of at least one detected tissue property includes the initial step of applying energy to tissue . the method also includes the steps of initially adjusting the energy applied to tissue and determining a direction of change of the at least one detected tissue property . the method also includes the steps of subsequently adjusting the energy applied to tissue in the same direction as the initially adjusting step if the at least one detected tissue property is changing in a first direction and in the opposite direction to the initially adjusting step if the at least one detected tissue property is changing in a second direction and further adjusting the energy applied to the tissue in the same direction as the initially adjusting step if the at least one detected tissue property is changing in the second direction and in the opposite direction to the initially adjusting step if the at least one detected tissue property is changing in the first direction .