Вы находитесь на странице: 1из 103

ESILab

2015/2/11

Exercise 1
Exercise 2
Exercise 3

YouTube LabVIEW

LabVIEW ()
http://taiwan.ni.com/labview-resource

LabVIEW Pro ()
http://www.labviewpro.net/

Ctrl + h/ Find example ()


Ctrl + h : Help
Ctrl + b : block diagram
Ctrl + : block diagram
Ctrl + z:
Ctrl + r: Run code
Ctrl + c:
Front PanelCtrl + +:

Silver/Boolean/Stop Button
Silver/Graph/Waveform Chart (
history data)
Silver/Numeric/Numeric Control
Silver/Numeric/Thermometer
2.

1. block diagram
/programming/comparison/greater
boolean

Greaterrandom numeric
Front Panel
Silver/Graph/Waveform Graph(
)
wait/
/create/constant 100 (
delay100ms)
Shift + /


Data Operation >> Make Current Value Default

Which one will be calculated first? X+Y or X*Y

Answer: Whenever the data are available, the calculation will be done.
The dataflow has nothing to do with the direction (e.g. left to right).
Data flow: which one will be calculated first?

Loop (while, for) Decision-making (case, select)

Program

Miscellaneous (comments,
Input/Output
build-in functions, data formats)
int main (void)
{
int counter = 5;
long factorial = 1;

while (counter > 1) 5x4x3x2x1=?


{
factorial *= counter--;
}
printf("%d", factorial);
return 0;
}
//Using for loops to add numbers 1 - 5
int sum = 0;
for (int i = 1; i < 6; ++i) {
sum += i;
1+2+3+4+5=?
}
int main ()
{
int a = 100;
if( a < 20 )
{
printf("a is less than 20\n" );
}
else
{
printf("a is not less than 20\n" );
}
printf("value of a is : %d\n", a);
return 0;
}
int main ()
{
char grade = 'B';
switch(grade)
{
case 'A' :
printf("Excellent!\n" );
break;
case 'B' :
printf("Well done\n" );
break;
case 'F' :
printf("Better try again\n" );
break;
default :
printf("Invalid grade\n" );
}
printf("Your grade is %c\n", grade );
return 0;
}
Click left mouse button twice
Keyboard -> Control
File
Device (like myRIO) -> Analog input, Digital input
Screen -> Indicator
File
Device (like myRIO) -> Analog output, Digital
output
Zoom in or Zoom out (ZoomIt
)
http://technet.microsoft.com/en-
us/sysinternals/bb897434.aspx
On a pinned Functions palette, right-click an
object and select Add Item to Favorites from
the shortcut menu. In the Category
(Standard) and Category (Icons and
Text) formats, you also can expand a palette
to display a subpalette, right-click the title of
the subpalette, and select Add Subpalette to
Favorites from the shortcut menu.
Select the Favorites category. Notice that the
items you selected now appear in
the Favorites category.
File/create project/blank project/add
()
runtime engine

ipad data dashboard app(free)

Third Party Webservice

Вам также может понравиться