4. DAQ, petla while.pdf

(1055 KB) Pobierz
Microsoft Word - 4. DAQ, petla while.doc
Warszawa, 2003
122216443.044.png
Akwizycja danych w LabVIEW
Tradycyjne NI-DAQ
Określone VI do
obsługi:
•wejść analogowych
•wyjść analogowych
• we/wy cyfrowych
• liczników
NI-DAQmx
Następna generacja
driverów:
• VI do wykonywania
zadań
• Jeden zestaw VI do
wszytkich typów
pomiarów
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
The Data Acquisition palette in LabVIEW contains a palette for traditional NI-DAQ and one for
NI-DAQmx.
Traditional VIs are divided by the type of measurement; DAQmx VIs are divided by the type of
task.
You must complete several steps before you can use the Data Acquisition VIs. The devices should
be configured for the computers in this class.
NI-DAQ software must be installed on the computer
You must have installed an E-series DAQ board and configured it using Measurement &
Automation Explorer (MAX).
For more information on installing and configuring National Instruments hardware, consult the
DAQ Quick Start Guide:
http://digital.ni.com/manuals.nsf/websearch/E502277FE33ED60686256B3B0056AEDF?OpenDocu
ment&node=132100_US
122216443.045.png 122216443.046.png
 
122216443.001.png 122216443.002.png 122216443.003.png 122216443.004.png
Tradycyjny NI-DAQ - woltomierz
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
Tradycyjny NI-DAQ – symulowany
woltomierz
All Functions>Time&Dialog>Tick Count
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
Ponieważ nie dysponujemy czujnikiem temperatury i kartą DAQ, stwórzmy symulator próbkowania
jednego kanału.
Wykorzystaj funkcję Tick Count z palety All Functions/Time&Dialog.
Stwórz ikonę kopiując wzór z AI Sample Channel
Nie zapomnij o konektorze
Zapisz jako AI Sample Channel Demo.vi i zastąp nim AI Sample Channel w przyrządzie
WoltomierzTradycyjny.vi , zapisz jako WoltomierzTradycyjnySym.vi
122216443.005.png 122216443.006.png
 
122216443.007.png 122216443.008.png 122216443.009.png 122216443.010.png 122216443.011.png 122216443.012.png
 
122216443.013.png 122216443.014.png 122216443.015.png 122216443.016.png 122216443.017.png 122216443.018.png
„Ekspresowe” VI z DAQ Assistant
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
You can launch the DAQ Assistant in several ways. Complete the following steps to launch the
DAQ Assistant from a LabVIEW block diagram.
1. Open LabVIEW and create a New VI. Switch to the block diagram (Ctrl+E).
2. The DAQ Assistant Express VI is located in the Input subpalette of the Functions palette. Place
the DAQ Assistant on the block diagram by dragging and dropping it from the Functions palette.
The Assistant should automatically launch when you drop the VI on the diagram.
When you place this Express VI on the block diagram, the DAQ Assistant launches to create a new
task. After you create a task, you can double click the DAQ Assistant Express VI in order to edit
that task. For continuous measurement or generation, place a while loop around the DAQ Assistant
Express VI.
122216443.019.png 122216443.020.png
 
122216443.021.png 122216443.022.png 122216443.023.png
DAQ Assistant - konfiguracja
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
DAQ Assistant – możliwe opcje
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
122216443.024.png 122216443.025.png
 
122216443.026.png 122216443.027.png 122216443.028.png 122216443.029.png 122216443.030.png 122216443.031.png 122216443.032.png
 
122216443.033.png 122216443.034.png 122216443.035.png 122216443.036.png 122216443.037.png 122216443.038.png 122216443.039.png 122216443.040.png 122216443.041.png 122216443.042.png 122216443.043.png
Zgłoś jeśli naruszono regulamin