air pollution is caused in large part by vehicles due to the burning of fossil fuels that emit pollutant gases such as no , co , so2 , and co2 [ 1 , 2 ] .
diesel has been one of the most used fuels in internal combustion engines for more than one century .
it is due to its high availability , competitive prices , and high energy density .
diesel is used , for example , in urban transport , cargo transport , light - duty vehicles , agricultural machinery , ships , and electricity generation .
the biodiesel utilization is an alternative to reduce the pollutant emissions from vehicles with internal combustion engines that run on diesel .
these react with a short chain alcohol in the presence of a catalyst , no matter whether it is acid , basic , or enzymatic , producing a monoalkyl esters mixture of fatty acids [ 7 , 8 ] .
therefore it may be replaced partially or completely , since the currently applied technology does not require major changes for its use .
biodiesel has become more important worldwide , and it has shown rapidly industrial growth as an alternative fuel instead of diesel . therefore , it is necessary to measure the respective emissions to determine the emissions decrease regarding the fossil fuels .
international governments and organizations are currently introducing new regulations that establish more strict emission limits to reduce the greenhouse gases emissions [ 1012 ] . as a result
, it is essential to have efficient systems that measure the emissions from internal combustion engines , as well as regulate them .
the measurement systems for emissions measurement of internal combustion usually use specialized analyzers that work under standardized methods .
the implementation of these systems is based on taking a gas sample that is produced in , for example , boilers , engines , and industrial ovens .
the sample passes through the electrochemical cells analyzer , obtaining the concentration of each of its components and defining its own quality . in this way , if it is carried out with the relevant current regulations is established , at the same time ensuring the equipment is in proper conditions with its resulting fuel saving .
there are several types of systems in the market for emissions measurement of internal combustion ; these may also be fixed or portable depending on their implementation .
conventional systems have several disadvantages , among them we emphasize the high costs purchase from us $ 2.000 to $ 20.000 , strictness , and impossibility of being scalable [ 14 , 15 ] .
it means that these systems may be only used for certain applications , without having the facility and flexibility to adapt them to other required uses .
currently , the systems based on the virtual instrument have been used as an alternative to the conventional systems for emissions measurement .
a virtual instrument is a concept that includes software and hardware systems , using a computer , that it replaces a measurement instrument and monitoring in the real world .
every piece of software and hardware that performs this function is called virtual instrument ( vi ) .
when a commercial system is used , in most of the cases the virtual instrument concept is performed in an object - oriented programming language .
the new scientific instrument supports the innovation and development of systems based on virtual instrument .
the virtual instrument advantages are the enclosed adaptability that is included in the software and hardware and the reduction of cost for acquisition channel compared to the conventional instruments of rigid hardware of which function is determined by the manufacturer and also the easiness to be customized accordingly to the specific needs of each user and the programming language use .
virtual instruments integrate nonexclusive operation hardware and powerful software , obtaining as a consequence an instrument of a scalability architecture .
the virtual instrument implementation has been recently suggested for emissions measurement of internal combustion gases .
it is due that the measurement is currently performed by using stand - alone modular analyzers , used , and specialized , providing information about the gases emitted from motor combustion .
hence , virtual systems have been developed to measure and monitor the co concentration in the gases emitted by vehicles .
national instruments developed a virtual instrument for the emissions measurement generated by internal combustion engines .
this instrument is based on the international emissions standards , in particular , the euro 4 and epa .
these agencies specify the total amount of pollutants that an internal combustion engine must emit to the atmosphere .
these emission factors units are defined in general as gram per mile . in this work , a virtual instrument for the measurement and monitoring of emissions ( viem ) , based on the labview 2010 virtual programming platform , was developed .
viem is synchronized with the sensors , data acquisition device , and signal conditioners to measure and register in real time the emissions of o2 , no , co , so2 , and co2 .
the viem programming , the electronic schematics diagrams used for the signal conditioning sensors , and the sensors characterization of o2 , no , co , so2 , and co2 are presented as results .
four main devices were involved in the system hardware configuration : firstly , the o2 , no , co , so2 , and co2 sensors , the characteristics and operating ranges for each of which are shown in table 1 ; secondly , the signal conditioners and amplifiers for each sensor ; thirdly , the data acquisition device ( daq ) ; and , lastly , the personal computer that runs the virtual instrument software , as is shown in figure 1 .
digital signals are transmitted to the laptop computer sony vaio , vgn - cr190 intel core duo t7100 @ 1.8  ghz model , using windows 7 operation system .
the infrared sensor works on the basis that is known as the nondispersive infrared analyzer ( ndir ) , and it is used to detect the presence of carbon dioxide to a volume of 100% .
it is possible to determine the co2 concentration using an infrared source with a specific filter , in which it is installed in the optical - gas cavity .
signals process involves the linearization and compensation in the temperature , using algorithms in the system software .
the infrared gas sensor uses a low - frequency flash lamp drive that is controlled by an excitation circuit .
the active pyroelectric is sensitive to the changes in the infrared wavelengths that are usually absorbed by the gas , passing between the transmitter and receiver .  
electrochemical sensors use a solid catalytic electrolyte making electrons flow of a gas cell sample to a gas cell reference possible . in practice , catalytic coated ceramic materials , for example , zro2 , remove the reference cell that contains a high concentration of o2 , as well as an electric sample .
when the temperature increases , the electrolyte enables the oxygen ionic components transfer from the reference cell to the sample cell .
the surface of the electrolyte has a special electrocatalyst layer catalyzing the transfer processing , and it works as an electrode to attract the released electrons .
the ions that move from the reference side to the lateral release electrons of the sample on this surface are forced into the equilibrium . however , since the sample is replenished continuously , an ongoing electrons flow is induced through the measurement load resistance .
thereafter , the electric current is used to deduce the oxygen concentration of the electric gas sample , as is depicted in figure 3 . because the electrons contain a finite catalytic activity
, it is necessary to establish a limit to the diffusion speed of objective gas in the sensor , guaranteeing that gas reacts properly .
it is performed through a barrier taking a shape of small hole or capillary located on the sensor cover , as is shown in figure 4 .
integrated circuits are used for conditioning and amplifying the signal that the sensors send when the amount information or gas concentration is registered .
registered voltage vo is of 2.435  v when showing 1% of oxygen ; this is the minimum concentration that sensor can detect .
it means that data acquisition device ( daq ) processes increments that are equivalent to 0.065  v/1% of o2 .
v65  mv/%o2%.figure 5 shows the integrated circuit diagram used for conditioning and amplifying the signal provided by the o2 sensor .
registered voltage vo is of 2.508  v when showing 1  ppm of no ; this is the minimum concentration that sensor can detect .
it means that daq processes increments that are equivalent to 0.004  v/1  ppm of no .
equation ( 2 ) was used to calculate the output voltage : ( 2)vo=2.5  v+8  mv / ppmno  ppm.figure 6 shows the integrated circuit scheme used for conditioning and amplifying the signal provided by the no sensor .
registered voltage vo is of 2.5047  v when showing 5  ppm of so2 ; this is the minimum concentration that sensor is able to detect .
it means that daq processes increments that are equivalent to 0.00476  v/1% of o2 .
equation ( 3 ) was used to calculate the output voltage : ( 3)vo=2.5  v+0.952  mv / ppmppm  so2.figure 7 shows the integrated circuit scheme used for conditioning and amplifying the signal provided by the so2 sensor .
registered voltage vo is of 2.5039  v when showing 1  ppm of co ; this is the minimum concentration that sensor can detect .
it means that the daq processes increments that are equivalent to 0.00392  v/1  ppm of co. equation ( 4 ) was used to calculate the output voltage:(4)vo=2.5  v+3.92  mv / ppmco  ppm.figure 8 shows the integrated circuit scheme used for conditioning and amplifying the signal provided by the co sensor . 

it allowed observing the sensitivity of the sensor that oscillates between 0 and 100% of the volume concentration of carbon dioxide . 

figure 10 displays the integrated circuit scheme used for conditioning and amplifying the signal provided by the co2 sensor .
this section shows the programing description of the main blocks that are part of the virtual instrument for emissions measurement that was developed in labview 2010 platform . in the figures ,
the vi counts the tests that have been performed to organize the files of the experiment .
it is performed through the sub - vi test counter , which it saves in a text file ( .txt ) with a value that starts at zero and increases to 1 for each viem run .
the vi configures the set menus and toolbars using a property - node ; these will be shown during the viem running . in figure 12
is observed the programming block of the configuration window . while loop 1 runs routines for the configuration and test running .
the sub - vi  direction by testing  creates the direction and file name containing the samples of test that is in running process .
the function sub - vi  write to spreadsheet file  creates a new file for each registered variable ; this will be shown using a  testing
the abovementioned is found in the  event structure  module , which it enables to synchronize with the computer clock using a time out of 2.00  ms . while loop 1 keeps in ongoing running . in figure 13 , the programming block of while loop 1 is exposed . while loop 2 is used to receive the sensor signals .
 likewise , it configures the storage inputs directions for different variables of measurement displaying them through numerical indicators of  double  type .
sub - vi acquisition is used for data collection of the sensors using a daq assistant express vi , by which it is configured as a , nondifferential analog input to a voltage range from 10 to 10 volts . the virtual instrument  acquisition 
data are processed for its storage using a function sub - vi write to spreadsheet .
it is performed for a maximum amount of 8 sensors , and data flow is monitored using the  flats sequence  structure to avoid overload information in the acquisition time .  
graphical programming in labview 2010 uses the programming model for data flow in contrast to the programming based on text , basing its programming in the flow control model . instead of typing complicated text lines , risking making syntactic and logistics mistakes , labview 2010
in addition , for most users , including the advanced users it is easier to view and read the graphical programming compared with the text programming .  
the main operation of the measurement system for gas emissions of internal combustion is to measure the gases concentration of o2 , no , co , so2 , and co2 , for which it uses electrochemical and infrared sensors .
sensors measure the emissions that are generated from a diesel engine that runs with diesel - biodiesel blends .
the flow is firstly conducted to an oil separator and finally to a heat exchanger .
then , the gases are conducted to an exhaust manifold , where the different outputs are connected to the sensors to meter readings in real time , register and storage data provided by the signal conditioners devices and processed through the virtual instrument in the pc .
there is the versatility to meter readings every 15 and 20 seconds , as well as 1 and 5 minutes , to create a database .
other virtual instrument applications are used in monitoring stations , chemical stations , steel industries , restaurants , power stations , combined cycle , internal combustion diesel engines , gasoline , natural gas , and departments of motor testing vehicle .
they represent an option for the utilization of the viem through its redesign and adaptation to work as a portable system . 

figure 17 shows the graphical interface that virtual instrument ( viem ) provides at the moment to select the configuration option .
the software enables determining the testing time , the acquisition data time , and the option to start the established tests . 

figure 18 shows the graphical user interface , where measurements can be seen in real time of o2 , no , co , so2 , and co2 gases , temperature , fuel consumption , and revolutions per minute ( rpm ) . 

figure 19 highlights the emissions measurement , temperature , rpm , and fuel consumption results .
the user is able to select the running results to plot them in a graph .
in this work a virtual instrument based on the labview 2010 platform was developed to measure and monitor the emissions such as o2 , no , co , so2 , and co2 from internal combustion engines that run on gasoline , diesel , or diesel - biodiesel blends .
it is possible to modify its graphical interface and include new operations , for example , sensors that measure other emissions depending on the type of concentration and pollutant volumes , according to the user needs .
the viem is a useful tool for the emissions measurement that could be used by the industry sector and motor vehicles , as well as its use in the research and academics .
it is recommended to add more sensors to the viem to measure a wider range of gases as well as some sensor or analyzer to measure in the order of parts per million .
 the gases emissions measurement systems in internal combustion engines are strict and expensive nowadays . for this reason 
 , a virtual instrument was developed to measure the combustion emissions from an internal combustion diesel engine , running with diesel - biodiesel mixtures . 
 this software is called virtual instrument for emissions measurement ( viem ) , and it was developed in the platform of labview 2010 virtual programming . 
 viem works with sensors connected to a signal conditioning system , and a data acquisition system is used as interface for a computer in order to measure and monitor in real time the emissions of o2 , no , co , so2 , and co2 gases . 
 this paper shows the results of the viem programming , the integrated circuits diagrams used for the signal conditioning of sensors , and the sensors characterization of o2 , no , co , so2 , and co2 . 
 viem is a low - cost instrument and is simple and easy to use . besides 
 , it is scalable , making it flexible and defined by the user . 
1. Introduction
2. Hardware System Configuration (Hardware Details)
3. Software Programming for Virtual Instrumentation Development
4. Applications
5. Conclusions