הודעות ריענון מהיר והרחבות כתיבה לקובץ Low-Level דגימת אות Low-Level

Slides:



Advertisements
Similar presentations
Previously… We created a simulated temperature reader which alerts if too hot or too cold… Download the solved practice to keep in sync: Thermostat.vi.
Advertisements

LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can.
Lesson 2 Navigating LabVIEW
Based on LabVIEW 2011 Student Edition
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
De la Rosa-Pohl ECE 1100 Introduction to Engineering Intro to LabVIEW: Programming for Symon University of Houston Diana de la Rosa-Pohl Len Trombetta.
Introduction to LabVIEW
Introduction to LabVIEW 8.5
Hands-On Material From National Instruments Introduction to LabVIEW Electrical Wiring Feng-Ju Hsieh ENGR 100 Section C.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
PC Applications Course LabVIEW: Laboratory Virtual Instrument Engineering Workbench Graphical Programming Easy to use Faster Development Time.
1 Lesson 5 Clusters TOPICS Introduction to Clusters Cluster Functions Error Clusters.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Virtual Instrumentation With LabVIEW
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
Lecture 13LabVIEW and GPIB LabVIEW (National Instruments) –Graphical program language –Widely used in academia (lab) and industry (R&D) General Purpose.
Infinity-project.org Engineering education for today’s classroom The Infinity Project SM LabVIEW for The Infinity Project.
How to use LabVIEW Ihor Korolov February 2011.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Workshop 3 of 7 Welcome!. Today's Topics Review of Workshop 2 Loops While For Auto-indexing Shift registers Case Structure.
V1: HMFR, V2: MFNB, 2007 LabView Seminar University of Puerto Rico Mayagüez Campus.
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
Virtual Instrumentation With LabVIEW. Section I LabVIEW terms Components of a LabVIEW application LabVIEW programming tools Creating an application in.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Create.
Chapter 1 LabVIEW Basics. Features > Uses Graphic Symbols > Created by National Instruments > Virtual Instruments (VIs) > Extensive Library of VIs.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs LabVIEW Programs Are Called Virtual Instruments (VIs) Block Diagram.
LabVIEW an Introduction
Each VI has 2 Windows Front Panel User Interface (UI) –Controls = Inputs –Indicators = Outputs Block Diagram Graphical Code –Data travels on wires from.
Design of Bio-Medical Virtual Instrumentation Tutorial 3.
Physics 434 Welcome Toby Burnett [prof] Durmus Karatay[TA] Jason Alferness [Equipment] David Pengra [consultant]
LabVIEW in 3 Hours. What is Test & Measurement? Keypad Functionality Keypad Functionality LCD Testing LCD Testing Sound Quality Sound Quality Acoustic.
LabView instrumentoinnissa, 55492, 3op Labview in instrumentation Lecturer: Heikki Ojala, room C204a
Samuel Alberg Thrysøe, PhD, Assistant Professor, Contact info: Phone:
Creating, Editing, & Debugging a VI A.How to Create VIs B.How to Edit VIs C.How to Debug VIs You Will Learn:
Introduction to LabVIEW 8.5
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
CS320n –Visual Programming More LabVIEW Foundations.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
LabVIEW Course Course 2.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Wednesday NI Vision Sessions
Workshop 5 of 7 Welcome!. Today's Topics Review from Workshop 4 Modularity & subVIs Documentation File Input/Output Introduction.
Week 3 Labview exercises
Intro to USB-6009 DAQ.
EET 2259 Unit 13 Strings and File I/O
Data Structures Arrays Common Array Functions Polymorphism
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
EE 200 Design Tools Laboratory 14
EET 2259 Unit 11 Charts and Graphs
Getting Started with LabVIEW Virtual Instruments
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
Introduction to LabVIEW
הודעות-שיעור1 שי שרעבי חדר 201
Lesson 2: Introduction to Control programming using Labview
הודעות ריענון מהיר והרחבות Charts & Graphs גרף XY בניית מחולל אותות
הודעות ריענון מהיר והרחבות דגימת אות Low-Level
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
LabVIEW 7.1 寒假短期教學課程 歐陽丞修 2006/02/06.
הודעות ריענון מהיר והרחבות מערכים וגבולות הלולאה המשך
Structures- case, sequence, formula node
EET 2259 Unit 9 Arrays Read Bishop, Sections 6.1 to 6.3.
Introduction to LabVIEW
EET 2259 Unit 13 Strings and File I/O
LabVIEW基礎課程(一) 參考書籍: LabVIEW for Everyone (Jeffrey Travis/Jim Kring)
EET 2259 Unit 5 Loops Read Bishop, Sections 5.1 and 5.2.
EET 2259 Unit 11 Charts and Graphs
EET 2259 Unit 2 Virtual Instruments
הודעות ריענון מהיר והרחבות - Shift Register Feedback Node המשך
Presentation transcript:

הודעות ריענון מהיר והרחבות כתיבה לקובץ Low-Level דגימת אות Low-Level זיהוי רעשים ע"י פילטר FFT תרגול

Cluster The waveform chart is a special numeric indicator that displays one or more plots. The waveform chart is located on the Controls»Graph Indicators palette. Waveform charts can display single or multiple plots. The following front panel shows an example of a multi-plot waveform chart. You can change the min and max values of either the x or y axis by double clicking on the value with the labeling tool and typing the new value. Similarly, you can change the label of the axis. You can also right click the plot legend and change the style, shape, and color of the trace that is displayed on the chart.

דוגמא ללכידת אות ווידאו בסנכרון Vision development module

כתיבה לקובץ – Low Level כתיבה של כותרות ונתונים לקובץ. הערה: עובד מגרסת Labview 8.5

Low Level DAQ

פולימורפיזם - דוגמה לזיהוי רעשים בעזרת FFT פילטר. The waveform chart is a special numeric indicator that displays one or more plots. The waveform chart is located on the Controls»Graph Indicators palette. Waveform charts can display single or multiple plots. The following front panel shows an example of a multi-plot waveform chart. You can change the min and max values of either the x or y axis by double clicking on the value with the labeling tool and typing the new value. Similarly, you can change the label of the axis. You can also right click the plot legend and change the style, shape, and color of the trace that is displayed on the chart.

תרגול - שים לב אין לחבר מתח להארקה ללא נגד מתאים! אין לחבר מתח ליציאה דיגיטלית\אנלוגית!

תרגול קריאת יציאת DO מהם ערכי המתח של true/false המתקבלים מיציאה דיגיטלית. חבר את p0.0 ל AI0. שים לב לבחירת Terminal Configuration נכונה! P0.0 AI0

תרגול יציאה דיגיטלית בנה תוכנית הגורמת לנורית המחוברת לכרטיס NI USB-6008 להידלק עבור ערכי דגימה של מתח כניסה הנעים בין 1[V] ל 2[V] אחרת הנורית צריכה להישאר כבויה. השתמש בפוטנציומטר כדי לאפשר שינוי מתח כניסה.

פתרון יציאה דיגיטלית Estimate completion time: 20 minutes. The exercise is easy, but since it will be the first VI that we actually create, it is good to allow ample time to explore the LabVIEW environment. Instructions: Build a VI that converts °C to °F. When run, the VI should take an input value (°C), multiply it by 1.8, add 32, and display the result (°F). The front panel should display both the input value and the result. Save the VI as Convert C to F.vi.

פתרון יציאה דיגיטלית

תרגול מונה Nyquist rate Max Source Frequency 5 MHz Minimum Input Pulse Width 100 ns בנה מונה פולסים בעזרת PFI0 ומתג PB1 והצג את הפולסים בכניסה למונה.

Loopback Test הסבר מפורט על חיבור הכבל הטורי ראה בקישור. http://zone.ni.com/devzone/cda/tut/p/id/3450 A loopback test allows you to send and receive data from the same serial port to verify that the port is operational. To perform this test, you need to temporarily connect the proper pins to allow signals to be sent and received on the same port. To perform a loopback test with no hardware flow control, you will need to connect pins 2 and 3 for RS-232 and pins 4 to 8 and 5 to 9 for RS-422/485. These connections can be seen in red below (figure 2 for RS-232 and figure 3 for RS-422/485). When using hardware flow control, you will need to connect pins 4 to 6 and 7 to 8 for RS-232. Pins 7 and 8 are used for RTS/CTS hardware flow control where pins 4 and 6 are used for DTR/DSR hardware flow control. For RS-422/485, you will need to connect pins 2 to 3 and 6 to 7. Both of these connections are required for RTS/CTS hardware flow control since RS-422/485 have differential connections. These connections can be seen in blue below (figure 2 for RS-232 and figure 3 for RS-422/485).

Serial Read/Write התאמת הגדרת התקשורת בין המכשיר לתוכנה.

Building Installer בנה פרויקט לקובץ. בנה קובץ התקנה.

Installer Definition

Creating Installer

הרחבות The array builder accumulate data for graph

ממיר מטיפוס דינאמי The waveform chart is a special numeric indicator that displays one or more plots. The waveform chart is located on the Controls»Graph Indicators palette. Waveform charts can display single or multiple plots. The following front panel shows an example of a multi-plot waveform chart. You can change the min and max values of either the x or y axis by double clicking on the value with the labeling tool and typing the new value. Similarly, you can change the label of the axis. You can also right click the plot legend and change the style, shape, and color of the trace that is displayed on the chart.

שינוי שם של סיגנל File I/O operations pass data to and from files. In LabVIEW, you can use File I/O functions to: Open and close data files Read data from and write data to files Read from and writ to spreadsheet-formatted files Move and rename files and directories Change file characteristics Create, modify, and read a configuration file Write to or read from LabVIEW Measurements files. In this course we will examine how to write to or read from LabVIEW Measurements files (*.lvm files).

תרגיל אתר כרטיס לכידה עם יציאות וכניסות אנלוגיות. בנה תוכנית שקוראת מתחים של 2 מקורות מתח מבודדים ומציגה אותם באופן רציף בגרף. הוצא ליציאה אנלוגית את הפרש המתחים בין המקורות ואפשר למשתמש לשמור 1000 דגימות אחרונות של יציאה זו.

פתרון

Hide controller/ indicator הסתרת איקוני קלט פלט במסך המשתמש הדגמת סידור חיווט

"קליק" ימני על האייקון בחלון התוכנית מאפשר להעלים את ההצגה של האובייקט ממסך המשתמש

פעולה הפוכה תגרום להופעתו מחדש

גרף XY - גרף XY מציג את נקודות הצמדים (xi,yi) של מערכים X ו- Y המוזנים אליו. - ניתן לעבוד בגרף זה עם נתונים קיימים (קודם אוספים ואח"כ מציגים) או בעבודה ONLINE, כלומר עדכון הגרף תוך כדי איסוף הנתונים. The waveform chart is a special numeric indicator that displays one or more plots. The waveform chart is located on the Controls»Graph Indicators palette. Waveform charts can display single or multiple plots. The following front panel shows an example of a multi-plot waveform chart. You can change the min and max values of either the x or y axis by double clicking on the value with the labeling tool and typing the new value. Similarly, you can change the label of the axis. You can also right click the plot legend and change the style, shape, and color of the trace that is displayed on the chart.

גרף Online-XY בחירה בגרף XY מצג המשתמש תגרור הופעה של vi-express בצג התוכנית. - כשמזינים נקודות בודדות Online יש לחווט False לכניסת ה Reset. The waveform chart is a special numeric indicator that displays one or more plots. The waveform chart is located on the Controls»Graph Indicators palette. Waveform charts can display single or multiple plots. The following front panel shows an example of a multi-plot waveform chart. You can change the min and max values of either the x or y axis by double clicking on the value with the labeling tool and typing the new value. Similarly, you can change the label of the axis. You can also right click the plot legend and change the style, shape, and color of the trace that is displayed on the chart.

-חשב n! עם שימוש בתכונות הלולאה ופונקציות כפל חיבור בלבד. תרגול -חשב n! עם שימוש בתכונות הלולאה ופונקציות כפל חיבור בלבד. Estimate completion time: 20 minutes. The exercise is easy, but since it will be the first VI that we actually create, it is good to allow ample time to explore the LabVIEW environment. Instructions: Build a VI that converts °C to °F. When run, the VI should take an input value (°C), multiply it by 1.8, add 32, and display the result (°F). The front panel should display both the input value and the result. Save the VI as Convert C to F.vi.

פתרון Estimate completion time: 20 minutes. The exercise is easy, but since it will be the first VI that we actually create, it is good to allow ample time to explore the LabVIEW environment. Instructions: Build a VI that converts °C to °F. When run, the VI should take an input value (°C), multiply it by 1.8, add 32, and display the result (°F). The front panel should display both the input value and the result. Save the VI as Convert C to F.vi.

Shift Register If you wire an array to a For Loop or While Loop input tunnel, you can read and process every element in that array by enabling auto-indexing. When you auto-index an array output tunnel, the output array receives a new element from every iteration of the loop. The wire from the output tunnel to the array indicator becomes thicker as it changes to an array at the loop border, and the output tunnel contains square brackets representing an array, as shown in the following illustration. Disable auto-indexing by right-clicking the tunnel and selecting Disable Indexing from the shortcut menu. For example, disable auto-indexing if you need only the last value passed to the tunnel in the previous example, without creating an array. Note Because you can use For Loops to process arrays an element at a time, LabVIEW enables auto-indexing by default for every array you wire to a For Loop. Auto-indexing for While Loops is disabled by default. To enable auto-indexing, right-click a tunnel and select Enable Indexing from the shortcut menu. If you enable auto-indexing on an array wired to a For Loop input terminal, LabVIEW sets the count terminal to the array size so you do not need to wire the count terminal. If you enable auto-indexing for more than one tunnel or if you wire the count terminal, the count becomes the smaller of the choices. For example, if you wire an array with 10 elements to a For Loop input tunnel and you set the count terminal to 15, the loop executes 10 times.

כניסות של לולאת For, מערכים ו Shift Register כמה איטרציות הלולאה מבצעת? If you wire an array to a For Loop or While Loop input tunnel, you can read and process every element in that array by enabling auto-indexing. If you enable auto-indexing on an array wired to a For Loop input terminal, LabVIEW sets the count terminal to the array size so you do not need to wire the count terminal. If you enable auto-indexing for more than one tunnel or if you wire the count terminal, the count becomes the smaller of the choices. For example, if you wire an array with 10 elements to a For Loop input tunnel and you set the count terminal to 15, the loop executes 10 times. מתאים למיצוע של מספר רב של חישנים או דגימות

בניית לולאת For עם תנאי עצירה

תרגיל צוללות - יצר VI המאתחל מערך בינרי בגודל 8x8 ומסמן 3 צוללות מאוזנות באורך 3 באופן אקראי. Estimate completion time: 20 minutes. The exercise is easy, but since it will be the first VI that we actually create, it is good to allow ample time to explore the LabVIEW environment. Instructions: Build a VI that converts °C to °F. When run, the VI should take an input value (°C), multiply it by 1.8, add 32, and display the result (°F). The front panel should display both the input value and the result. Save the VI as Convert C to F.vi.

פתרון Estimate completion time: 20 minutes.

מניפולציה על מחרוזת גזירת תת מחרוזת לפי תו מקדים