Professional Documents
Culture Documents
Chapter 2 - 3
Chapter 2 - 3
LabVIEW
Dr. Minhhuy Le
606-A4, EEE, Phenikaa Uni.
huy.leminh@phenikaa-uni.edu.vn
1
Check Homework – Student practice
Homework: x = a*cos(2*pi*f*t - phi) + b
• Waveform chart in while/for loop
• XY graph: x-axis: time t; y-axis: x value
x = a*sin(2*pi*f*t + phi) + b
Solution:
t = 0:Tmax with resolution of 1/fs -> t = 0:1/fs:T
If using “i” -> divided by fs: ti = i/fs
Chapter 2
1. LabVIEW Programming Development
2. Loops and Waveform Graphs
3. Data Files and Character Strings
4. Important Programming Structures: cases, shift registers...
Display
Load data
Save data
PC
• Open/create/rep
lace file
• Write text file
• Read text file
• Close file
Homework:
• Program GUI interface
• Save data to file
• Read data from file
Minhhuy Le, EEE, Phenikaa Uni. 13