Electronics II Physics 3620 / 6620

Slides:



Advertisements
Similar presentations
LabView Academy 5. óra. Témakörök SubVI Modularitás Icon Connector Pane.
Advertisements

CS320n –Visual Programming LabVIEW Foundations. Visual ProgrammingLabVIEW Foundations2 What We Will Do Today Hand back and review the midterm Look at.
The sequence of folders to a file or folder is called a(n) ________.
MZ790 Print Driver and RINC Software Install and Setup These instructions are to assist you in installation and setup of the MZ790 Print Driver and RINC.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
RIMS II Online Order and Delivery System Tutorial on Downloading and Viewing Multipliers.
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Android 4: Creating Contents Kirk Scott 1. Outline 4.1 Planning Contents 4.2 GIMP and Free Sound Recorder 4.3 Using FlashCardMaker to Create an XML File.
TrendReader Standard 2 This generation of TrendReader Standard software utilizes the more familiar Windows format (“tree”) views of functions and file.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
LabView Basics The Fighting Pi Controls Group. About LabView LabView is a highly adaptable programming GUI (Graphic User Interface) LabView compiles the.
Introduction to LabVIEW
Back to content Final Presentation Mr. Phay Sok Thea, class “2B”, group 3, Networking Topic: Mail Client “Outlook Express” *At the end of the presentation.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
1 Lesson 6 Exploring Microsoft Office 2007 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Cobian Backup 7 Tutorial Welcome to Cobian Backup 7. This tutorial will show you how to install the program, configure it and create your first scheduled.
IT 211 Project Integration and Deployment Lab #11.
When you start Photo Story the title screen gives you three options. The following slides will illustrate the directions when “Begin a new story” has been.
E-Commerce: Introduction to Web Development 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics What is a Web.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Putting Applets into Web Pages.  Two things are involved in the process of putting applets onto web pages ◦ The.class files of the applet ◦ The html.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
From Scratch: Open CCS Exit and restart CCS Click Browse to create a new workspace directory.
Chapter Two Creating a First Project in Visual Basic.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
CS320n –Visual Programming More LabVIEW Foundations.
2007 TAX YEARERO TRAINING - MODULE 61 ERO (Transmitter) Training Module 6 Federal and State Installation and Updates.
Windows XP Lab 2 Organizing Your Work Competencies.
SQL SERVER 2008 Installation Guide A Step by Step Guide Prepared by Hassan Tariq.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Introduction to Computers
Lesson 11 Exploring Microsoft Office 2007
Development Environment
SQA Incident Tracking System Overview
Getting Started with Application Software
Welcome! Workshop 3 of 7.
Chapter 1: An Introduction to Visual Basic 2015
Computer Skills windows.
Writing simple Java Web Services using Eclipse
An Introduction to Computers and Visual Basic
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
EET 2259 Unit 3 Editing and Debugging VIs
An Introduction to Computers and Visual Basic
Using Procedures and Exception Handling
MS PowerPoint 2010 Week 2.
Tutorial Introduction to support.ebsco.com.
Introduction to Computers
AC3274 CUIX Zen - Customizing the CUI
Chapter 8 Managing Files.
Chapter 5 SubVIs.
1. Open Visual Studio 2008.
Microsoft Visual Source Safe How & Why
New Perspectives on Windows XP
Tonga Institute of Higher Education
An Introduction to Computers and Visual Basic
Microsoft Office Not in Textbook.
Chapter 8: Creating An Integrated Database Application
Using Eclipse.
Computer Skills windows.
Computer Skills windows.
Tutorial Introduction to help.ebsco.com.
Executive Reports, Instructions and Documentation
An Introduction to the Windows Operating System
Presentation transcript:

Electronics II Physics 3620 / 6620 Apr 29, 2009 Part 1 Projects, Formula Nodes, Error Handling Application Builder…etc. 1/3/2019

Project Explorer Instead of editing VI’s and sub-VI’s separately and managing them by hand (one drawback is platform-independence), you can package VI’s and sub-VI’s into “projects” New feature in Labview 8.0 Project explorer similar to other “integrated development environment” Start new “project” from start menu  Empty Project 1/3/2019

Make Simple Project A “project explorer” window pops up (in the picture shown I have already saved the project as “exa01.lvproj” Either File  Save Or Project  Save Project Project root—Contains all other items in the Project Explorer window. This label on the project root includes the filename for the project. My Computer—Represents the local computer as a target in the project. Dependencies—Includes items that VIs under a target require. Build Specifications—Includes build configurations for source distributions and other types of builds available in LabVIEW toolkits and modules. If you have the LabVIEW Professional Development System or Application Builder installed, you can use Build Specifications to configure stand-alone applications (EXEs), shared libraries (DLLs) , installers, and zip files. 1/3/2019

Project Explorer A “project explorer” window pops up (in the picture shown I have already saved the project as “exa01.lvproj” Either File  Save Or Project  Save Project To add a “new” VI to the project: Project  Add To Project  New VI This will pop up a front-panel + block diagram pair If you make a sub-VI remember to link the controls and indicators to the connector panel 1/3/2019

Example subVI that converts Farenheit input temperature to Celsius and Kelvin outputs We demonstrate the use of a formula node in this case Note that formula nodes can also have conditionals Your cannot declare then input the variable You can but don’t need to declare the output variables 1/3/2019

Error Handling Can add “if (…) { } else { } structure in formula node Can also use this feature to detect error condition Use Error Cluster from Error Code.vi Functions  Programming  Dialog & User Interface - Error Cluster from Error Code.vi (also see others) Put both err-in and err-out onto the connector panel 1/3/2019

Make “Main VI” Add main VI that checks for error condition (Farenheit temp below absolute zero…using the “simple error handler” Stops the program if error condition met Save and close both 1/3/2019

Project File We now open exa01.lvproj with “Wordpad” (or “Notepad”) It is an Extensible Markup Language (XML) file See http://en.wikipedia.org/wiki/XML for a description Can be edited by hand in an emergency This is the “GUI” equivalent of the old UNIX “Make” file 1/3/2019

Adding Build Specification We can specify a stand-alone application to be built Notice the five different options 1/3/2019

Application Information Application Information Window pops up: modify/fill in the top three at least 1/3/2019

Source Files Click on “Source Files in the window on left, Put the startup VI and supporting objects into the containers Click OK and then DON’T forget to save the Project. 1/3/2019

Building the Application From the project file, a “Test01” target should appear under the Build specifications Right Click on “Test01”  Build will cause Test01.exe to be built This file can now be run as a stand-alone application According to NI, neither the base nor the student version of Labview has the standalone applications builder (but projects are supported). Only the Professional Development Version has this built-in. 1/3/2019

Other Build Options Installers Provider -- installs applications, source files, and shared libraries created with the Application Builder. The providers offers new features, such as Media Spanning to span the installer file over multiple disks, setting System Requirements, creating custom Registry Keys, creating shortcuts to files in the installation, specifying file attributes, including End-User license agreements and a Readme File. Shared Library (DLL) Provider -- creates a Dynamic Linked Library (DLL) allowing LabVIEW code to be called from text-based programming languages. Developers must define the function prototypes for each of the exported VIs.  Source Distribution Provider -- allows the user to organize source files for distribution to another machine. It creates a copy of the project files (including the dependencies) for easy distribution to another computer. This feature is similar to “Save with Options” from previous versions of LabVIEW. Zip File Provider -- creates a compressed Zip file, containing the selected sources files.  It allows you to distribute a large amount of code as a single, portable file. 1/3/2019

NI Recommendations and CAVEATS Create a separate directory of files for each project you create. Include the project file (.lvproj) and any other files that are only used in the project in the same directory. Place any files that are shared with other projects outside of the project directory. Organizing project files into separate directories makes it easier to identify files related to specific projects on disk. Directories on disk are not required to match the project structure of folders. After you add a directory on disk to a project, LabVIEW does not automatically update the folder in the project if you make changes to the directory on disk. Try to avoid changing the location on disk of files in a project. If you move a file on disk, you must update the location of the file in the project. Windows: If you are building an installer, make sure you save the files that are in a project on the same drive as the .lvproj file. If some files are on a different drive, such as a network drive, links can break if you include the project in an installer. The structure of files in a source distribution does not have to match the structure in the Project Explorer window. You can specify a different structure when you build source distribution. If you plan to edit files that appear under Dependencies, move the files from Dependencies to under the target. Items that a VI calls dynamically do not appear under Dependencies. If you plan to distribute files, add any items that a VI calls dynamically under a target. When you build an application, you can apply settings to an entire folder, so consider grouping all dynamic items in a folder under the target. 1/3/2019

Building a ZIP file for distribution To build a zip file for distribution, right click build-spec.  New ZIP file Window pops up…you should set the title and the path Here I put the .zip file in the same folder as the exa01 filder containing the project itself 1/3/2019

Building a ZIP file (continued) Do nothing with “source” files… Go to “Preview”, click on “Generate Preview” button You now see a preview of the directory/folder tree that will be generateed Click OK to exit, and a zip file icon will appear Right-Click the zip file entry and select build…this will create the zip file This zip file will be posted along with this representation 1/3/2019