System and method for controlling a fuel cell testing device

Information

  • Patent Application
  • 20050075816
  • Publication Number
    20050075816
  • Date Filed
    September 14, 2004
    19 years ago
  • Date Published
    April 07, 2005
    19 years ago
Abstract
A system and method in a data processor for controlling a controllable condition of a fuel cell via a control device is provided. The system and method involve (a) providing a script language comprising a control command type having an operating level field for receiving a selected operating level of the control device; (b) deriving a control command from the control command type by inserting the selected operating level of the control device into the operating level field of the control command; (c) writing a test script using the script language such that the test script includes the control command; (d) compiling the test script to provide a test program; and, (e) controlling the control device according to the test program.
Description
FIELD OF THE INVENTION

This invention relates to fuel cell testing systems. More particularly, the invention relates to a system for controlling the operation of fuel cell testing systems and for automating fuel cell tests.


BACKGROUND OF THE INVENTION

In recent years, research and development of fuel cells has increased dramatically. It is expected that these efforts will eventually yield commercially viable power systems that produce little pollution.


Fuel cells convert chemical energy stored in fuels into electrical energy. A fuel cell has an anode and a cathode. In some types of fuel cell, hydrogen atoms are introduced into the anode. Within the fuel cell, the hydrogen atoms are separated into electrons and protons (hydrogen ions). The hydrogen ions pass through a membrane to the cathode, where they are combined with oxygen to form water. The electrons cannot flow through the membrane resulting in an electrical potential between the anode and cathode. The electrons flow through an external load to the cathode. Thus, the external load consumes the potential generated by the cell. At the cathode, the hydrogen ions are oxidized to produce water. Theoretically, the only products of the fuel cell are the electrical power consumed by the load, heat and water. In reality, impurities in the hydrogen fuel, environmental conditions and other conditions can substantially effect the efficiency of the fuel cell and resulting in by-products and exhaust products other than heat and water.


A typical fuel cell is capable of producing only a small electrical potential between its anode and cathode—generally about 1 volt. To produce a useful potential individual cells are assembled in series into fuel cell stacks. Typically, a test is conducted on such a fuel cell stack.


Fuel cell stacks must be tested under different and varied conditions to mirror the conditions in which they will be used in practical devices such as motor vehicles. This includes long term test during which conditions change. The development of fuel cells requires substantial testing and several testing systems or “test stations” have been developed for this purpose.


These testing stations allow many conditions of a fuel cell stack, its environment, fuel sources and other conditions to be controlled. Known testing stations allow these conditions to be controlled manually—a target value is set for each condition and automated equipment within the test station attempts to achieve the target value. For example, during a particular test, three target conditions relating to a hydrogen gas supply at the anode fuel supply for a fuel cell may be that it should be supplied at a pressure of 300 kPa, 83° C., and at a rate of 300 lpm (liters per minute). Typical fuel cell testing stations include pumps and flow controllers to achieve the desired pressure and flow rates and heating and/or cooling equipment to achieve the desired temperatures to control the flow rate. Similar characteristics of the cathode gas mixture, the load applied to the fuel cell and other conditions are similarly controllable.


Typically, fuel cell test stations have software control systems. It is preferable that the software has a simple and flexible architecture that allows the control system to be varied and configured easily.


Furthermore, it is desirable that the control system allows fuel cell stacks to be tested substantially automatically. In addition, the control system preferably allows the test or the control system itself to be modified easily—preferably even during a test through modification of the automated test and/or by manually changing the test conditions.


SUMMARY OF THE INVENTION

This invention provides a control system for monitoring and controlling the operation of a fuel cell testing system. The control system itself includes a server that incorporates a system manager and a set of driver applications. Each driver application communicates with a corresponding control module. The control modules in turn communicate with elements of the fuel cell testing system. Each such element may either be controlled or monitored or both by the control module to which it is coupled. For example, flow control elements may be monitored to determine the amount of liquid or gas that is currently flowing through them, and may also be controlled to set the amount of liquid or gas that it will pump.


The driver applications are created and launched by the system manager and they communicate with the system manager through a mapped file created and made available by the system manager. The mapped file contains a record for every controllable or monitorable element in the fuel cell testing system. Elements that are both controllable and monitorable are treated as having separate controllable and monitorable characteristics and each such characteristic has a separate record in the mapped file.


The record for each controllable or monitorable characteristic of an element is identified in the mapped file with a unique tag name. Tags that are associated with a controllable element are referred to as control tags. Tags that are associated with a monitorable element are referred to as data tags.


Tags may be associated by various signal types depending on the nature of the device being controlled or monitored. For example, a valve or switch that may be simply closed or open receives a digital control value to either turn it on or off. The valve or switch can also be queried to determine a digital data value to determine if it is open or closed. The switch has a control tag that is used to transmit the digital control value and has a data tag that is used to query its current state.


In contrast, a flow controller which can be set to allow different controllable amounts of liquid or gas to flow through it will typically receive an analog control value, which defines the amount of gas or liquid that should flow through it. Correspondingly, a flow controller can be queried to determine an analog data value which indicates the amount of liquid or gas that is presently flowing through it. In an alternative embodiment of the present invention a device such as a flow controller having many settings may also receive a digital value consisting of more than one bit that defines a particular setting from the group of settings. For example, an eight bit word may be sent as a control value to instruct the full controller to allow the better gas to flow out one of 256 levels.


Coupled to the system manager is at least one user application that is not part of the first embodiment of the present invention but may be prepared by a user in order to control the operation and procedures of a fuel cell test. The system manager communicates with the driver applications and the one or more user applications through a mapped file. The system manager creates the mapped file and makes it accessible to each driver application and each user application. The mapped file contains tag records and also some system activity info, such as task activity flags that allow the system manager to control the activity of the entire testing system.


Driver applications read the control values of the specific tags and record the present control values. Typically a control module will use a different range of signals to control a physical device then the numerical operating range of that device. For example, a control system may be configured to transmit a signal between 0 to 20 volts to operate a flow controller that is capable of flowing between 0 and 500 standard liters per minute (slpm). The relationship between the 0 and 20 volt input control value range and the 0 and 500 slpm operating level range may or may not be linear. In one embodiment described below it is assumed that the relationship between the ranges is linear. In another embodiment the range may be non linear and the record for the tag in the mapped file may contain either a look-up table or formula or both, which may be used to convert between one range and the other. The record for each tag file contains eight fields to record both the control or data value (depending on whether the tag is a control tag or a data tag) and the current operating level for the tag (which may be a desired operating level for a control tag or an actual operating level for a data tag). The user applications use operating values, which are understood by the humans that will typically use user applications to interact with the fuel cell testing system and the control system of the present invention. User applications use a collection of reading/writing methods (MappedFilesTool.dll) to write or read data in/from the tag file. These reading/writing methods ensure the data converting according to the signal description in each tag.


In accordance with a first aspect of the invention, there is provided a system for testing a fuel cell. The system comprises (a) testing means having a control device for controlling a controllable condition of the fuel cell; (b) a user interface for providing a script language comprising a control command type having an operating level field for receiving a selected operating level of the control device, wherein a test script is writeable using the script language such that the test script includes a control command of the control command type, the control command being derivable from the control command type by inserting the selected operating level of the control device into the operating level field of the control command; (c) a compiler for compiling the test script to provide a test program; and, (d) a system manager for controlling the control device according to the test program.


In accordance with a second aspect of the invention, there is provided a method in a data processor for controlling a controllable condition of a fuel cell via a control device. The method comprises: (a) providing a script language comprising a control command type having an operating level field for receiving a selected operating level of the control device; (b) deriving a control command from the control command type by inserting the selected operating level of the control device into the operating level field of the control command; (c) writing a test script using the script language such that the test script includes the control command; (d) compiling the test script to provide a test program; and, (e) controlling the control device according to the test program.




BRIEF DESCRIPTION OF THE DRAWINGS

A preferred embodiment of the present invention will now be described in detail with reference to the drawings, in which:



FIG. 1 is a schematic illustration of an exemplary fuel cell stack testing system including a control system according to the present invention;



FIG. 2 illustrates the control system of FIG. 1;



FIG. 3 illustrates a start-up method of a system manager of the control system of FIG. 1;



FIG. 4 illustrates a method of operation for driver applications of the control system of FIG. 1;



FIG. 5 illustrates another method of operation for driver applications of the control system of FIG. 1; and,



FIG. 6, in a block diagram, illustrates a system for creating scripts and programs for use by a user application according to a second embodiment of the present invention.




DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENT

Intro to Fuel Cell Testing Systems


Reference is first made to FIG. 1, which schematically illustrates an exemplary fuel cell stack testing system 100. System 100 has a series of gas inlets 102a, 102b, 102c, . . . , 102g, a de-ionized water input 104, a combustible exhaust outlet 106, a non-combustible exhaust outlet 108, a controllable loadbox 110, a test chamber 112 and a control system 140. Control system 140 is schematically illustrated at several places on FIG. 1 to simplify the Figure.


This exemplary fuel cell testing system 100 is configured for testing hydrogen based fuel cell stacks. When system 100 is in use, a fuel cell stack 114 is usually positioned in test chamber 112. Fuel cell stack 114 has an anode side 114A and a cathode side 114C. The anode side 114A of stack 114 has an anode gas inlet 118A, an anode gas exhaust outlet 120A and an anode electrical terminal 122A. The cathode side 114C has a cathode gas inlet 118C, a cathode gas exhaust outlet 120C and a cathode electrical terminal 122C.


A hydrogen based fuel cell stack typically consists of a stack of individual fuel cells. Stack 114 comprises 8 fuel cells 116a-116h. Each of the fuel cells 116 has an anode side and a cathode side, which are separated by a membrane. (The internal structure of each cell 116 is not shown, but will be well understood by those skilled in the art.) The anode side of each fuel cell is coupled to the anode gas inlet 118A to receive an anode gas mixture. The anode gas mixture includes hydrogen. The cathode side of each fuel cell 116 is coupled to the cathode gas inlet 118C to receive a cathode gas mixture. The cathode gas mixture contains an oxidant. In this exemplary embodiment, the oxidant is oxygen. In this way, hydrogen is supplied to the anode side of each fuel cell 116 and oxygen is supplied to the cathode side. Hydrogen molecules (H2) are separated on the anode side into electrons and hydrogen ions (H+). The hydrogen ions flow across a membrane to the cathode side of the fuel cell 116. The membrane is impermeable to the electrons. Free electrons are collected at an anode current collector. Each cell 116 also has a cathode current collector. The collection of electrons at the anode current collector creates an electrical potential across the fuel cell 116. The fuel cells 116 are electrically arranged in series within the stack 114 so that the combined potential of the fuel cell 116 appears between the anode electrical terminal 122A and the cathode electrical terminal 122C. The electrons freed in each fuel cell 116 flow from the anode electrical terminal 122A through loadbox 110 back to cathode electrical terminal 122C. From the cathode electrical terminals, the free electrons flow to the cathode side of the individual fuel cell 116, where the hydrogen ions, electrons and oxygen combine to form water. The flow of electrons is a current which can perform work in the loadbox 110.


Ideally, stack 114 would receive only hydrogen gas on its anode side and oxygen on its cathode side. However, these ideal conditions are unlikely to be met during the practical usage of a stack. Accordingly, system 100 is configured to provide anode and cathode gas mixtures with controllable compositions. Selected gas inlets 102 are coupled to an anode gas mixture manifold 124 through a series of gas valves 128 and flow controllers 132. Similarly, selected gas inlets 102 are coupled to a cathode gas mixture manifold 126 through a series of gas valves 130 and flow controllers 134. In this exemplary embodiment, the hydrogen, methane, carbon monoxide, carbon dioxide, nitrogen and air supplies (which correspond to gas inlets 102a-102e) are coupled to the anode gas mixture manifold 124 through valves 128a-f and flow controllers 132a-f. The nitrogen, air, oxygen and helox supplies (which correspond to gas inlets 102d-102h) are coupled to the cathode gas mixture manifold 126 through valves 130a-d and flow controller 134a-d.


Gas supply valves 128a-f are controlled by a control system 140 through control lines 129a-f. Gas supply valves 130a-d are controlled by control system 140 through control lines 131a-d. Flow controllers 132a-f are controlled by control system 140 through data/control lines 133a-f. Flow controllers 134a-d are controlled by control system 140 through data/control lines 135a-d. Control system 140 operates valves 128 and flow controllers 132 so that the mixture of gases in anode gas mixture manifold 124 (the “anode gas mixture”) has a selected composition. Similarly control system 140 operates valves 130 and flow controllers 134 to ensure that a cathode gas mixture in cathode gas mixture manifold 126 has a desired composition.


Typically, it is desirable to control the temperature and humidity level of the anode gas mixture and the cathode gas mixture as they are supplied to the stack 114 during a test.


An anode gas heater 136 is coupled to anode gas mixture manifold 124 to monitor the temperature of the anode gas mixture and to heat or cool the anode gas mixture stored in anode gas mixture manifold 124 to a desired temperature. Similarly a cathode gas heater 138 is coupled to cathode gas mixture manifold 126 to monitor the temperature of the cathode gas mixture and to heat or cool the cathode gas mixture to a desired temperature. Anode gas heater 136 is coupled to control system 140 through a data/control line 160, through which control system 140 can monitor the temperature of the anode gas mixture, as well as control the operation of anode gas heater 136.


From anode gas mixture manifold 124, the anode gas mixture passes through an anode gas humidity control unit 144, an anode gas mixture valve 146 and a flow controller 148. From flow controller 148, the anode gas mixture flows into the anode gas inlet 118 of stack 114 through an anode gas reheating jacket 150. From cathode gas mixture manifold 126, the cathode gas mixture flows through a cathode gas humidity control unit 152, a cathode gas mixture valve 156 and a flow controller 156. From flow controller 156, the cathode gas mixture flows through a cathode gas reheating jacket 158 into the cathode gas inlet 118C. The operation of anode gas mixture valve 146 is controlled by control system 140 through control line 172. The operation of anode gas flow controller 148 is controlled by control system 140 through data/control line 174.


During the operation of the system 100, some of the anode gas mixture produced in anode gas mixture manifold 124 is not pumped to stack 114. The excess anode gas mixture is discarded through combustible exhaust outlet 106.


Anode gas heater 136 heats the anode gas mixture to the temperature at which it should be supplied to the stack 114. Reheating jacket 150 ensures that the temperature of the anode gas mixture does not change as the anode gas mixture flows into the stack 114. The operation of anode gas heater 136 (i.e. the temperature to which it heats the anode gas mixture) is controlled by control system 140 through data/control line 160. Similarly, the operation of anode reheating jacket 150 is controlled by control system 140 through control line 162.


System 100 receives a de-ionized water supply at de-ionized water inlet 104. A boiler 176 receives de-ionized water and boils it to produce steam, which is stored in a steam reservoir 178.


Anode humidity control unit 144 receives steam from steam reservoir 178. Anode humidity control unit 144 includes a saturator 164 and a dewpoint controller 162. The anode gas mixture first flows through saturator 164, which is controlled by control system 140 through a data/control line 168. Saturator 164 is typically operated to heat anode gas mixture sufficiently that it becomes completely saturated with water vapour (i.e. it has 100% humidity). From saturator 164, the anode gas mixture flows into dewpoint controller 166, which is controlled by control system 140 via data/control line 170. Dewpoint controller 166 is operated to reduce to the temperature of the anode gas mixture so that the humidity level of the anode gas mixture falls to a desired level. It is not necessary that saturator 164 be operated to completely saturate the anode gas mixture. It is sufficient to heat the anode gas mixture so that its humidity level is at or above the desired humidity level.


The anode gas mixture flows through reheating jacket 150 into an anode gas mixture inlet 118A of stack 114. Some of the anode gas mixture supplied to stack 140 will not be consumed by the anode side of fuel cells 116 and the unused portion of the anode gas mixture is exhausted through anode gas mixture exhaust outlet 120A. From anode gas mixture exhaust outlet 120A, the unused anode gas mixture flows to combustible exhaust outlet 106.


The cathode gas mixture produced in cathode gas mixture manifold 126 is similarly humidified by cathode humidity control unit 152, which has a cathode gas saturator 180 and dewpoint controller 182. The temperature of the cathode gas mixture is controlled by cathode gas heater 138 and cathode reheating jacket 158. The humidification and flow of the cathode gas mixture is controlled by control system 140 through the data/control lines listed in Table 1.

TABLE 1Data/Control lines for cathode gas related elementsData/control line used by controlsystem 140 to monitor and/orElementcontrol elementCathode gas heater 138Data/control line 184Cathode gas saturator 180Data/control line 186Cathode dewpoint controller 182Data/control line 188dewpoint controller 154Data/control line 190Cathode gas flow controller 156Data/control line 192Cathode reheating jacket 158Data/control line 194


Excess cathode gas mixture that is not pumped to the cathode gas inlet 118C or which is unused and exhausted through cathode gas exhaust outlet 120C is exhausted from system 100 through non-combustible exhaust outlet 108.


During use, stack 114 is typically cooled. De-ionized water from de-ionized water inlet 104 flows into a stack coolant reservoir 196, which has an attached stack coolant cooler 198. Cooler 198 cools the de-ionized water stored in reservoir 196 to a desired temperature. The operation of cooler 198 is controlled by control system 140 through data/control line 200. Cooled de-ionized water flows from reservoir 196 to stack coolant inlet 202, through the stack, stack coolant outlet 204 and back to reservoir 196, under the control of coolant valve 206 and coolant flow controller 208. Coolant valve 206 and coolant flow controller 208 are controlled by control system 140 through data/control lines 210 and 212.


During a test of fuel cell stack 114, it is generally desirable to measure the temperature at various point of system 100 and stack 114. Control system 140 includes thermometers coupled to the points of system 100 and stack 114 listed in Table 2, for measuring the temperature at the indicated points. These thermometers are represented on FIG. 1 by a capital “T” in a circle with an arrow pointing towards the location at which the thermometer takes a measurement. Each of these thermometers is coupled to control system 140, through the data line indicated in Table 2.

TABLE 2Thermometers coupled to system 100Data line couplingThermometerTemperaturethermometer to controlElement No.Location on FIG. 1characteristic measuredsystem 140214Stack coolant inlet 202Temperature of stack216coolant entering stack 114218Stack coolant outlet 204Temperature of stack220coolant exiting stack 114224Anode gas inlet 118ATemperature of anode226gas mixture entering stack114228Anode gas outlet 120ATemperature of unused230anode gas mixture exitingstack 114232Cathode gas inlet 118CTemperature of cathode234gas mixture entering stack114236Anode gas outlet 120CTemperature of unused238cathode gas mixtureexiting stack 114240Stack coolant reservoirTemperature of stack242196coolant in reservoir244Selected point on stackTemperature of stack 114246114 (may be moved toat selected pointvarious points on stack)


It is also generally desirable to measure the pressure of the various gases and fluids in system 100 during a test of a fuel cell. Control system 100 includes various pressure sensors coupled to different parts of system 100. Table 3 identifies these pressure sensors and their position in system 100. These pressure sensors are represented on FIG. 1 by a capital “P” in a circle with an arrow pointing towards the location at which the pressure sensor is located and the pressure that it measures. Each of these thermometers is coupled to control system 140, through the data line indicated in Table 3.

TABLE 3Pressure sensors coupled to system 100PressureData line couplingSensorPressure characteristicpressure sensor to controlElement No.Location on FIG. 1measuredsystem 140250Anode gas mixture inletAnode gas mixture252118Apressure at inlet to stack114254Cathode gas mixture inletCathode gas mixture256118Cpressure at inlet to stack114258Anode gas mixture outletAnode gas mixture260120Apressure at outlet fromstack 114262Cathode gas mixtureCathode gas mixture at264outlet 120Coutlet from stack 114266Stack coolant inlet 202Stack coolant pressure at268inlet to stack 114270Stack coolant outlet 204Stack coolant pressure at272outlet from stack 114


One important characteristic of stack performance that is usually measured during a test of a fuel cell stack is the voltage generated between the anode and cathode of each cell in the stack. A set of data lines 280 are coupled between cells 116 and control system 140 to measure the voltage across each cell 116 and to provide the measured voltages to control system 140. A skilled person will recognize that the voltage across a cell 116 will require measurement of the potentials on both sides of the cell 116. Accordingly, each data line 280 may be coupled to a pair of electrodes that are coupled across the cell 116 and a circuit for calculating the voltage difference across the electrodes (such as a differential amplifier) may be used to calculate the voltage value reported to control system 140.


Loadbox 110 is capable of drawing a controlled load from stack 114. The following components of the load drawn by loadbox 110 are configurable: DC power (effectively a current drawn at the power across the stack electrical terminals 122), AC frequency, AC voltage and AC current. Typically, loadbox 110 will be capable of adding any type of AC component into the load on the stack 114. A set of control lines 282-288 are coupled between the loadbox 110 and control system 140 to allow control system 140 to control the different characteristics of the load drawn from stack 114 to be controlled. Control lines 282-288 are described in Table 4.

TABLE 4Control Lines for Loadbox 110Control LineCharacteristic of load controlled282DC power284AC current286AC voltage288AC current


Reference is next made to FIG. 2, which illustrates control system 140, according to a first embodiment of the present invention. Control system 140 includes a server 300, a mapped file 302 and a set of control modules 304a, 304b, 304c, 304d. Server 300 includes a system manager 306 and a set of driver applications 308a, 308b, 308c, 308d.


Control modules 304 are coupled to elements of system 100 (FIG. 1) through the various data/control lines described above. Each of control modules 304 interfaces with different parts of system 100. In this embodiment, control module 304a is a flow control module and, in general, is coupled to valves and flow controllers in system 100. Control module 304b is a thermal control module that is, in general, coupled to thermometers, heaters and coolers in system 100. Control module 304c is a loadbox control module that is, in general, coupled to control lines 282-288 to control the operation of loadbox 110. Control module 304d is a Fuel Cell Voltage Monitoring (FCVM) control module that is coupled to the control lines 280, which monitor the voltage across fuel cell 116 in stack 114. Each control module 304 is coupled to system manager 306 through a corresponding driver application 308.


Communications between each control module 304 and its corresponding driver application will be carried out using a selected communications protocol. For example, protocols such as RS232, RS485, IEEE488 or any other serial or parallel data communication protocol may be used. The selection of the protocol will typically depend on the nature of the devices included in the control module.


In this embodiment, communications between each driver application 308 and the system manager 306 are accomplished using a pair of message queues. To communicate with system manager 306, driver application 308a stores messages in a shared memory. System manager 306 subsequently retrieves the messages from the shared memory and acts on them. To communicate with driver application 308a, system manager 306 stores messages in the shared memory. Driver application 308a subsequently retrieves and acts on the messages. Driver applications 308b-d similarly use the shared memory to communicate with system manager 306. In other embodiments, communication between the driver applications 308 and system manager 306 may be performed using any known mechanism, such as message queues or another communication techniques.


Table 5 describes the following characteristics of each of the data/control lines coupled to system 100:

TABLE 5Data/Control lines and associated tag informationField in Table 5DescriptionData/ControlThe reference numeral used to identify the data/controlLineline in this patent.ElementThe reference numeral used to identify the element ofsystem 100 that is monitored or controlled or both usingthe identified data/control line.Tag nameA unique reference name for the specific characteristiccontrolled.Signal TypeThe type of communication signal transmitted across thedata/control line. A digital signal is typically used to switcha device on or off. An analog signal is used for devicesthat can be set at multiple levels, or at any level betweensome low and high limits.A digital value signal is used to transmit a digital wordencoding a control or data level. For example, an 8 bitdigital word may be used to encode a digital value signalthat may have up to 256 levels.An output signal is used to control a device - the device isset to operate at the specified controlled level by sendinga signal through the associated control line. Tags relatingto an output signal are referred to as “control tags”.An input signal is used to monitor a device - the currentoperational level of the device is reported through the dataline. Tags relating to an input signal are referred to as“data tags”.Some data/control lines are data lines only. Such datalines are used to monitor an element of system 100.Other data/control lines are control lines only. Thesecontrol lines are used only to control an element of system100. Other data/control lines operate bi-directionally andallow both data and control signals to be transmitted.These bi-directional data/control lines may consist of asingle physical line or may consist of multiple physicallines which separately carry the data and controlcommunications.ModuleThe name of the control module to which the data/controlline is connected.Tag #A unique tag number that allows the tag to be identified.Control/DataUsed for analog inputs and outputs. Defines the lowestRange Lowcontrol or data signal level use by the associated controlmodule to communicate with a device (for the specifiedtag). For example, flow control module 304a transmits ananalog signal to flow controller 134a, which controls theflow of helox gas into the cathode gas mixture manifold126, using data/control line 135a. The analog signal has arange between 0 to 20. The units of this range will dependon the interface used by the associated flow control device304. For example, a signal of between 0 to 20 volts maybe used. Alternatively, a signal of between 0 to 20milliamps might be used. The present invention is notlimited to the use of any particular control interfacebetween a device and the associated control module.Control/DataUsed for analog inputs and outputs. Defines the highestRange Highcontrol or data signal level use by the associated controlmodule to communicate with a device.DeviceUsed for analog inputs and outputs. Defines the lowestOperating Rangeoperational level for an element of system 100. A deviceLowwill typically receive control signals or transmit data signalwithin its control/data range that correlate to its operationalrange. Typically, the two ranges will be different. Forexample, flow controller 134a receives control signalsranging between 0 and 20. However, it is capable ofpumping between 0 to 500 standard liters per minute (seeUnits field) of helox into the cathode gas mixture manifold.In this embodiment, the relationship between the controlrange and the operational range is assumed to be linear.In other embodiments, the relationship may be non-linearand may be different for different devices. The tag filemay be modified to include co-efficients defining a non-linear relationship between the control/data range and theoperating range. Such co-efficients may define analgebraic conversion, a lookup table or a combination ofthese and possibly other mechanisms for convertingbetween the control/data range and the operational range.DeviceUsed for analog inputs and outputs. Defines the highestOperating Rangeoperational level of an element of system 100.HighUnitsThe name of the unit in which the operational range of thedevice is defined.Data/ControlControlDeviceDeviceControlRangeRangeRangeRangeLineElementTag nameSignal TypeModuleTag#LowHighLowHighUnits129a128aValve_anode_mix_H2Digital outputFlow Control661129b128bvalve_anode_mix_ch4Digital outputFlow control666129c128cvalve_anode_mix_co2Digital outputFlow control663129d128dvalve_anode_mix_coDigital outputFlow control664129e128eValve_anode_mix_N2Digital outputFlow control662129f128fvalve_anode_mix_airDigital outputFlow control665131a130avalve_cathode_mix_heloxDigital outputFlow control680131b130bvalve_cathode_mix_o2Digital outputFlow control677131c130cvalve_cathode_mix_airDigital outputFlow control676131d130dvalve_cathode_mix_N2Digital outputFlow control678133a132aflow_anode_mix_H2Analog InputFlow control5760200300Slpmflow_anode_mix_h2_setAnalog outputFlow control5770200300Slpm133b132bflow_anode_mix_ch4Analog InputFlow control586020050Slpmflow_anode_mix_ch4_setAnalog outputFlow control587020050Slpm133c132cflow_anode_mix_co2Analog InputFlow control5800200300Slpmflow_anode_mix_co2_setAnalog outputFlow control5810200300Slpm133d132dflow_anode_mix_coAnalog InputFlow control58202001000Slpmflow_anode_mix_co_setAnalog outputFlow control58302001000Slpm133e132eflow_anode_mix_N2Analog InputFlow control5780200500Slpmflow_anode_mix_n2_setAnalog outputFlow control5790200500Slpm133f132fflow_anode_mix_airAnalog InputFlow control584020050Slpmflow_anode_mix_air_setAnalog outputFlow control585020050Slpm135a134aflow_cathode_mix_heloxAnalog InputFlow control6140200500slpmflow_cathode_mix_helox_setAnalog outputFlow control6150200500slpm135b134bflow_cathode_mix_o2Analog InputFlow control608020050slpmflow_cathode_mix_o2_setAnalog outputFlow control609020050slpm135c134cflow_cathode_mix_airAnalog InputFlow control606020050slpmflow_cathode_mix_air_setAnalog outputFlow control607020050slpm135d134dflow_cathode_mix_N2Analog InputFlow control6100200500slpmflow_cathode_mix_n2_setAnalog outputFlow control6110200500slpm170166signal_out_anode_dewpt_loopDigital outputFlow control747168164temp_anode_satAnalog InputThermal512010000100° C.controltemp_anode_sat_setAnalog outputThermal513010000100° C.control170166temp_anode_dewptAnalog InputThermal516010000100° C.controltemp_anode_dewpt_setAnalog outputThermal517010000100° C.control131130valve_anode_stackDigital outputFlow control692174148flow_anode_stackAnalog InputFlow control638020011slpmflow_anode_stack_setAnalog outputFlow control639020011slpm162150signal_out_anode_reheat_loopDigital outputFlow control748162150temp_anode_reheatAnalog InputThermal520010000100° C.controltemp_anode_reheat_setAnalog outputThermal521010000100° C.control216214temp_anode_inletAnalog InputThermal524010000100° C.controltemp_anode_inlet_setAnalog outputThermal525010000100° C.control188182signal_out_cathode_dewpt_loopDigital outputFlow control749226224temp_anode_outAnalog outputFlow control5420000° C.192156signal_out_cathode_reheat_loopDigital outputFlow control750188182temp_cathode_dewptAnalog InputThermal518010000100° C.controltemp_cathode_dewpt_setAnalog outputThermal519010000100° C.control186180temp_cathode_satAnalog InputThermal514010000100° C.controltemp_cathode_sat_setAnalog outputThermal515010000100° C.control194158temp_cathode_reheatAnalog InputThermal522010000100° C.controltemp_cathode_reheat_setAnalog outputThermal523010000100° C.control242240temp_coolant_tank_outAnalog InputThermal528010000100° C.controltemp_coolant_tank_out_setAnalog outputThermal529010000100° C.control190154valve_cathode_stack_1Digital outputFlow control697252250pressure_anode_inAnalog InputFlow control806150350kPapressure_anode_in_setAnalog outputFlow control8074200350kPa256254pressure_cathode_inAnalog InputFlow control808150350kPapressure_cathode_in_setAnalog outputFlow control8094200350kPa260258pressure_anode_diffAnalog InputFlow control81005035KPa264262pressure_cathode_diffAnalog InputFlow control81105035KPa268266pressure_coolantAnalog InputFlow control8124200550KPapressure_coolant_setAnalog outputFlow control8130000KPa272270pressure_coolant_diffAnalog InputFlow control814050100KPa220218temp_cathode_inletAnalog InputThermal526010000100° C.controltemp_cathode_inlet_setAnalog outputThermal527010000100° C.control192156flow_cathode_stack_1Analog InputFlow control648020010Slpmflow_cathode_stack_1_setAnalog outputFlow control649020010Slpm234232temp_cathode_outAnalog outputFlow control5440000° C.246244temp_stack_controlAnalog InputThermal530010000100° C.controltemp_stack_control_setAnalog outputThermal531010000100° C.control200198signal_out_coolant_heaterDigital outputFlow control752210196signal_out_coolant_pumpDigital outputFlow control751212208flow_stack_coolantAnalog InputThermal6580500050Lpmcontrolflow_stack_coolant_setAnalog outputThermal6590500050Lpmcontrol280a116adata_cell_001Analog InputFCVM (Fuel00505VCell VoltageMonitor)280b116bdata_cell_002Analog InputFCVM10505V280c116cdata_cell_003Analog InputFCVM20505V280d116ddata_cell_004Analog InputFCVM30505V280e116edata_cell_005Analog InputFCVM40505V280f116fdata_cell_006Analog InputFCVM50505V280g116gdata_cell_007Analog InputFCVM60505V280h116hdata_cell_008Analog InputFCVM70505V282110Lb_DC_voltsDigital valueLoadbox8430101Voutput284110Lb_AC_FreqDigital valueLoadbox848010000010000Hzoutput286110Lb_AC_VoltsDigital valueLoadbox8490100001000Aoutput288110Lb_AC_AmpsDigital valueLoadbox8500100001000Voutput


A tag file 310 is stored on a storage device 312 which is accessible to server 300. Tag file 310 contains the information shown in Table 5 for each tag, with the exception of the associated data/control line number and the element number. The use of tag file 310 is explained below.


System manager 306 and driver applications 308 are separate threads of execution (and may be running on the same computer). System manager 306 operates mapped file 302 which contains information relating to every monitorable or controllable element in system 100.


Reference is next made to FIG. 3, which illustrates a method 1100 by which system manager 306 initiates the operation of system 100.


Method 1100 begins in step 1102 in which system manager 306 reads tag file 310. System manager 306 then creates mapped file 302 in a local memory space in step 1104. Mapped file 302 contains a record for each tag in tagged file 310 containing all of the fields that are in the tagged field, as well as two additional fields:

    • 1. A control/data value field—which contains the current control value for a control tag, or the current data value for a data tag. The values in this field are in the same units as the control/data range for each device.
    • 2. An operating level field—which contains a value corresponding to the control/data value, but in the same units as the operating range for the device.


By way of example, consider the operation of method 1100 relative to tags 576 and 577. In step 1102, system manager 306 reads tag file 310. System manager 306 then creates a mapped file 302 in a local memory space, which mapped file 302 contains a record for tags 576 and 577. This record includes all of the fields for tags 576 and 577 that are in tag file 310, and also includes, for tag 576, a data value field containing the current data value for tag 576, and, for tag 577, a control value field containing the current control value for tag 577. In addition, mapped file 302 contains an operating level field for each of tags 576 and 577, which includes the information stored in the data and control value fields respectively, converted to the same units as the operating range for the device.


Method 1100 then proceeds to step 1106. In step 1106, system manager 306 initiates a driver application for each flow control module. In this embodiment, system manager 306 determines which control modules 304 are present in control system 140 based on the entries in the Module field of the tagged file 310. Alternatively, a list of the control modules 304 may be provided to system manager 306 in a data file, or system manager 306 may analyze the hardware coupled to control system 140 and system 100 to determine which control modules are present.


In this embodiment, four control modules are installed: flow control module 304a, thermal control module 304b, loadbox control module 304c and FCVM control module 304d. In response, system manager 306 initiates four driver applications 308a-308d. Each of these driver applications is an independent thread of execution and operates independently of the others. When initiating each driver application 308, system manager creates the associated message queues (i.e. message queues 316 and 318 for driver application 308a).


System manager 306 then proceeds to step 1108, in which it initiates one or more user applications 314, if any user applications are installed in system 100. The purpose and operation of user applications is discussed below. Such user applications are not part of this first exemplary embodiment of the present invention, although they are included in other embodiment described below. System manager 20 then proceeds to step 1110.


Step 1110 is an optional step which may or may not be included in different embodiments of the present invention. In this step, system manager 306 reads an initial conditions data file (not shown) from a storage device. The initial conditions data file identifies one or more control tags and sets out an initial value for the control tag. For each identified control tag, system manager 306 enters the specified initial value in the control/data value field of the tag's record in the mapped file. System manager 306 then converts the control/data value into the corresponding operating level and stores the result in the operating level field of the tag's record in the mapped file. (Alternatively, the initial value data file may specify a tag's initial operating value and system manager 306 may calculate the corresponding data/control value.)


At the end of step 1110, the initialization operations of system manager 306 are complete. System manager 306 then enters a loop and remains in this loop indefinitely during a fuel cell test. The loop begins in step 1110.


Before describing this loop, it is desirable to explain the purpose and operation of driver applications 308 and user applications 314. Each driver application 308 interfaces with one or more control modules, which provide an interface with the control and data collection devices in system 100. Each driver application must have access to the relevant tag records in mapped file 302, in which the desired and actual operational conditions of system 100 are recorded.


For example, driver application 308a uses flow control module 304a to control the operation of flow controller 132a, which controls the flow rate of hydrogen into the anode gas mixture manifold 124. Driver application 308a can query flow controller 132a to determine the current flow rate of hydrogen in anode gas mixture manifold 124. The flow rate reported in response to such a query should be recorded in the control/data value field for the tag flow_anode_mix_H2 (tag No. 576 in Table 5) in mapped file 302. Driver application 308a can also instruct flow controller 132a to change the flow rate of hydrogen into anode gas mixture manifold 124 to a specified level. This specified level is recorded in the control/data value field for the tag flow_anode_mix_H2_set (tag No. 577 in Table 5) in mapped file 302. Driver application 308a can similarly query the operational conditions for all elements of system 100 from which it can receive an input signal (i.e. a digital or analog input) signal and can control the operational settings for any elements to which it can send an output signal.


Each driver application 308 accesses mapped file 302 through system manager 306 by sending messages to and receiving messages from system manager 306 using a pair of message queues. To facilitate this, each driver application uses a method class containing the methods set out in Table 6. Each of the methods transmits a message to system manager 306 and, if appropriate, system manager 306 transmits a return message. The method reads the return message and returns any return values to the driver application.

TABLE 6Methods in method class accessing mapped file 302Operation performed bysystem manager 306 or byMethod NameInput ValuesReturn Valuesuser application 314CommentsInitializeAndOpenHandle for mappedProvides handle, which, inAllows mapped file 302 toMappedFilefiled 302turn provides access tobe created and opened withmapped file 302the provided handle.To be used by only thesystem managerOpenMappedFileMapped fileHandle for mappedProvides read/write accessAllows mapped file 302 tonamefiled 302to mapped filebe openedCloseMappedFileMapped fileTerminates read/writeAllows mapped file 302 tohandleaccess to mapped filebe closed.ReadTaggedValueTag numberCurrentProvides currentReturns current specifiedcontrol/data valuecontrol/data value (firstcontrol value (for a controlfor tag (first amongamong 5 values) fortag) or currently recorded5 values)identified tag in mapped fileoperating value (for a data−1 if there is no302. Used by usertag) for a tag.mapped fileapplications. Applies dataavailableconversion.WriteTaggedValueTag number,Write confirmationRecords new control/dataAllows new desired controlnew(FALSE if there isvalue (first among 5 values)value for a control tag.control/datano mapped filefor tag in tag's record invalue for tagavailable, or wrongmapped file 302.(first among 5tag number)Used by user applications.values)Applies data conversion.ReadTaggedValuesTag numberPointer to theProvides currentAllows reading all the 5current control/datacontrol/data values (5possible current values ofvalues (5 possiblevalues) for the identified tagthe tag.values) for eachin the mapped file 302identified tagReturns −1 if thereis no mapped fileavailable.WriteTaggedValuesTag number,Write confirmationRecords new control/dataAllows writing all the 5new(FALSE if there isvalues (5 possible values)possible values of a tag.control/datano mapped filefor the identified tag in thevalues (available, or wrongmapped file 302pointer to a 5tag number)elementsarray)GetDataArrayStarting tag,Pointer to an arrayProvides currentAllows reading the firstnumber ofcontaining thecontrol/data value (firstcurrent value for more thantagscurrent control/datavalue) for a number of tagsone tag at a time.value (first value)from the mapped filefor each identified302starting with the onetagmentioned as firstSetDataArrayStarting tag,Write confirmationRecords currentAllows writing the firstnumber of(FALSE if there iscontrol/data value (firstcurrent value for more thantags, pointerno mapped filevalue) for a number of tagsone tag at a time.to an array,available, or wrongof the mapped file 302,containingtag specification)starting with the onethe currentmentioned as firstvalues (firstvalue) of allmentionedtagsGetTagInfoTag numberPointer to an arrayProvides the informationAllows the user applicationcontaining tagdescribing a tag (tag name,or the drivers to access thedescriptiontag type, module, moduletag description.informationaddress, channel number..)SetTagInfoTag number,Write confirmationRecords changes of the tagAllows changes of the tagPointer to an(FALSE if there isdescription.description —notarrayno mapped filerecommended to becontainingavailable, or wrongfrequently used.tagtag number)descriptioninformationGetTaggedFullValueTag numberControl/DataProvides control/data rangeAllows reading tag specificRange High fieldhigh value for tag from tag'sinfovalue for the tagrecord in mapped file 302GetTaggedZeroValueTag numberControl/DataProvides control/data rangeAllows reading tag specificRange Low fieldlow value for tag from tag'sinfovalue for tagrecord in mapped file 302GetTaggedRangeHighTag numberDevice OperatingProvides operating rangeAllows reading tag specificRange High for taghigh value for tag from tag'sinforecord in mapped file 302GetTaggedRangeLowTag numberDevice OperatingProvides operating rangeAllows reading tag specificRange High for taglow value for tag from tag'sinforecord in mapped file 302GetTaggedCoefficientsTag number,Read confirmationProvides the value of the 6Allows reading tag specificpointer to an(FALSE if there iscalibration coefficients.infoarray of 6no mapped filepossibleavailable, or wrongintegertag specification)valuesGetTagIndexTag nameTag index, or −1Provides the tag number ofAllows determining the tagFALSE if there isthe named tagnumber of a named tag.no mapped fileavailable, or wrongtag namespecification)TaskCheckInTask nameID numberUsed by user applicationsCheck in procedure to allowand driver applications atthe system manager tostart to notify their start andcontrol the task activity.get an IDTaskCheckOutTask IDUsed by user applicationsCheck out procedure toand driver applicationsallow the tasks to notify thebefore ending to notify theirsystem manager about theirnormal stop.normal stop.TaskUpdateTaskActivityTask IDUsed by user applicationsAllows the system managerand driver applications toto periodically notice thatperiodically update athe task having thedesignated activity flagspecified ID is still alive.The designated activity flagis cleared by the systemmanager each checkingtime.TaskCheckServerActivityTRUE if the systemUsed by user applicationsAllows the user applicationsmanager activityand driver applications toand driver applications toflag is set, FALSEperiodically check if theperiodically check if theotherwisesystem manager is still alivesystem manager is stillrunning.


Using the methods in the method class set out in Table 6, driver applications 308 are able to read and write control/data values from and to mapped file 302. Typically, driver applications 308 read control values from the records of control tags and write data values into the records of data tags. The control values are used to control the elements of system 100 and the data values report the operational states of the elements of system 100.


User applications 314 are used to define the desired operational state of system 100 during a fuel cell test, or during operation of system 100 at any time, and to report the operational state of system 100 to a user. User applications may be: user interfaces that allow the user to “manually” set the desired operational characteristics of system 100 and that display the current operational state; fully automated software programs that define a fuel cell test and have data recording capabilities for recording the performance of system 100 during the test, a combination of such manual and automated software or other types of program.


User applications 314 provide operating level values for recordal into control tags and read operating level values from data tags for reporting to a user, either through a user interface, data file, both a data file and a user interface or through another reporting device (i.e. a printer), transmitting an e-mail message, wireless pager or other communication device, etc. For control tags, user applications 314 provide operating level values, and the writing method covert them into control value and record them in mapped file. For data tags, the reading methods return the operating level value for the specified tag.


Several user applications 314 are described below in association with other embodiments of the present invention. For the purposes of this embodiment, it suffices that user applications 314 of any nature provide control value and, optionally, read data values from the records of control tags and data tags in mapped file 302.


User applications 314 may access the mapped file 302 in the same way as the driver applications 308: by using the methods in the method class set out in Table 6.


Both user applications and driver applications should access at the start the mapped file in order to apply a “check in” procedure. This procedure consists in specifying its own name and getting back an assigned ID to be used further on to periodically update a designated activity flag—activity update procedure. This procedure serves to have the system manager check if the applications involved in the testing system are “still alive”. The user applications can also determine if the system manager is “still alive” by checking its own activity flag. Each application before stopping has to apply a “check out” procedure to let the system manager know that it is not active anymore. Specific methods in the method class set out in Table 6 are used.


The system manager periodically accesses the mapped file to update its own activity flag and check the running user applications and driver applications activity flags, by using the specific methods in the method class set out in Table 6.


Typically, the user application writes control values to the records of control tags and reads data values from the records of data tags. The control values are then read by driver applications 308 to control the components of system 100 through control modules 304. The data values read by user applications 314 from the records of mapped file 302 will typically have been written into the mapped file by driver applications 308a.


System manager 306 requires each driver application 308 to periodically update a designated activity flag in the mapped file. This ensures that a driver application that has stopped executing properly is detected and allows the system manager 306 to take corrective action, which may include stopping and restarting the driver application, terminating any fuel cell test then underway, or taking other action. System manager 306 also requires that all user applications 314 that have applied the check-in procedure to similarly indicate that they are executing properly.


In other embodiments, method 1100 may have additional steps. For example, in some other embodiments, system manager 306 may require each driver application 308 to transmit at least one message within a selected time of its previous message to system manager 306. An additional method to send such an “I'm alive” message may be added to the method class of Table 6 for this purpose. This ensures that a driver application which has stopped executing properly is detected and allows system manager 306 to take corrective action, which may include stopping and restarting the driver application, terminating any fuel cell test then underway, or taking other action. System manager 306 may also require user applications 314 to similarly indicate that they are executing properly.


Driver applications 308 use and update the data recorded in mapped file 302. Each driver application obtains a handle for the mapped file 302 that system manager 306 is using by using the InitializeAndOpenMappedFile method.


Reference is next made to FIG. 4, which illustrates a method 1200 by which each driver application 308 controls the element of system corresponding to each tag that the driver application is associated with in Table 5. Each driver application 308 is coupled to a control module to monitor and/or control the operation of at least one element of system 100. Each characteristic that is monitored corresponds to a data tag in the tagged file and in the mapped file 302. Each characteristic that is controlled corresponds to a control tag in the tagged file and in the mapped file 302. The driver application may be said to be associated with each such data and control tag.


Method 1200 is executed by a driver application 308 in respect of each control tag that it is associated with. Method 1200 begins in step 1202, in which the driver application 308 uses the ReadTaggedValue method to obtain the current control value (from the control/data value field of the mapped file) for the control tag. For example, driver application 308a may use the ReadTaggedValue to obtain the current control value for the flow_cathode_stack1_set tag (tag No. 531 in table 5) to determine what flow rate has been specified for the flow of the cathode gas mixture into the stack (by a user application).


Method 1200 next proceeds to step 1204 in which the driver application transmits the control value for the control tag to its associated control module. Using the example above in step 1202, driver application 308a would transmit the control value to flow control module 304a. Flow control module 304a would then use the control value to control the operation of flow controller 156 by sending control signal on data line 192 (see FIG. 1 and Table 5). The nature of the control signal sent by the control module to the attached element of system 100 will depend on the particular element. For example, a flow controller may be controlled by a high quality PID type feedback control device that monitors and controls the operation of the flow controller constantly to ensure that the flow rate accurately tracks the specified flow rate.


Method 1200 next proceeds to step 1206 in which the driver application waits for a selected time period. The selected time period depends on the particular tag for which method 1200 is being performed. For example, when controlling a flow controller 132 to control the different concentrations of gases in the anode gas mixture, driver application may have a short delay to ensure that changes in the concentrations are processed quickly after they are made by user applications. On the other hand, the delay between iterations of the method 1200 for flow controller 208 may be longer. These comparisons are merely exemplary and in an actual embodiment of the present invention, the delays will be selected based on the type of elements being controlled and the desired degree of precision, as well as the limitations of the associated control module.


After step 1206, method 1200 returns to step 1202.


Reference is next made to FIG. 5, which illustrates a method 1300 by which each driver application 308 monitors the operation of each system element corresponding to each data tag with which the driver application is associated in Table 5. Method 1300 is executed by a driver application 308 in respect of each data tag with which it is associated.


Method 1300 begins in step 1302, in which the driver application 308 queries its associated control module as to the current operating level of the element of system 100 corresponding to the tag for which method 1300 is being performed. For example, driver application 308a may query flow control module 304 to obtain the current flow rate of the cathode gas mixture into the stack 116. This operational level is the data value for the data tag.


Method 1300 next proceeds to step 1304, in which driver application writes the data value to the mapped file record for the tag using the WriteTaggedValue method.


Method 1300 next proceeds to step 1306, in which driver application waits a selected time.


Method 1300 then returns to step 1302.


Using method 1200, each driver application 308 periodically reads the control value for each control tag with which it is associated and transmits the control value to the corresponding element of system 100. Similarly, using method 1300, each driver application 308 periodically obtains the data value for each data tag with which it is associated and stores the data value in the mapped file. Methods 1200 and 1300 are performed simultaneously by each driver application 308 for all control and data tags with which the driver application 308 is associated.


Using these methods, control system 140 controls and monitors each characteristic of each element of system 100 for which a tag has been added to the mapped file. Control system 140 attempts to control system 100 in accordance with the control/data value recorded in the mapped file 302 by a user application. Control system 140 makes the current operational state of the system 100 conform to user applications by updating the data tags in mapped file 302.


Before launching driver applications, the system manager configures them according to the tag file description of the control modules and elements of the current tested system.


Control system 140 has been described in the context of a simplified fuel cell testing system 100. Other embodiments of control system 140 may include data/control lines, tags, control modules and other elements, depending on the structure of the associated fuel cell testing system. Several such variations are described below. A skilled person will be capable of adding control/data lines, tags, control modules and elements to system 100 to accommodate the described variations.


For example, other embodiments of the present invention may include sources of other gases, or may include fewer gases to choose from that may be used to produce the anode gas mixture and/or the cathode gas mixture. Such an embodiment will include corresponding control/data lines to control the flow of such gases, tag lines and entries in the mapped file.


According to different embodiments of the present invention, the stack may include any number of fuel cells. The corresponding control system will include corresponding control/data lines to monitor the voltage across each cell in the stack.


Other embodiments of the invention may include controlling and monitoring the environment chamber in which the fuel cell stack is situated during a fuel cell test. For example, the humidity and temperature of the environment chamber may be controlled. Such embodiments will include control tags in the mapped file for control values associated with the temperature and humidity as well as corresponding data tags for monitoring the temperature and humidity. A skilled person will be capable of providing the appropriate data and control lines for such an embodiment.


Other embodiments of the invention may include data tags for monitoring the coolant fluid as well as the anode and cathode mixtures. Such data tags will be associated with appropriate data lines coupled to two sensors in the fuel cell testing system.


Other embodiments may include valves and full meters as well as pressure sensors for controlling and monitoring the main gas supply as well as the gas exhaust outlets. Such systems will include appropriate control and data tanks as well as the appropriate control and data lines in associated hardware within the fuel cell testing system.


The foregoing characteristics are only a sample of the test conditions that may need to be controlled during the testing of a particular fuel cell for a particular purpose. The present invention provides a software system for controlling system 100 to regulate these conditions, as well as other conditions, based on the particular of the fuel cell testing system with which the present invention is used.


Reference is made to FIG. 6. A second exemplary embodiment of the present invention will now be described. The second embodiment is identical in structure to the first exemplary embodiment described above with the addition of system 400 for creating user applications. System 400 includes a scripting language 402, a script compiler 404 and a program processor 406. Program processor 406 is a user application 314 (See FIG. 2).


Scripting language 402 is used to create scripts 408 for conducting fuel cell tests using system 100 (FIG. 1). Scripting language 402 has a number of commands, which are set out in Tables 7-11. Scripts 408 are converted into programs 410 using script compiler 404. While doing so, script compiler 404 checks the syntax and flow of the script 408 to ensure that an executable program 410 can be assembled. Executable programs 410 are used by program processor 406 to communicate with system manager 306 to control a fuel cell test.


Table 7 describes a set of setpoint commands which are used in a script to set the desired operating level for a device associated with a control tag. The parameters for each setpoint command are described in Table 7.

TABLE 7Setpoint CommandsCommandParametersDescriptionSet_flowTag#, Flow, RampValid only for control tags for flow controllers. The flow rate of thespecified flow controller (based on the tag#) is changed to thespecified flow rate. The flow rate is changed at the ramp rate. Forexample, if the tag No. = 583, Flow = 200 and Ramp = 25, then theflow rate of flow controller 132d is changed from its current flow rate to200 slpm at a change of 25 slpm/second (or other selected timeperiod).Set_stoichTag# andHelps to control the gas flow. That is, the gas flow is calculated usingstoichiometric ratiostoich and load current.Set_loadTag#, characteristic,Valid only for loadbox tags. Characteristic may be set out in volts (DCRampor AC volts), Hz (AC frequency) or amps (AC current). Ramp definesthe rate of change of the characteristic from the current control value.Set_temperatueTag#, Temp, RampValid only for control tags for temperature controls (i.e. heaters,coolers, etc.) The temp parameter defines the new target temperatureand the ramp field defines the desired rate of change from the oldtarget temperature to the new target temperatureSet_pressureTag#, Pressure, RampValid only for control tags for pressure controls. A pressure controller(not shown) provides distributed pressure control via individualpressure control devices (not shown) distributed in the fuel cell testingsystem.Set_equivalent_flowTag#, Flow and RampUsed for the calculation of flow. It calculates the proper gas flowsetpoint according to the load current and the stoich.Get_tag_valueTag#, ValueThis command is used to read tags.


Table 8 describes a series of commands that apply to system 100, including control system 140.

TABLE 8Test System Action CommandsCommandDescriptionStart_averagingIn some embodiments of the presentinvention, control system 140 is configured toaverage the operating level field for all datatags defined in the map file. This commandinitiates this averaging operation.Stop_averagingThis command terminates the averagingoperation. The results of the averagingoperation are recorded in a log file.Alternatively, the record for each data tag inthe mapped file may include an “Averagevalue” field, in which the average operatinglevel during the last averaging operation isstored.Enable_safetiesTells system to conduct safety check.Override_safetiesOverrides instructions to conduct safetycheck.E_stopEmergency stop of test.Clear_alarmsClears alarm messages.Log_data_nowThe records of all tags in the mapped file arerecorded in a log file.Log_data_subsetThe records of a set of tags previouslyassociated with the subset_no is added to alog file.Start_new_datafileThe log file used for the Log_data_now andLog_data_subset commands is closed and anew datafile is opened.Autologging_ONAutomatic logging of changes in tag records inthe mapped file to the log file is turned on.Autologging_OFFAutomatic logging of changes in tag records tothe log file is turned off.Voltage_control_modeThe loadbox has three operation modes:a constant current mode, a constant voltagemode and a constant power mode. These twocommands are used to switch the loadboxbetween these modes of operation.Current_control_modeThe loadbox has three operation modes: aconstant current mode, a constant voltagemode and a constant power mode.These two commands are used to switchthe loadbox between these modes of operation.


Table 9 describes a set of program flow commands that may be used to control the execution flow of a script.

TABLE 9Program Flow CommandsCommandParametersDescriptionIfTag, ConditionAllow a command or block to beexecuted only if the operational level ofa tag (which may be a control or data tag)meets a conditionAndIfTag, ConditionAllows a second mandatory Ifcondition to be added to an If commandOrIfTag, ConditionAllows an alternative If condition tobe added to an If commandWait_UntilTag, ConditionDelays execution of the scriptuntil the operating level of a tagmeets a conditionDelayTimeDelays execution of the script for thespecified timeVerifyInsures the test is in good condition,Safetiesand is ready to proceed to the nexttest stop.ElseAllows a command or block to bedefined for execution if the condition ofan If command was not true.EndIfEnds a block of commands executedin response to an If command.


Table 10 defines a set of block commands that may be used to define a block of commands. A block of commands are executed as a whole in response to an If, Elself, Wait_Until or other program flow commands.

TABLE 10Block CommandsCommandParametersDescriptionBeginBlockDefines the beginning of ablock of commandsEndBlockDefines the end of ablock of commandsExitBlockUsed within a block of commands.Moves execution to the firstinstruction after the end of the blockIncludeFilenameCauses the identified file to be readfrom a storage device and treated as if it wasliterally inserted in place of the command.


Table 11 defines a set of documentation commands that allows comments to be inserted into a script without affecting the execution of the script.

TABLE 11Documentation CommandsCommandParametersDescriptionRemPlaced at the beginning ofa line in a script. It results in the entireline being ignored by the scriptcompiler 404;Placed after anothercommand in a line of a script. It causesthe script compiler 404 to ignore therest of the line, including the ;command itself.PrintStringCauses the string to be displayedon an output device (such as a printeror display screen).Write_commentStringCauses the entire mapped file to berecorded in a log file and identifiedwith the string.DisplayTag#Causes the operating levelof the tag to be displayed.


As is well known, the script can be constructed using an automated program for making the script. A user can select a command and then the automated program will give a list of possible parameters and other information from which to choose. This helps to ensure that the command syntax is correct. Also, loops can be put in the script and can be repeat loops. Modification to the script can be made when the script is running, and there is no need to shut down or reload a script. When a sub-script is called, a new window will come up. When a test experiences alarm conditions, an alarm recovery script will automatically be activated.


Other variations and modifications of the invention are possible. All such modifications or variations are believed to be within the scope of the claims as appended hereto.

Claims
  • 1. A system for testing a fuel cell, the system comprising: (a) testing means having a control device for controlling a controllable condition of the fuel cell; (b) a user interface for providing a script language comprising a control command type having an operating level field for receiving a selected operating level of the control device, wherein a test script is writeable using the script language such that the test script includes a control command of the control command type, the control command being derivable from the control command type by inserting the selected operating level of the control device into the operating level field of the control command; (c) a compiler for compiling the test script to provide a test program; and, (d) a system manager for controlling the control device according to the test program.
  • 2. The system as defined in claim 1 wherein the compiler is operable to compile the test script to provide the test program by converting the selected operating level defined in the operating level field of the control command to a device operating level for controlling the control device to operate at the selected operating level.
  • 3. The system as defined in claim 1 wherein the testing means comprises a plurality of control devices for controlling a plurality of controllable conditions of the fuel cell; the script language comprises a plurality of device identifiers for identifying the plurality of control devices, each control device in the plurality of control devices being identifiable by an associated device identifier in the plurality of device identifiers; the control command type comprises a device identification field for receiving the associated device identifier for a selected control device; and, the test script is writeable using the script language such that the test script includes a plurality of control commands of the control command type; and each control command in the test script includes, (i) in the operating level field of the control command, the selected operating level of the selected control device, and, (ii) in the device identification field, the associated device identifier for the selected control device.
  • 4. The system as defined in claim 1 wherein the testing means comprises a plurality of control devices for controlling a plurality of controllable conditions of the fuel cell; the script language comprises a plurality of device identifiers for identifying the plurality of control devices, each control device in the plurality of control devices being identifiable by an associated device identifier in the plurality of device identifiers; the script language comprises a plurality of control command types, each control command type in the plurality of control command types having (i) an associated operating level field for receiving the selected operating level of a selected control device controlled by the control command, and (ii) a device identification field for receiving the associated identifier of the selected control device; and, the test script is writeable using the script language to include a plurality of control commands of the plurality of control command types such that each control command in the plurality of control commands defines, (i) in the operating level field of the control command, the selected operating level of the selected control device, and, (ii) in the device identification field, the associated device identifier for the selected control device.
  • 5. The system as defined in claim 4 wherein the plurality of control devices comprises at least one flow controller for controlling at least one of an anode gas flow and a cathode gas flow; the plurality of control command types comprises a set_flow control command type, wherein the operating level field of the set_flow control command type is operable to receive a selected flow control level, and the device identification field of the set_flow control command type is operable to receive the associated device identifier of a selected flow controller in the at least one flow controller; and, the plurality of control commands includes a set_flow control command of the set_flow control command type.
  • 6. The system as defined in claimed 5 wherein the script language further comprises a stoichiometric relational command type having a stoichiometry-defining field for receiving a selected stoichiometric ratio and a device identification field for receiving the associated device identifier for a selected flow controller; the test script is writeable using the script language such that the test script includes a stoichiometric relational command of the stoichiometric relational command type wherein the stoichiometric relational command is derivable from the stoichiometric relational command type by inserting (i) the selected stoichiometric ratio into the stoichiometry-defining field, and (ii) the associated device identifier for the selected flow controller into the device identification field; and, the system manager is operable to determine an associated flow control level for the selected flow controller based on at least one variable, the at least one variable including the selected stoichiometric ratio.
  • 7. The system as defined in claimed 6 wherein the at least one variable further includes a load current of the fuel cell.
  • 8. The system as defined in claim 4the plurality of control devices comprises at least one temperature controller; the plurality of control command types comprises a temperature control command type, wherein the operating level field of the temperature control command type is operable to receive a selected temperature control level, and the device identification field of the temperature control command type is operable to receive the associated device identifier of a selected temperature controller in the at least one temperature controller; and, the plurality of control commands includes a temperature control command of the temperature control command type.
  • 9. The system as defined in claimed 4 wherein the plurality of control devices comprises at least one load controller for controlling a load on the fuel cell provided by a load box; the plurality of control command types comprises a load control command type, wherein the operating level field of the load control command type is operable to receive a selected load control level, and the device identification field of the load control command type is operable to receive the associated device identifier of a selected load controller of the at least one load controller; and, the plurality of control commands comprises a set_load control command for designating the load level.
  • 10. The system as defined in claim 4the plurality of control devices comprises at least one pressure controller; the plurality of control command types comprises a set_pressure control command type, wherein the operating level field of the set_pressure control command type is operable to receive a selected pressure control level, and the device identification field of the set_pressure control command type is operable to receive the associated device identifier of a selected pressure controller in the at least one pressure controller; and, the plurality of control commands comprises a set_pressure control command of the set_pressure control command type.
  • 11. The system as defined in claim 4 wherein at least one control command type in the plurality of control command types further comprises an associated ramp field for receiving a ramp rate for changing the operating level of the selected control device defined in the associated operating level field; the test script is writeable using the script language such that the plurality of control commands comprises a ramp control command defining the ramp rate for changing the operating level of the selected control device defined in the associated operating level field.
  • 12. The system as defined in claim 4 wherein the compiler is operable to convert the test script to the test program by, for each control command in the plurality of control commands, converting the selected operating level defined in the operating level field of the control command to a device operating level for controlling the control device identified by the associated device identifier to operate at the operating level specified in the operating level field of the control command.
  • 13. The system as defined in claim 4 further comprising a script editor for writing the test script using the script language.
  • 14. The system as defined in claim 13 wherein, when a control command type is selected from the plurality of control command types, the script editor is operable to provide a plurality of possible parameters for defining a control command of the control command type.
  • 15. The system as defined in claim 14 wherein the plurality of possible parameters comprises a range of possible operating levels, such that when the control command type is selected from the plurality of control command types, the script editor provides the range of possible operating levels for selection of the selected operating level to be inserted into the associated operating level field of the control command.
  • 16. A method in a data processor for controlling a controllable condition of a fuel cell via a control device, the method comprising: (a) providing a script language comprising a control command type having an operating level field for receiving a selected operating level of the control device; (b) deriving a control command from the control command type by inserting the selected operating level of the control device into the operating level field of the control command; (c) writing a test script using the script language such that the test script includes the control command; (d) compiling the test script to provide a test program; and, (e) controlling the control device according to the test program.
  • 17. The method as defined in claim 16 wherein step (d) comprises converting the selected operating level defined in the operating level field of the control command to a device operating level for controlling the control device to operate at the selected operating level.
  • 18. The method as defined in claim 16 wherein a plurality of controllable conditions of the fuel cell are controlled via a plurality of control devices; the script language comprises a plurality of device identifiers for identifying the plurality of control devices, each control device in the plurality of control devices being identifiable by an associated device identifier in the plurality of device identifiers; the control command type comprises a device identification field for receiving the associated device identifier for a selected control device; and, step (b) further comprises inserting the associated device identifier for the selected control device in the device identification field to derive the control command from the control command type.
  • 19. The method as defined in claim 16 wherein a plurality of controllable conditions of the fuel cell are controlled via a plurality of control devices; the script language comprises a plurality of device identifiers for identifying the plurality of control devices, each control device in the plurality of control devices being identifiable by an associated device identifier in the plurality of device identifiers; the script language comprises a plurality of control command types, each control command type in the plurality of control command types having (i) an associated operating level field for receiving the selected operating level of a selected control device controlled by the control command, and (ii) a device identification field for receiving the associated identifier of the selected control device; and, step (b) further comprises deriving a plurality of control commands from the plurality of control command types by, for each control command in the plurality of control commands, inserting the selected operating level of the selected control device in the operating level field of the control command; and, inserting the associated device identifier for the selected control device in the device identification field.
  • 20. The method as defined in claim 19 wherein the plurality of control devices comprises at least one flow controller for controlling at least one of an anode gas flow and a cathode gas flow; the plurality of control command types comprises a set_flow control command type, wherein the operating level field of the set_flow control command type is operable to receive a selected flow control level, and the device identification field of the set_flow control command type is operable to receive the associated device identifier of a selected flow controller in the at least one flow controller; and, the plurality of control commands includes a set_flow control command of the set_flow control command type.
  • 21. The method as defined in claimed 20 wherein the script language further comprises a stoichiometric relational command type having a stoichiometry-defining field for receiving a selected stoichiometric ratio and a device identification field for receiving the associated device identifier for a selected flow controller; the test script is writeable using the script language such that the test script includes a stoichiometric relational command of the stoichiometric relational command type wherein the stoichiometric relational command is derivable from the stoichiometric relational command type by inserting (i) the selected stoichiometric ratio into the stoichiometry-defining field, and (ii) the associated device identifier for the selected flow controller into the device identification field; and, the method further comprises determining an associated flow control level for the selected flow controller based on at least one variable, the at least one variable including the selected stoichiometric ratio.
  • 22. The method as defined in claimed 21 wherein the at least one variable further includes a load current of the fuel cell.
  • 23. The method as defined in claim 19the plurality of control devices comprises at least one temperature controller; the plurality of control command types comprises a temperature control command type, wherein the operating level field of the temperature control command type is operable to receive a selected temperature control level, and the device identification field of the temperature control command type is operable to receive the associated device identifier of a selected temperature controller in the at least one temperature controller; and, the plurality of control commands includes a temperature control command of the temperature control command type.
  • 24. The method as defined in claimed 19 wherein the plurality of control devices comprises at least one load controller for controlling a load on the fuel cell provided by a load box; the plurality of control command types comprises a load control command type, wherein the operating level field of the load control command type is operable to receive a selected load control level, and the device identification field of the load control command type is operable to receive the associated device identifier of a selected load controller of the at least one load controller; and, the plurality of control commands comprises a set_load control command for designating the load level.
  • 25. The method as defined in claim 19the plurality of control devices comprises at least one pressure controller; the plurality of control command types comprises a set_pressure control command type, wherein the operating level field of the set_pressure control command type is operable to receive a selected pressure control level, and the device identification field of the set_pressure control command type is operable to receive the associated device identifier of a selected pressure controller in the at least one pressure controller; and, the plurality of control commands comprises a set_pressure control command of the set_pressure control command type.
  • 26. The method as defined in claim 19 wherein at least one control command type in the plurality of control command types further comprises an associated ramp field for receiving a ramp rate for changing the operating level of the selected control device defined in the associated operating level field; step (b) comprises deriving a ramp control command from the at least one control command type in the plurality of control command types by inserting the ramp rate for changing the operating level of the selected control device defined in the associated operating level field.
  • 27. The method as defined in claim 27 wherein step (d) comprises converting the test script to the test program by, for each control command in the plurality of control commands, converting the selected operating level defined in the operating level field of the control command to a device operating level for controlling the control device identified by the associated device identifier to operate at the operating level specified in the operating level field of the control command.
RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No. 10/244,609, filed Sep. 17, 2002 and a continuation of PCT Patent Application No. PCT/CA03/001117, filed on Jul. 24, 2003.

Continuations (2)
Number Date Country
Parent 10244609 Sep 2002 US
Child 10939989 Sep 2004 US
Parent PCT/CA03/01117 Jul 2003 US
Child 10939989 Sep 2004 US