Mindanao State University – Iligan Institute of Technology Department of Electrical, Electronics, and Computer Engineering A. Bonifacio Avenue, Avenue, Tibanga, 9200 Iligan City, Philippines www.msuiit.eu.ph www.msuiit.eu.ph !"#."#.22$.%0&"
Laboratory No.1
NAVIGATING LABVIEW IN PA PARTIAL FULFILLMENT FULFILLMENT OF THE COURSE REQUIREMENTS IN EE 179.1
Submmitted by: by: 'ohammanu( P. 'aayan
)ubmitte to* P(of. 'a(ven +. abian
I. IT!"DUCTI"
-abI+/ is a g(aphical p(og(amming envi(onment you can use to uic1ly an efficiently c(eate applications with p(ofessional use( inte(faces. 'illions of enginee(s an scientists use -abI+/ to evelop sophisticate measu(ement, test, an cont(ol system applications using intuitive icons an wi(es. In aition, the -abI+/ platfo(m is scalable ac(oss iffe(ent ta(gets an )s. In fact, -abI+/ offe(s un(ivale integ(ation with thousans of ha(wa(e evices an p(ovies hun(es of built3in lib(a(ies fo( avance analysis an ata visuali4ation fo( you to c(eate vi(tual inst(uments you can customi4e to you( nees. Because -abI+/ p(og(ams imitate the appea(ance an ope(ation of physical inst(uments, such as oscilloscopes an multimete(s, -abI+/ p(og(ams a(e calle vi(tual inst(uments o(,mo(e commonly, Is. Is have f(ont panels an bloc1 iag(ams. The f(ont panel is the use( inte(face. The bloc1 iag(am is the p(og(amming behin the use( inte(face. Afte( you buil the f(ont panel, you a coe using g(aphical (ep(esentations of functions to cont(ol the f(ont panel ob5ects. The coe on the bloc1 iag(am is g(aphical coe, also 1nown as 6 coe o( bloc1 iag(am coe. In cont(ast to te7t3base p(og(amming languages, li1e C!! an isual Basic, -abI+/ uses icons instea of lines of te7t to c(eate applications. In te7t3base p(og(amming, inst(uctions ete(mine the o(e( of p(og(am e7ecution. -abI+/ uses g(aphical ataflow p(og(amming. In g(aphical ataflow p(og(amming, the flow of ata th(ough the noes on the bloc1 iag(am ete(mines the e7ecution o(e(. 6(aphical p(og(amming an ataflow e7ecution a(e the two ma5o( ways -abI+/ is iffe(ent f(om most othe( gene(al3pu(pose p(og(amming languages.
II. E#UI$METS
$. Pe(sonal Compute( 2. -abiew )oftwa(e
III. E%E!CISE &'& Concept: Exploring a VI (. )"(* &. To ientify the pa(ts of an e7isting I. +. "+SE!(TI"-DISCUSSI"-!ESU*T
-abI+/ has two impo(tant use( winows namely the f(ont panel winow 8fig $.$ an the bloc1 iag(am winow 8fig $.2.
:igu(e $.$ Base on figu(e $.$ above, the(e a(e & inicato(s, $ cont(ol, $ (un button, $ connecto( pane, $ icon pane, an $ f(ee label in the f(ont panel winow.
:igu(e $.2 Base on figu(e $.2 above, the(e is $ cont(ol, & inicato(s, & constants, an 2 f(eelabels. In navigating an e7isting I, a use( can also use the conte7t help to lea(n mo(e about the items on the bloc1 iag(am winow. I have also ve(ifie that in the testing of secons b(ea1own I, the simulation wo(1s p(ope(ly.
C. C"C*USI"
Afte( oing this e7e(cise, I have lea(ne some impo(tant pa(ts;items of an e7isting I an I have lea(ne also that -abview has two impo(tant use( winows < the f(ont panel winow an the bloc1 iag(am winow. I. E%E!CISE &' Concept: Locating Controls, Functions, and Vis (. )"(* $. To lea(n to use the palettes an sea(ch fo( cont(ols, functions, an Is. +. "+SE!(TI"-DISCUSSI"-!ESU*T
In this e7e(cise, it is goo fo( me to iscove( that palettes of -abview a(e customi4able < I can view it in the way I want. In this e7e(cise, I iscove(e that I can 5ust use palettes to locate easily the functions an cont(ols I nee in my f(ont panel winow. I can also 5ust use palettes to locate easily the functions an cont(ols I nee in my bloc1 iag(am winow. Besies palletes, the(e a(e anothe( featu(es of -abview that a use( can use to ma1e his;he( wo(1 easily an those a(e the uic1 an (op featu(e an the global sea(ch featu(e. C. C"C*USI"
Afte( oing this e7e(cise, I have fulfille my ob5ective which is to lea(n to use the palettes an sea(ch fo( cont(ols, functions, an Is. In aition to that, I have also iscove(e that the(e a(e ama4ing featu(es of -abview that I can use to ma1e my wo(1 easily an customi4e. . E%E!CISE &'/ Concept: Using Tool Selection (. )"(*
$. To become familia( with automatic tool selection an the Tools palette in -abI+/. +. "+SE!(TI"-DISCUSSI"-!ESU*T
By using tools f(om the tool palette of -abview, the use( still will have an access to moification actions he;she can o li1e moifying the si4e of the wavefo(m cha(t, (enaming the nume(ic cont(ol, changing the value of the nume(ic cont(ol an othe(s. These moification actions a(e possible th(ough using the tools featu(es of -abI+/. A moification of these 1ins is shown in the fig $.# below.
:igu(e $.# C.C"C*USI"
Afte( oing this e7e(cise, I have become familia( with the automatic tool selection an the Tools palette in -abI+/. An mo(e impo(tantly, I have lea(ne that th(ough using these featu(es of -abI+/, I can o stuffs li1e changing the si4e of a table o( cha(t= (enaming a table o( cha(t, (epositioning items in the f(ont panel an bloc1 iag(am winow= changing the colo( of ce(tain items= an the li1es. I. E%E!CISE &'0 Concept: Dataflow (. )"(* &. To une(stan how ataflow ete(mines the e7ecution o(e( in a I. +. "+SE!(TI"-DISCUSSI"-!ESU*T
:ig $.% By using fig $.% an answe(ing the following uestions below, the use( will be able to fin out how ata flow ete(mines e7ecution o(e(. $. /hich noe e7ecutes fi(st> Is the(e any epenency between the :ile ?ialog function an the )imulate )ignal +7p(ess I> The noe that will e7ecute fi(st will be the file ialog bo7 o( the simulate signal e7p(ess. :(om the • figu(e $.%, it can be fin out that the(e is no epenency between these noes. 2. /hich noe e7ecutes last> The last noe to e7ecute is the )imple +((o( @anle( I •
#. Because a g(een wi(e connects the :ile ?ialog function to the T?') :ile iewe( I, can the T?') :ile iewe( I e7ecute befo(e the T?') Close function> •
o. The T?') :ile iewe( I cannot e7ecute befo(e the T?') Close function because the yellow e((o( wi(e connecting the T?') Close function an the T?') :ile iewe( I fo(ces ata epenency. emembe(, the ata to all inputs of a noe must be available befo(e a noe can e7ecute. The(efo(e, the T?') :ile iewe( I must (eceive ata f(om both the g(een Boolean wi(e an the yellow e((o( wi(e befo(e the I can e7ecute
%. @ow many noes must e7ecute befo(e the T?') /(ite function can e7ecute> •
Th(ee noes must e7ecute befo(e the T?') /(ite function can e7ecute* :ile ?ialog, T?') pen, an )imulate )ignal.
&. )houl a well3esigne bloc1 iag(am flow in a pa(ticula( i(ection> •
es. A well3esigne bloc1 iag(am typically flows f(om left to (ight.
:igu(e $.& ". By using figu(e $.&, which e7p(ess I e7ecutes last > •
+ithe( the )tatistics +7p(ess I o( the /(ite to 'easu(ement :ile +7p(ess I e7ecutes last o( they e7ecute in pa(allel.
:igu(e $." D. Esing figu(e $.", which e7p(ess I e7ecutes last > •
The /(ite to 'easu(ement :ile +7p(ess I e7ecutes last.
:igu(e $.D F. In figu(e $.D, which Tone 'easu(ements +7p(ess I e7ecutes last> •
+ithe( one of the Tone 'easu(ement +7p(ess Is can e7ecute last.
C. C"C*USI"
Afte( oing this e7e(cise, I have lea(ne how ataflow ete(mines the e7ecution o(e( in a I. A bloc1 iag(am noe e7ecutes when it (eceives all (eui(e inputs. In a noe e7ecution, an output ata is p(ouce an that ata is passe to the ne7t noe in the ata flow path. The movement of ata th(ough the noes ete(mines the e7ecution o(e( of the Is an functions on the bloc1 iag(am.
II. E%E!CISE &'1 Simple ! VI (. )"(* &. To c(eate a simple I that acui(es, analy4es, an p(esents ata. +. "+SE!(TI"-DISCUSSI"-!ESU*T
The input fo( the I that we will esign in this e7e(cise is an analog channel of sine wave ata. The outputs inclue a g(aph of the sine ata, a file that logs the ata, an an inicato( that isplays the ave(age ata value. In this e7e(cise, it is a plus to note an (emembe( the following (emine(s fo( the p(og(am a(chitectu(e of the I that we will esign. Ese the D(# (ssistant to acui(e the sine wave f(om the ata acuisition evice. Ese the Statistics E2press I to ete(mine the ave(age value of the sine wave. Because this signal is cyclical, you coul also use the Cycle Ave(age option in the Amplitue an -evel 'easu(ements +7p(ess I to ete(mine the ave(age value of the sine wave. Ese the 3rite to Measurement 4ile E2press I to log the ata an use the 3aveform )raph to isplay the ata on the f(ont panel winow.
:igu(e $.F. ?ata flow of the I that we will esign
:igu(e $.9. +7pecte f(ont panel as esc(ibe in steps &3" of e7e(cise $3&.
:igu(e $.$0. +7pecte bloc1 iag(am as esc(ibe in steps D3$% of e7e(cise $3&.
:igu(e $.$$ As we can see in figu(e $.$$, the e7pecte (esult that is esc(ibe in the testing step of e7e(cise $3 & is satisfie.
C. C"C*USI"
Afte( oing this e7e(cise, I have lea(ne how to esign an c(eate a simple I that is capable of acui(ing, analy4ing, an isplaying;p(esenting ata. III. !E4E!ECES
$. LabVIEW TM Core 1 Course Manua , 20$2 +ition, ational Inst(uments, 20$2. 2. LabVIEW TM Core 1 E!er"#ses Manua , 20$2 +ition, ational Inst(uments, 20$2.