2. Diagram, funkcje palety narzedzi.pdf

(831 KB) Pobierz
Microsoft Word - 2. Diagram, funkcje palety narzedzi.doc
Warszawa, 2003
122216442.038.png
Budowa diagramu
SubVI
Funcja Wait
Pas ek
narzędzi
(Block Diagram
Toolbar)
Terminal
wykresu
Terminale
Węzły
(nodes)
Prz ewody
(wires)
Struktury
Funkcja
mnóż
Case
Funkcja
Log
Pętla
While
Stała
numeryczna
Terminal zadajnika
boolowskiego
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
Diagram zawiera kod źródłowy programu zapisany w języku graficznym (G). Obiekty występujące na
panelu czołowym mają tu swoje odpowiedniki w postaci terminali
The block diagram contains this graphical source code. Front panel objects appear as terminals on the block
diagram. Additionally, the block diagram contains functions and structures from built-in LabVIEW VI
libraries. Wires connect each of the nodes on the block diagram, including control and indicator terminals,
functions, and structures.
In this block diagram, the subVI Temp calls the subroutine which retrieves a temperature from a Data
Acquisition (DAQ) board. This temperature is plotted along with the running average temperature on the
waveform graph Temperature History . The Power switch is a boolean control on the Front Panel which
will stop execution of the While Loop. The While Loop also contains a Timing Function to control how
frequently the loop iterates.
122216442.039.png 122216442.040.png
 
122216442.001.png 122216442.002.png 122216442.003.png
Funkcje
Funkcje są podstawowym składnikiem
programu LabVIEW
Reprezentują je jasno żółte ikony z czarnym
rysunkiem
Nie mają panelu czołowego ani diagramu, ale
mają o złącza
Nie można ich edytować
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
Functions are the building blocks of all VIs.
Palety funkcji
Okno Diagramu
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
Use the Functions palette, to build the block diagram. The Functions palette is available only on the block
diagram. Select Window»Show Functions Palette or right-click the block diagram workspace to display the
Functions palette. You also can display the Functions palette by right-clicking an open area on the block
diagram. Tack down the Functions palette by clicking the pushpin on the top left corner of the palette.
122216442.004.png 122216442.005.png
 
122216442.006.png 122216442.007.png 122216442.008.png 122216442.009.png
 
122216442.010.png 122216442.011.png 122216442.012.png 122216442.013.png 122216442.014.png 122216442.015.png 122216442.016.png 122216442.017.png 122216442.018.png 122216442.019.png 122216442.020.png 122216442.021.png
Funkcje numeryczne
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
Use the Numeric functions to create and perform arithmetic, trigonometric, logarithmic, and complex
mathematical operations on numbers and to convert numbers from one data type to another.
Funkcje boolowskie i stringi
Politechnika Warszawska, Wydział Inżynierii Produkcji, Instytut Technologii Maszyn
Use the Boolean functions to perform logical operations on single Boolean values or arrays of Boolean
values, such as the following tasks:
• Change a TRUE value to a FALSE value and vice versa.
• Determine which Boolean value to return if you receive two or more Boolean values.
• Convert a Boolean value to a number (either 1 or 0).
• Perform compound arithmetic on two or more Boolean values.
Use the String functions to perform the following tasks:
• Concatenate two or more strings.
• Extract a subset of strings from a string.
• Search for and replace characters or subsets of strings in a string.
• Convert numeric data into strings.
• Format a string for use in a word processing or spreadsheet application.
122216442.022.png 122216442.023.png
 
122216442.024.png 122216442.025.png 122216442.026.png 122216442.027.png 122216442.028.png 122216442.029.png 122216442.030.png 122216442.031.png
 
122216442.032.png 122216442.033.png 122216442.034.png 122216442.035.png 122216442.036.png
Use the Array functions to create and manipulate arrays, such as the
following tasks:
• Extract individual data elements from an array.
• Add individual data elements to an array.
• Split arrays.
Use the Cluster functions to create and manipulate clusters, such as the
following tasks:
• Extract individual data elements from a cluster.
• Add individual data elements to a cluster.
• Break a cluster out into its individual data elements.
122216442.037.png
Zgłoś jeśli naruszono regulamin