File 1110 - passing data to and fromfiles "Files can be binary, text~or spreadsheet
• WI~iteIReadLahV1EW,M!ea.sUFe;ments file (*,lvm)
Wri.tiog to $,lvm file
•
..
I~'~I
:S-ne' ~, "
Use of File 110 functions
• Openand close data.files
• Read fromand write to. spreadsheet-formatted files
• Move and renamefiles and'directories
",\' , .",' . - .. "':. . '- .. , '. " ..
• Change fllecharaoteristics
• Write-t» or readfrem LahVIEWllieaaui-ernent files
Local Variables
• Local Variables allow data to be passedbetweenperallel loops.
• A single control or indicator can, be read or mitten tofrom more than one location in the program
- Local Variables break the dataflow paradigm and. should be used sparingly
I~
rnJT~21 g;j
II!:ooD ContrOl n L@
~1UmI: ,~
fn:ICoOO'QI
HcIo, c:..uol ~~,~ ~I'O~ tleWdb> oM !'to,,,,
~~l>UCIfI;:
Ado"",~
Local Varia bles,
'1.. Right -cliek the variable and select Chan.ge'Io. Read .. This means that instead of writing data to a local variable, you read data already written h) the variable.
2.. Right .. dick on the stop button on thefront panel andchange themechanical action to Switch When Released ... Local variables-cannot store [atche91 Boolean data,
Creating an Array (Step 1 of 2)
From the Controls»Modern»Arr:ay, Matrix, and Cluster subpalette, select the Array icon.
Drop it on the front panel.
Array
'1.·LI<ie,C:_ lSel!!ct ~ Conti'll!...
Create an Array (Step 2 of 2) 1. Place an array shell.
2.. Insert data type into the shell (i.e, numeric control).
1D Atray View:t.ngJ\rl!tdtipl~ Elemeats;
2U Arra:y Viewing a SingleElement:
PINY
2U Array Viewing MultipleElements:
Array
How Do I Make Decisions in LabVIEW?
1. Case Structures
2. Select
(a)
(b)
Seq uenceStructu res
\ sequence structure contains one or moi ibdiagrams, or frames, that execute
~q uentia I order
~wo types of sequence structures·Flat Sequence structure