Title: Data ???
1Data ???
??? ??? ?? ??? ?????.
2A. ? ?
- LabVIEW Data Acquisition ?????? National
Instruments ??? ?? ??? ??? ? ?? VI? ?? ??. - ????? DAQ ???? A/D ??, D/A ??, I/O(??? ??/??),
???/???? ? ? ??? ??? ??? ????. - LabVIEW DAQ VI? ???? ??? ?? DAQ ????? ???? ??.
?? VI?? ?? ?? NI-DAQ ????? ????.
??? ?? ??? ????
3- DAQ ???
- ???? ?? ??? ??? ????? ???? ?.
- ??? ???? ??? ??? DAQ??? ?? ??? ? ???, ??? ????
??? Signal conditioning accessory? conditioning
?? ??. - ?????? ???? ??, ??, ???? DAQ???? ??.
- ???? DAQ ??? ??? ??, PCMCIA? ?? ??? ??? ??? ?
???, remote ??? ?? ? ??? ??. - Analog ??
- DAQ board? Analog ??? ??? ? mode(single-ended?
differential ??), resolution, range, sampling
rate, accuracy, noise ?? ???? ???? ??. - Single-ended ??? ?? ????? ???? ????.??? ?? ??? ??
?(1V??), ?? ?????? DAQ??? ??? ?? ?(10 ft(3m) ??),
?? ?? ??? ?? ????? ?? ?? ? ??. - ??? ? ??? ???? ???, differential ??? ??. ?? ???
GND? ?? ?? ?? potential? ?? ? ???, ?? ??? ????
common-mode noise? ??? ? ??.
4- Range? ADC? ????? ??? ??? ?? ????. DAQ??? ?? ???
??? ? ????, ?? ??? ??? ADC? ??? ????? ??? ????
????? ??.
- Resolution? ADC ???? ???? ??? ???? ?? ?.
- resolution? ???? ???? ??? ???? ?? ? ??, ?? ?? ???
??? ???. - ?? ??? 3Bit ADC? sine?? ??? ??? ?? ?.
- 3?? ???? ?? ??? 23?? 8? ???. 000?? 111??? ??? ???
??? ??? ????. - 16 bit? resolution? ?? ???, ADC? ?? ?? 8?? 65,536
(216) ??? ?? ??? ??? ???? ??? ?? ? ??.
5- Gain? ??? ???? ?? ??? ??? ?? ? ??.
- Gain? ??? ????, ADC? ?? ??? ????? ?? ? ???? ??
??? ??? division? ADC? ??? ? ??. - ???, 3-bit ADC? ?? ?? 010V? ????, ??? ??? 0??
5???? ??. gain? ??? 1??, ADC? ?? ???? 8?? 4??
division? ??. ???? ?? ??? gain? 2? ????, ADC?
8?? division? ?? ????? ??? ?? ?? ?????. ??? 05V?
?? ??? ?? ??? ?? ???, ? ??? 2?? ??? 5V ??? ???
ADC? ???? 10V ??? ?? ??.
6- DAQ board? ??? range, resolution, gain? ?? ???
the smallest detectable change(?V)? ????. ???? ?
change? ??? ?? 1 LSB? ???? code width? ???.
smallest detectable change? ?? ??/(gain2resolutio
n in bits) ? ?? ??. - ???, ?? ?? 010V, gain1? 12-bit DAQ??? 2.4 mV???
??? ? ??, ?? ??? DAQ??? ?? ??? -10V10V??
4.8mV??? ??? ? ??. - Sampling rate? A/D ??? ??? ?? ?????? ????.
- Sampling rate? ??? ??? ?? ?? ?? ?? ???? ??? ?
????, ?? sampling rate ?? ??? ??? ?? ???? ??? ?
??. - Analog ??? ??? ???? ??? ??? ??? sampling??? ??.
7- ???? sampling? ??? ?? sampling? ? ??.
- ?? ??? ?? ???? ?? ? ?? ??(alias ?? ?).
- Nyquist Sampling ??? ???, ?? ??? ?? ??? ?? 2? ??
??? sampling?? ??. - ??? ??? ??? ??? ??? ???? 20kHz. ???, ??? ???
???? 40 kHz ?? sampling? ? ?? DAQ ??? ??. - Averaging. random noise? ??? ??? ?? ???? ??? ???
noise? ???? ? ??. - Noise? ??? ?? ??? ?? ????.
- 100?? ???? ???? ??? noise? 1/10?? ????
8B. LabVIEW? Analog ?? VI ??
- ? ???? ??? DAQ??? ????, ??? ? ??? ??.
- Analog ?? VI? Easy ???? ??(Easy AI) ??,
Intermediate ???? ?? ??, Advanced ???? ?? ??,
Utility ???? ??. - ??? Analog ??, ????? ?.???? ???? ???.
9- ???? Easy I/O? Intermediate VI? ??.
- Advanced VI? ??? ?? NI-DAQ ???? ???????, Utility
VI? Intermediate VI? ???? ???? ????? ???? ??. - Easy I/O VI? ???? ???? ??, ???? ??, ??? I/O
counter/timer ??? ? ? ??? ?? ?? VI? ???? ??. - ??? ??? DAQ, ??? I/O, counter/timer??? ??
LabVIEW? DAQ? ????? ? ? ????. - Easy I/O VI? ??? ?? ?? ??? ???? ??. VI? DAQ ???
????, dialog box? ?? ??? ????. Dialog box??? VI?
????? ??? ??? ? ??. - Easy I/O VI? ????, Intermediate VI? ????? ??? ?
?? ???? ???, ???, ??? ?? ??. - Intermediate VI? external timing? ?? Easy I/O?
??? ?? ??? ??. ? VI?? ?? ??? ?? VI? ???? ???
??????? ??? ? ??
10- Easy ???? ?? VI ??.
- ??? ???? ????? ?? ???? ??.
- ??? channel? device?? 1?? ??? sample? ??. High
Limit? Low Limit? ??? ??? ??? ??. ??, ??? ?? ???
???? DAQ??? Gain? ??? ??. - channels ???? ??? ??? ?? ? 1?? ??? ???. ?? ????
??? ??? ??? ???? samples ??? ??. ?? channels?
07? ???? ?? 0, 1, 2, 3, 4, 5, 6, 7? ????? ????.
11- 1?? ???? ??? ??? ??? waveform(??? ?? ?? ?? ?? ?)?
???. ? ?? ?? waveform ??? ???? - Number of samples? waveform? ??? ???? ?? ??.
- ?? ?? ?? waveform ???? ??? ???? ???? ??? ???? ?
??. ???? ?? ?? ???? ??? ??? ? ?? ??? ???? ????. - Sample rate? ???? ?? ???? ??? ???? ??.
- 1000 samples/sec? ???? ? ?? 1000?? ???? ???.
- Actual sample period? sample rate? ???? ? ?? ? ??
??? ??? ??. - sample rate? 1000 samples/sec?? ? ?? ? 1/1000
0.001?? ????.
12- ? number of samples 100, sample rate 100
- ???? ???? ??? ??? ?? number of samples? ??100???.
- ? ??? ????? ??? (one sample /sample rate) 1/100
0.01 sec? ??. - ??? actual sample period ?? ???? ?? 0.01? ??. ?,
???? ?? ??? ????? 0.01 x 100 1?? ????.
13- channel ???? ??? ?? ??? waveform? ???.
- ???? ??? ?? ??? ??? 2?? ??? ????.
- ?? ???? ? ???? ?? ????, ????? ??? ????.
- Number of samples/ch? ? ?? ? ??? ??? ?? ??.
- Scan rate? ? ?? ? ???? ?? ???? ??? ?? ??.
14??) ?? ???? ???? ??
- ?? ???? ???? ??? DAQ ??? ??.
- ?, ??? ?? ?? ??? ???? ??? ??? ???? ???? ??? ????
??? ??? ??. - 1.?? ??? ?? ??? ?? ?? ??? DAQ ??? 1? ??? ??. (???
Referenced single-ended ??? ??). - 2.??? ??? ?? ?????? ??? ?? ??.
- AI Sample Channel.vi? Analog Input ???? ??.
- NI-DAQ utility?? device 1? ???, device ??? ???
device number? ????.
15- 3.Power???? ON??? ?? VI? ??.
- ?? ??? ????, Easy ???? ?? VI ??? ????? ?? ??? ??
??? ????? ??? ??. - Device? 0? ???? ??? ??? ??.
- 4. ??? ?? ??? ?? ???? ????.
- ??? ??? ?? ??.
- VI? ???? ?? ??? ??? ?? ???? ?? ??.
- ??? ??? ??? ??? ???? ?? ??.
- 5.?? ??? Wait Until Next ms Multiple ??? ???? 1??
1?? ???. - ??? ?? ??, VI? ?? ???? ???? ???.
- LabVIEW? ??? ?? ????? ???? VI? ??? ?? ?? ?????
??? ???? ???. ????, VI? ?? ??? ??? ???? OS ???(
??? ??, ??? ??, ???? ?? ?)? ???? ?? ?? ??. - Tick Count??? ????, ???? ?? ???? ??? ? ??.
- Â 6.VI? Voltmeter.vi? ???? VI? ???.
16??) ??? 1?? Waveform???? Waveform ???? ????
- Easy ???? ?? VI ??? ???? ?? ??? ???? ?? ???? ????
VI? ???.(?? ?? CH1? sine ?? ??) - ??? ?? ??? ??? ?? ?????? ??.
- of Samples? ??? ??? ?? ??. Samples/Sec?
??? ??? ??.
17- 2.??? ??? ??, ??? ?? ??? ??? ?? ????, VI? ??.
- ???? ???? waveform? ???.
- samples/sec?? of samples ?? ??? ??. ????
???? ???? of samples?? 1000??? 1000?? ???
???? ???? ??? ???. - ? ??? ???? ??? samples/sec??? (1/10,000)? ???
0.0001?? ??. ??? ?????, 1000?? ??? ???? ???? ????
1000 samples /(10,000 samples/sec) 0.1 sec???
???? X?? ????. - 3.VI? Waveform. vi? ???? ???.
18(No Transcript)
19(No Transcript)
20(No Transcript)
21C . ???? ?? ??
- ???? ?? VI?, DAQ??? ?? ?? ?? ?? ??? ??.
- ?? ??? ???? ??? ???? ?? ?? ???? ???? ???, ????
??? ??? waveform? ???? 2?? ???? ????. - ???? ?? VI? ???? ?? VI? ???? ??? ?? ??
- ???? ?? VI? ??? ???? Easy ???? ?? VI??,
Intermediate ???? ?? VI??, Advanced ???? ?? VI??,
Utility ???? ?? VI ?? ?? ???? ??.
22- Easy ???? ?? VI??
- DAQ??? ????? ? ? ????? ?? ????.
- ??? ??? ??? ??? ???? ?? VI? ??? ? ??.
- ?? VI? ???? ????, ? 1?? ????? ???? ??? ? ??.
- Easy ???? ?? VI??? VI? ?? ??? ??? ?? ??? ???
????. ?, ??? ??? ??? DAQ??? ???? ? ????, ?? ??
????? ?? ? ??. - ??? ??? ?????, Utility ???? ?? VI??? VI? ??.
- ??? voltage? ??? channel? ??.
- ? ??? ?? ??? ?? ? ?? ????? ????? ???? ?? ?? ????
????.
23- ??? ?? ??channels? ??? voltages? ??. ? ??? ?? ???
?? ? ?? ????? ????? ???? ?? ?? ???? ????. - ??? ?? ??? ??? ??? waveform? ??. waveform? ??? ??
?? ?? waveform ????? ??. Update rate? ??? ??? ??
??? ??. ? VI? ??? ?? ??? ?? ??? ??? ????. - ?? ?? waveform? ??? ??? ? ?? ?? ???? ?? VI? ??.
??? waveform? 2D ??? 1? ?? ????? ??.
24??) ?? ???? sine?? ????
- 1. ??? ?? ??? ??? ?? ?????? ??.
- ? VI? sine?? 200ms? 1?? ????? ??? ???? ??? ????
???? ?? ??0? ????. - ?? ??? ???? ??? ??? Intermediate ???? ?? VI???
????. -
- 2.VI? Single Channel Analog Output. vi? ????.
- 3. VI? ??. Oscilloscope? ?? ??? ??? ??.
25D. DAQ Channel Wizard
- DAQ Channel Wizard? ???? ?? ??? ??? ?? ???? ??
????. - ????? ???? ??? ??? ???? ???? ??? ? ??, ??? ???
LabVIEW? Solution Wizard? ????? ????? ???? ?
????. - ??, DAQ ????? ???? ???? ???, ?? ??? ? ? ??.
-  l DAQ Channel Wizard? ???? ??
- DAQ ????? ????, ???? ?? ??? ????.
- DAQ Channel Wizard? ???? ?? ??? ???? ???? DAQ ???
?? ??? ? ??. - ???? National Instruments? PCMCIA? ??? ?? ???
DAQCard-1200? ??? ?? ?? ????. - DAQCard-1200? 8?? ???? ?? ???, 2??? ???? ?? ??,
24?? ??? I/O, 3?? ???/???? ??.
26??) DAQ ?? Wizard
- 1.??? ????? Windows 95? ?? ? ????? LabVIEW ?
N-DAQ ? DAQ Channel Wizard? ??. ?? LabVIEW
project??? DAQ Wizards ? DAQ Channel Wizard...?
??. - DAQCard-1200??? ??0?? IC?? ??? ???? ??? ??.
- ??, ???? ?? ?? 1?? Sine?? ???? ??, ???? ?? ?? 2?
???? ?? ?? 0? ?? ???? ??? ???? ??.
27DAQ Solution Wizard? ??? ??? ?? ??? ??
- DAQ Solution Wizard? LabVIEW? ???? ?? ??? ??????.
- ???? ??? ??????? ???? LabVIEW? ???? VI ????? ???
??. ??? ???? ?? ????? ???? ???? ??? ?? ????? ??
??? ? ??. - DAQ Channel Wizard? ??? ??? ???, DAQ Solution
Wizard? ??? ???? ??? ?? ??? ????. ???? ?? ?? 0?
??? Temperature? ????, IC ?? ??? ??? ?? ??. - 1.LabVIEW? ??? ? ???? ?? LabVIEW? Project ??? DAQ
Wizards ?DAQ Solution Wizard? ????, 3??? ??? DAQ
Solution Wizard? ?? ??? Welcome to the DAQ
Solution Wizard!? ????. ??? Go to Channel Wizard?
???? ?? ??? ??? ??? ? ? ??. ??, ? ???? ??
??? ????
28(No Transcript)
29- 2.Solution Wizard? Step 2 of 3 ??? ????.
- ?? ??? LabVIEW? ??? Solution Gallery? ????
Nextgt? ????. ??? ?? ??? ??.
Solution Gallery(Recommended)? ???? next? ????
LabVIEW? ??? ??? VI? ??. ??, Custom DAQ
Application? ???? ?? ???? DAQ? ??? ? ??
30- 3.Solution Wizard? Step 3 of 3??? ????. ???? ???
??? ??????? ??? ? ??. - Gallery Categories????? Bench-Top Instrument?
Digital Multimeter? ????. ? ???? ??? LabVIEW
????? ????. Solution Wizard? ??? ?? VI? ?? ????.
31- 4.??? Digital Multimeter? ??? ???? ?? ??? ????.
32- Open Solution? ???? ????? ????? ????
33Arbitrary Waveform???? D/A? ????, D/A? ??? ?? ?
Sine?? 2?? Osc.? ??
- ? ??? ???? ?? ?? 0(CHN0)? sine?? ????, ???? ?? ??
0? ???? ?? ?? 1(CHN1)? ?? ??? ??? ??? ???. - 2?? ???? ?? ??? ??? ???? ? ??? Sine? ? ???? ??
?????? ??? LabVIEW? Oscilloscope? ??? ???. - 1.LabVIEW? Step 3 of 3?? Solution Wizard? Gallery
Categories????? Bench-Top Instrument? 2 Channel
Oscilloscope? ???? Next ??? ????. - 2.???? ?? ??? CHN0? CHN1? ??? ????, Open
Solution? ???? ???? ?? Oscilloscope? ????. - 2?? ??? ??? ????? Shift?? ?? ???? CHN0? CHN1? ??
????. - Open Solution? ???? 2?? Oscilloscope? ????.
34(No Transcript)
35(No Transcript)
36(No Transcript)
37- 3.Back ??? ???? Step 3 of 3 ???Gallery
Categories ????? Bench-Top Instrument? Arbitrary
Waveform Generator? ????.
384. ???? ?? ??0 ?, Analog Output0? waveform? ????
???, .Open Solution ? ??? VI? ????.
395. Arbitrary Waveform Generator. vi? Run ???? ??.
40- 6. Create From Sketch ??? ????. ???? ?? ??? ???
???? ????, ???? ?? ??0? ??? ??? ?? ? ??. ?????
DONE??? ????.
41(No Transcript)
42- ???? RSE(Referenced Sing mode)? ???? ??
- ?? BNC cable? ?????.
43E. ??? ?.?? ??
- ??? ?.?? VI? ???? ?.?? VI? ???? ??? ??.
- ???? ??? VI? ??? ???? Easy ??? I/O VI ??,
Intermediate ??? I/O VI ?? ? Advanced ??? I/O VI
???? ???? ??. - Easy ??? I/O VI??? ???? ??? ?? ??? ??? ? ??.
- Easy ??? I/O VI??? immediate?? non-latched ???
I/O??. ?, Write to Digital Line? ?????? ???
HIGH?? LOW? ??, ?? VI? ??? ??? ??? ??? ?? ????.
44??? ???? Easy ??? I/O VI??? ??
- ??? ??? ?? ??? ???. device? DAQ??? device
number?? port number? ?? ?? ???? ?? ??. Line? ??
??? ??? ??. Line state? ?? ??? ??(T ??F) - ??? ?? ?? ??? ???. Port number? ?? ??? ??? ??.
Pattern? 10??? ??? ??? ??? ????, binary? ???? ???
? ?? ??? ?? ??? ? ??.
45- ??? ??? ??? HIGH ?? LOW ??? ??. Device? DAQ???
device number. Port ? ??? ??? ??? ??. Line? ???
??? ??? ???, line state? ??? ??? ?? ?, HIGH(TRUE)
?? LOW(FALSE)? ??. - ??? ??? ??? ??? ??. Port number? ???? ??? ??? ??.
Pattern? ??? ??? ??? ??? ?? binary ????
????10????.
46??? ?? ?? ????
- ???? ???? ? ??? ??? ???? ???? ????? ??.
- ???? ???? ?? ??? HIGH ??? ????, ???? ???? ???
LOW?? ?? ???? ????.
47- DAQ??? ??? ??0(?? ????? Port A)? ??? ??0(?? ?????
DIO 0)? ??? ??? ???? ??? VI. - ??? iteration??? i? ??? VI? iteration? ??.
- While loop? i 0? ?, Read from Digital Line.vi?
??? ??? ???? ??? ??. - i gt 0??, VI? ?? ??? ??? ??? ??. ???? ????, ???
??? FALSE? ????, While loop? ???? ?? ?? VI? ??. - select ??? Not ??? ??? TRUE? ???, Selector? TRUE
? ???? ???(???? ON ?????)? ???? While??? ??. - While??? ????, ?? ?? ??? VI(Begin Test A)? ??.
48DAQ??? ??? I/O??? ???? ????
- DAQ??? ??? port A? ?? 0, 1, 2, 3?? LED? ON/OFF??
VI? ????. 4?? LED? DAQ??? ??? ?? DIO0DIO3? ????.
??, LED? ??? ???? ???? ??. - 1.??? ??? ??? ????.
- Switch group? Boolean ????. Number(binary)?
?? ???, Numeric Indicator? ?-??? Show ?Radix? ??. - Operating?? radix? ?-??? binary?? ????(?? ???
???? ?) 2??? ????.
49- 2. ?? ?????? ??? ?? ??.
- 3.On/off ???? ON??? ?? VI? ??. While???
on/off ???? TRUE??? ?? switch group? ?? ?????
??? ??? ??. switch group? ? ??? ?? LED? ?? ?
??.
Boolean Array To Number??(Boolean ???)? ?? ???
??? ???? ??