Etiquetas

Mostrando entradas con la etiqueta Labview. Mostrar todas las entradas
Mostrando entradas con la etiqueta Labview. Mostrar todas las entradas

miércoles, 16 de septiembre de 2015

Loading a capacitor and visualization using Labview Data Acquisition

Loading a capacitor and visualization using Labview Data Acquisition


Data acquisition and signal acquisition consists in sampling the real world (analog system) to generate data that can be manipulated by a computer or other electronic (digital system). It consists in taking a set of physical signals, convert them into electrical voltages and digitize them so that they can be processed on a computer.
A stage of conditioning, which adapts the signal to levels compatible with the element that makes the transformation to digital signal is required. The element of this transformation is the scanning module or card Data Acquisition (DAQ).

The data acquisition process of the physical world involves the following key steps:

1. Using a sensor / transducer suitable for the variable you want
measuring, which can detect and convert the physical variable into an analog signal voltage or electric current.

2. Conditioning of the electrical signal: In this stage related problems are resolved obtained signal, such as noise, amplitude and / or signal strength, the nonlinearity of the same, among others.

3. Translation of the electrical signal to, own computer binary language: This process is technically known as analog / digital (A / D).

4. Storage of data in digital form, can be stored in the computer's memory and then displayed on the screen or in another peripheral thereof.

NI DAQ 6008


Our practice will be to acquire information that brings us load condenser and using Labview and DAQ thanks to visualize data in a chart with all that information. The DAQ that will use the National Instruments NI 6008.

The National Instruments USB-6008 is a low-cost, multifunction data acquisition device (DAQ). When one or more channels on each port is Set to Either input or output, the port is locked into That Particular mode.

The DAQ 6008 has the following characteristics:
• 8 analog inputs (12 bit, 10 kS / s)
• Static 2 analog outputs (12 bits); 12 E / digital S; 32-bit counter
• Powered by the bus for mobility, integrated signal connectivity
• The OEM version is available
• Compatible with LabVIEW, LabWindows ™ / CVI and Measurement Studio for Visual Studio .NET




NI 6008




NI 6008 inputs/outputs



Connection types


Another thing to keep in mind to develop this practice is that connection must be used to connect the signal source to the input corresponding card.

Generally there are three ways to apply signals to a data acquisition card:
- Differential mode
- RSE mode: referenced single-ended
- NRSE mode: single-ended nonreferenced

For this practice will use the RSE (referenced single-ended) mode and has the characteristic that all input signals are referenced to the common ground reference (GND) and the reference signal and the card they are the same.

The RSE type is the least recommended unless:
- The voltage level is high (> 1V)
- The cable length is short (> 30 cm) and are shielded
- Low noise environment
- The signals applied are all referring to ground (GND)







Calculations of the capacitor charge

These are the calculations we have done to find our capacitor and load time.

Value of capacitor chosen 455.1 micro farad
Tau = RC
2,175 K ohm resistor.
t = 5 RC
t = 5 x 2.175 x 455.1 = 4,949 seconds. This will be the loading time of our capacitor.


The transistor chosen is a BD 139



We designed a scheme capacitor discharge





Plate capacitor charge with Proteus



Then we will, by Proteus, a plaque on the need to place our capacitor also will place the transistor, relay and resistance to perform the charging of the capacitor.





Schematic capture of Proteus




Layout view




3D view




3D view



This is the result








Labview program


For this practice we perform a calculation for the load time of our condenser and then to test them with the program we will do in Labview.


A time made calculations proceed to make the calculations SubVI load
Condenser.





We proceed to make the freight SubVI
Condenser.







We proceed to perform the discharge SubVI
Condenser.







SubVI of time calculations






Now we proceed to implement the program using LabVIEW subVI previously created.









Explain briefly how the program works

Once the program started introduce the values ​​of either time or instant v and selecting the loading lever see the calculated values ​​and the graph will show us the loading ramp capacitor. The values ​​shown in the display and graphics coincide with our previous calculations.

Both voltage and the capacitance or resistance value will be measured with a precision of Fluke brand.

domingo, 13 de septiembre de 2015

Speech Recognition with Labview

Speech Recognition


This practice is to design a program using LabVIEW in which through voice recognition user dictates aloud a certain number of words or phrases and get the program to recognize executes a command depending on the word or phrase has been said . The words recognized by the program and their order are:

Encender, starts the Windows Media Player with a song already selected previously
Apagar, stop the Windows Media Player
Racing, look up the word "Racing" in google
Metallica, look up the word "metallica" in google
Silla, look for the word "silla" in google
Search is directed to the home page of google
Gato, look up the word "gato" in google
Despiporre, look up the word "despiporre" in google
Descalzaperros, look up the word "descalzaperros" in google
Ha sonado chof, find the phrase "ha sonado chof" in google
Un muscalita con hielo, look for the phrase "un muscalita con hielo" in google






To start this practice in Labview start looking for a LabVIEW subVI called Initialize Speech Recognizer Labview designed by people in charge of recognizing the words we utter and detects voice recoimiento.

The words we have chosen to introduce a string.




This string will go connected to Initialize subVI Speech Recognizer.







To configure the search for google homepage will go to the menu, conectivity, Active X, invoke node and remove the box as shown in the images below.









To configure the Windows Media Player with a song will go to the menu, conectivity, active x, property node and remove the box as shown in the images below.










Here is how we stay the block diagram.






Thus While we remain in the block diagram.







This would be the view of the front panel.











Database with Labview

Database with Labview


This practice is to create and read a database Access Database using Labview and then display the data table in a chart, in addition to insert, delete or update data in the database that we created. In practice the graph representing the evolution of the temperature in a given period of time we will choose.





The first thing you have to do to make this practice is to create an Access database.







After creating the database, we have to go Labview and create a UDL file, which files are associated database with data binding.
The following video shows how you performed.







Once you associate the UDL file in the same folder we will place our saw, for the simple fact that if we want to export our lead or saw will always be associated.

We will have to create a SubVI to create the table of the database.









We also need to create a SubVI to read the table of the database.









The SubVI we've created the go getting into each of the events we've created.











Once we are in the program we see as we create the stepper table.
The first is to look for the file location.







Then we put the name to the table and columns.












Press the create button to create the table.







Press the read button to read the table.








Press the display to display the table in the graphic button.








Once the graphics displayed will press the reset button to restart the program.