Labview example

Embed Size (px)

Citation preview

  • 8/12/2019 Labview example

    1/5

    Lebanese University

    Faculty of engineering

    Labview steps:

    1- Add two numbers, multiply, subtract

    2- Change to indicator

    3- Compare data and visualize on led

    x < y?

    200.00

    x+y

    y 2

    x

    4- Generate random numbers between 0 and 1.5- For loop, oscilloscope, difference between chart scope and graph scopeGraph for data : vector by vector. chart for point by point.

    100

    Waveform Graph

    number: 0 to 1

    100

    Waveform Chart

    6- Characteristics of a chart scopeTo change the characteristics of the chart: right click on the scope, advanced,update mode

    7-

    XY graph (2 for loops+cluster+bundle)

    8- While loop, stop the loop after a fixed number of iterations. Stop after a stop buttonStop is found in Boolean menu

    9- Two signals on the same graph

  • 8/12/2019 Labview example

    2/5

    Use array: build array

    10-Calculate S=1+2+3+N, P=1*2*3*4*N.Right click on the for or while then add shift register to create a sn-1from sn.

    11-Take the data from while loop to scope, process raw of data: mean, variance, add, division....Processing of data: Block of mean, variance, histogram (analyze, mathematics.)See : Analyse mathematics

    12-Process a matrix of data: add values, mean, value at index, add a value on index to matrixSee : arrayz

    13-Save data to disk, txt file (append file or create new one)See file I/O, then save to disk

    14-Case (boolean, numeric, text...)See structures:

    Dialog box, Prompt the user, flat sequence.

    15-Popup menu, list menu

    16-Dialog for data entry, (Dialog, prompt user), Login by String comparison17-Generate a signal from a signal generator, plot the signal, Fourier transform, and see the

    harmonics.

    18-Generate a desired signal using a formula. Choose a formula. Change the name of the signalin the graph

  • 8/12/2019 Labview example

    3/5

    19-Component of a signal, probe, show Fourier transform with and without Components, mean

    and variance of signal (analyze - signal processing)

    20-Generate random signal (white Gaussian noise)

    Add white noise to signals, Do Fourier Transform, and PSD.

    21-Save signals to disk with parameters.22-Design in Labview. Multi page design23-Start and stop in the same program

  • 8/12/2019 Labview example

    4/5

    24-Create a sub-vi. Make a program with if then make the sub-vi25-Choose to plot one signal between two

    26-Signal acquisition from national instrument card, Processing data27-Save signals (waveform, save).28-Filtering of signals. Add a sine wave a noise then use band pass filter. Add 2 sines then

    extract one sine wave

    See how to merge signals in one wire. See express, signal manupilation.

  • 8/12/2019 Labview example

    5/5

    See also

    29-Choose a signal, calculate its parameters : statistics parameters (Skewness, mode, median,average, .) and its histogram. See express, statistics

    30-Comparison between a signal and constant, output is a signal. See express, arithmetic,comparison

    31-Play a waveform

    32-Make the Fourier transform of a signal. Make the calculation on results: Surface on energyband. Division of ratio between two frequency bands (HRV interpretation). Create a sub

    signal from signal (waveform). Add all components then make the interpretation.

    33-Choose file from prompt and dialog. See express input

    34-Formula, (Express). Polynomial of second degree resolution.35-Property node: on program, right click + insert property node +visible (then position)36-Rapport (express, output, report)37-Acquire speech signal and then process it

    By Dr. Mohamad KHALIL