Home
LabVIEW Quickstart Guide
Contents
1. Add Analog Input to Your VI You have created a Random Number Example VI that generates random numbers and plots them to a strip chart Now you can replace the random number generator with an analog input VI to acquire data from your DAQ board plot it to a strip chart analyze it and write it to a file fr You can complete this activity in approximately 5 minutes LF x Note Ifyou have not built the Random Number Example VI you can find the solution VI in LabVIEW vi lib tutorial 11b Random Number Example Solution vi 1 Open the Random Number Example VI from the LabVIEW vi lib tutorial llb directory lf Random Number Example vi Diagram OF X File Edit Operate Project Windows Help Bea Oo E balale 13pt Application Font z Re z ia z 1 gt Random Plot ta Online Help Description Show gt Repl Create Constant Create Control Create Indicator 2 Go to the block diagram From the pop up menu on the Random Number function choose Replace Data Acquisition Analog Input AI Sample Channel vi LabVIEW QuickStart Guide 3 14 National Instruments Corporation Chapter 3 Data Acquisition Tip Be sure that you select AI Sample Channel vi and not AI Sample Channels vi 3 Select the Wiring tool from the Tools palette The Wiring tool Le allows you to see the tip strip labels for terminals on nodes in the Wiring tool 4 block diagram gt Random Number Example I Diagram O
2. Canada Ontario 905 785 0085 Canada Qu bec 514 694 8521 Denmark 45 76 26 00 Finland 09 527 2321 France 01 48 14 24 24 Germany 089 741 31 30 Hong Kong 2645 3186 Israel 03 5734815 Italy 06 5729961 Japan 03 5472 2970 Korea 02 596 7456 Mexico 5 520 2635 Netherlands 31 348 43 34 66 Norway 32 84 84 00 Singapore 2265886 Spain 91 640 0085 Sweden 08 730 49 70 Switzerland 056 200 51 51 Taiwan 02 377 1200 U K 01635 523545 National Instruments Corporate Headquarters 6504 Bridge Point Parkway Austin TX 78730 5039 Tel 512 794 0100 Fax 512 794 8411 Chapter 1 Introduction to LabVIEW Wh t Is LabVIEW sine in AE EAE SS NE aa ANNE lei 1 1 Why Should T Use Lab VIEW nan tied sn trs nen nn R EE e 1 3 How Does LabVIEW Work sise 1 4 Front Panel anni sats eatin tases bes A E aa ees nT tees 1 4 Block Diagramme e e ips SS E E E EA a n 1 5 Palettes sone o E EAEE EEE E E A T E AEE 1 6 Tools Palettes a E E A R a eSa 1 6 Controls Palette iia a shes aA EA sn tite 1 6 Functions Palettes icc on e a a 1 7 Data PIO W TER O EEEE E E EE EEEE 1 7 Where D L Start sen a e E a a a a a 1 8 Online Tutorial oiee aaea te fives setae Mint nt A NATE EN 1 8 Chapter 2 Virtual Instruments Search for Examples ienie anoen eo ohana RE ne EE E nr 2 1 Build a Virtual Instrument ss 2 4 Create a UserInterfac 55e heck rie ni tin nn Tete 2 4 Build the Block Diagram ss 2 8 Wire and Run MOUV ententes
3. Tip If you do not see the Functions palette select Windows Show Functions Palette 3 Place the Mean VI in the block diagram outside the While Loop LabVIEW QuickStart Guide 2 14 National Instruments Corporation Chapter 2 Virtual Instruments Online Help Description Show Replace Create Constant Create Control Create Indicator Pelink To Subt Open Front Panel Subl Node Setup Enable Database Access Show WI Hierarchy 4 From the pop up menu on the upper right corner of the Mean VI choose Create Indicator This creates a front panel numeric indicator to display the mean of the random data Random Number Example vi Diagram File Edit Operate Project Windows Help K mawi 13pt Application Font z Ro z ia z Random Ploti DEL oHFile 1 0 Wte To Spreadsheet File vi 5 Select Write To Spreadsheet File vi from the Functions File I O subpalette 6 Place the Write To Spreadsheet File VI in the block diagram outside the While Loop National Instruments Corporation 2 15 LabVIEW QuickStart Guide Chapter 2 Virtual Instruments 7 Wiring tool 4 Rand Q gaY Using the Wiring tool wire the Random Number function to the X input terminal of the Mean VI Create this wire branch by wiring from the existing wire segment fasten a new wire from the existing segment Tips The wire segment blinks when the Wiring tool is positioned corr
4. subpalette If the Functions palette is not visible select Windows Show Functions Palette For this activity you use a random number generator to generate input data for your VI 3 Place the Random Number function on the block diagram This VI generates a random number ranging from zero to one LabVIEW QuickStart Guide 2 8 National Instruments Corporation Chapter 2 Virtual Instruments gt Untitled 1 Diagram File Edit Operate Project Windows Help Eo E bolal 13pt Application Font z Bo z te z Random Plot DBL 4 Select While Loop from the Functions Structures subpalette The While Loop runs all code within its boundaries while the value on its conditional terminal remains TRUE When the value changes to FALSE the While Loop exits 5 Place your pointer in the position on the block diagram where you want to anchor the top left corner of the loop Drag the loop diagonally to enclose the Random Number function the Power toggle switch and the Random Plot chart conditional terminal border of the loop to access the pop up menu on the Macintosh command click on the border of the loop Choose Remove While Loop from this pop up menu Then repeat steps four and five to re create the loop so it encloses all the code Tip If your While Loop did not enclose all of the code right click on the National Instruments Corporation 2 9 LabVIEW QuickStart Guide Chapter 2 Virtual Ins
5. Control Create Indicator Relink To Suby Open Front Panel Sub l Node Setup Enable Database Access Show VI Hierarchy Chapter 6 Where To Go From Here Show Help If you need a quick reference to remind you about VI functionality or input and output parameters select Help Show Help Untitled 1 Diagram File Edit Operate Project Windows H samples amplitude phase degrees cycles Sinusoidal Pattern error Sine Pattern vi Generates an array containing a sinusoidal pattern If Sinusoidal Pattern is represented by the sequence Y the Vl generates the pattern according to the following formula pli a sinf s i fori 0 1 2 n 1 where xi 2PI i k n ph Pl 180 ais the amplitude k is the number of cycles ph is the initial phase in degrees nis the number of samples The Help window is context sensitive so when you need information about a VI place your pointer over the VI icon Click the lock button at the bottom of the Help window to lock the current contents of the Help window Unlocked Locked I gt Locked Help Oo x samples Sinusoidal Pattern amplitude de phase degrees error cycles Sine Pattern vi Generates an array containing a sinusoidal pattern If Sinusoidal Pattern is represented by the sequence Y the Vl generates the pattern according to the following formula yi a sinf xfi fori 0 1 2 ni
6. configuration appears in the table You have finished configuring an analog input channel named Temperature for your DAQ hardware This channel measures temperature from zero to 100 degrees Fahrenheit mapped from the zero to one volt range of the sensor Click Exit and save changes LabVIEW QuickStart Guide 3 8 National Instruments Corporation Chapter 3 Data Acquisition Generate a Solution from the Common Solutions Gallery Once you have configured your channel you can generate a solution from the Common Solutions Gallery fr You can complete this section in approximately 10 minutes E2 gt Welcome to the DAQ Solution Wizard This wizard will help you find solutions to common data acquisition applications quickly and easily You have already configured analog input channels using the DAQ Channel Wizard IF you do not want to use these channels deselect this option below How would you like to program your channels Use channel names specified in DAG Channel Wizard Recommended Go to DAQ Channel Wizard View Current Wizard Configuration Program the input scaling and conversion myself Additional Information on the DAQ Channel Wizard 1 Click Next gt when you return to the DAQ Solution Wizard National Instruments Corporation 3 9 LabVIEW QuickStart Guide Chapter 3 Data Acquisition gt Solution Wizard Step 2 of 3 Do you want to open a VI from our Common Solutions Gallery or con
7. in the Demonstrations category amp Search Examples OI x File Edit Bookmark Options Help Corer Inder Back Pi Analysis Demonstrations When you click the name of the example VI the VI will open in LabVIEW Temperature System Demo Demonstrates a temperature analysis application This example reads a simulated temperature sends an alarm if it is outside a given range determines a statistical mean standard deviation and histogram of the temperature history Signal Generation and Processing Determines the result of filtering and windowing a generated signal This example also displays the power spectrum for the generated signal Simulates a vibration analysis example The displacement waveform and the power spectrum are calculated and displayed in this example 3 Click Temperature System Demo to open this demonstration VI LabVIEW QuickStart Guide 2 2 National Instruments Corporation Chapter 2 Virtual Instruments gt Temperature System Demo File Edit Operate Project Windows Help A Acquisition 90 00 EX dea F of p Update Period 85 00 COTE sec 80 00 OVER TEMP Analys 75 00 ff 1 1 i on 000 100 200 z E 3 70 00 amp Temperature Range Statistics Low Limit High Limit oo Standard Enr Deviation 100 00 2 00 60 0 80 00 i 60 00 40 0 40 00 Ai due gas 20 00 ie 0 00 0 0 j us 650 700 750 800 80 900 960 80 0 4 4 Click the Run
8. installed see the Run the Demo Scope VI activity in this chapter 1 Create a new VI and go to the block diagram Untitled 1 Diagram OI x File Edit Operate Project Windows Help K l 13pt Application Font instrument Drivers HP34401A Vis Application Example Vl lt HP24401A Getting Started vi 2 Select Functions Instrument Drivers HP34401A VIs Application Example VIs HP34401A Getting Started vi or select your instrument name and its Getting Started VI LabVIEW QuickStart Guide 4 2 National Instruments Corporation Chapter 4 Instrumentation the National Instruments Instrument Driver Library CD and install the driver for your instrument into the instr 1ib folder in the LabVIEW root directory Tip If you cannot find your instrument here check your LabVIEW CD or gt Untitled 1 File Edit Operate Project windows Show Help Ctrl H Lock Help Ptl Shittet Simple Help Online Reference Ctrl Onine Help for Untitled 7 Internet Links gt Online Tutorial Search Examples Technical Support Form Instrument Driver Network LabVIEW National Instruments Online Support About LabVIEW If you have a web browser installed you can select Internet Links Instrument Driver Network from the Help menu to link automatically to the National Instruments Instrument Driver Network In this web page you c
9. rene aie 2 10 Add Timing to Your VEnsiensninnanenenni entretenir aus 2 12 Add Analysis and File I O to Your VI 2 14 Chapter 3 Data Acquisition Use the DAQ Solution Wizard esse 3 1 Configure Your Analog Input Channel 3 2 Generate a Solution from the Common Solutions Gallery 3 9 Add Analog Inputito Your Vs sine inner eet mener 3 14 National Instruments Corporation iii LabVIEW QuickStart Guide Contents Chapter 4 Instrumentation Instrument 1 0 Use an Instrument Driver Run the Demo Scope VI Chapter 5 Debugging Use Execution Highlighting Single Step with Probes Chapter 6 Where To Go From Here Online Help Show Help National Instruments Commitment to You Customer Education Alliance Program Technical Support Appendix Installation Instructions Required System Configuration Installation Procedures Glossary LabVIEW QuickStart Guide National Instruments Corporation Introduction to LabVIEW This chapter provides an overview of the LabVIEW development environment For information about system configuration requirements or installation instructions see the appendix Installation Instructions What Is LabVIEW Italicized text denotes LabVIEW Laboratory Virtual Instrument Engineering Workbench is a a glossary term development environment based on the graphical programming language G LabVIEW is fully integrated for communication with hardware such as GPIB VXI RS 232 RS
10. where xiJ 2PI i k n ph Pl 180 ais the amplitude k is the number of cycles ph is the initial phase in degrees nis the number of samples LabVIEW QuickStart Guide 6 2 National Instruments Corporation Chapter 6 Where To Go From Here National Instruments Commitment to You LabVIEW represents a long standing commitment by National Instruments to provide tools that simplify the development of instrumentation systems When you choose LabVIEW as your development environment you join thousands of scientists and engineers who are taking advantage of the power of graphical programming Customer Education Alliance Program Technical Support For additional training National Instruments offers interactive CDs videos books and hands on LabVIEW courses to help you master LabVIEW quickly and develop successful applications National Instruments comprehensive training courses on LabVIEW can help you learn to build applications quickly The three day Basics course and two day Advanced course give you concentrated instruction as well as design tips on the LabVIEW development environment from our applications engineers These courses take place monthly at our corporate headquarters in Austin Texas and also at our branches around the world In addition we offer two day courses on GPIB DAQ VXI and other topics to help you develop your entire system The Alliance program is a network of third party developers an
11. 4 National Instruments Corporation
12. 485 and plug in data acquisition boards LabVIEW also has built in libraries for using software standards such as TCP IP Networking and OLE Automation Using LabVIEW you can create 32 bit compiled programs that give you the fast execution speeds needed for custom data acquisition test and measurement solutions You also can create stand alone executables because LabVIEW is a true 32 bit compiler You can use LabVIEW with little programming experience LabVIEW uses terminology icons and ideas familiar to technicians scientists and engineers and relies on graphical symbols rather than textual language to describe programming actions National Instruments Corporation 1 1 LabVIEW QuickStart Guide Chapter 1 Introduction to LabVIEW Programs in LabVIEW for real world applications can vary from the simple to the powerful as illustrated in the following graphic bles Chen Oeics 1 Els Edt Gowan i sie Hep Geli SL Terao Jde al LabVIEW contains comprehensive libraries for data collection analysis presentation and storage LabVIEW also includes traditional program development tools You can set breakpoints animate program execution to see how the program executes and single step through the program to make debugging and program development easier LabVIEW also provides numerous mechanisms for connecting to external code or software through DLLs shared libraries OLE Automation and more In addition numerous add on tool
13. EL os a A amp B E Time Base 10 ms div 7 5 ms div 20 ms div LE Volts Div 1 V DIY 0 000 0 010 0 020 0 030 5V DIY 2V DIY 2 Run the program to acquire data from one or two channels on your Buin oscilloscope Change timebase and volts per division settings to see the effect 3 Click the square STOP F4 button to stop the VI LabVIEW QuickStart Guide 4 6 National Instruments Corporation Chapter 4 Instrumentation gt Demo Scope Yl Diagram File Edit Operate Project Windows Help The address string simulates the VISA controls and indicators used with instrument drivers 4 Go to the block diagram Notice that Initialize is called first followed by the commands to send to the instrument in the Application Example VI The Close VI then closes out communication with the instrument When you program with LabVIEW instrument drivers follow this model of initializing the instrument then calling the functions to control the instrument and finally closing the instrument for communication National Instruments Corporation 4 7 LabVIEW QuickStart Guide Debugging This chapter teaches you how to use some of the comprehensive debugging utilities in LabVIEW Use Execution Highlighting Execution highlighting traces the data flow of a VI during execution Cr You can complete this activity in approximately 5 minutes E2 1 From the LabVI
14. EW vi lib tutorial 11b directory open the Random Number Example VI you created earlier 2 Using the Operating tool turn on the Power toggle switch Operating tool S Random Number Example VI Diagram oO x File Edit Operate Project Windows Help FA 5 C i Random Plot DBL 3 Goto the block diagram and click the execution highlighting button execution highlighting on the toolbar National Instruments Corporation 5 1 LabVIEW QuickStart Guide Chapter 5 Debugging lf Random Number Example vi Diagram File Edit Operate Project Windows Help e EEE Random Plot os sL 4 Run the VI from the block diagram window The program executes in slow motion with moving bubbles to highlight the flow of R pi execution It also displays data as it becomes available in the VI 5 Stop the VI by clicking the Abort button Abort 6 Turn off execution highlighting by clicking the execution execution highlighting highlighting button again LabVIEW QuickStart Guide 5 2 National Instruments Corporation Chapter 5 Debugging Single Step with Probes You can set breakpoints in a VI and single step into out of and over sections of the block diagram You also can insert probes to examine data values in detail during program execution This example shows how to single step through a VI and how to insert probes to monitor your data while the VI runs FUN You can
15. I x File Edit Operate Project Windows Help oO 2 bal 4 l 13pt Application Font z Fo z Fa z 1 i Random Plot 4 Move your pointer over the channel 0 terminal of the AI Sample Channel VI A tip strip that labels the terminal appears Online Help Description Show Replace Create Constant Create Control Create Indicator Relink To Suby Open Front Panel Sub Node Setup Enable Database Access Show VI Hierarchy 5 From the pop up menu on the highlighted channel 0 terminal choose Create Constant To access the pop up menu right click on the terminal on the Macintosh command click on the terminal National Instruments Corporation 3 15 LabVIEW QuickStart Guide Chapter 3 Data Acquisition 6 Type Temperature or the name of the channel you configured in the DAQ Solution Wizard gt Random Number Example VI File Edit Operate Project Windows Help 13pt Application Font Fo A ta z Random Plot Power a Change to Control Find Terminal Show gt Data Operations gt Create Key Navigation Replace We AF i 2991 Marker Spacing gt dd Marker Stack Plots Delete Marker Chart History Length Formatting x AutoScale Y Loose Fit 7 Go to the front panel From the pop up menu on the graph choose Y Scale AutoScale Y LabVIEW QuickStart Guide 3 16 National Instruments Corp
16. LabVIEW QuickStart Guide May 1997 Edition Part Number 321527A 01 Copyright 1997 National Instruments Corporation All rights reserved Conventions Used in This Manual The following conventions are used in this manual bold Bold text denotes a menu name palette name menu item or dialog box button or option Bold text also denotes a tip italic Italic text denotes a glossary term or a cross reference bold italic Bold italic text denotes a note monospace Text in this font denotes text or characters that you should literally enter from the keyboard This font also is used for the proper names of disk drives paths directories programs filenames and extensions Copyright Under the copyright laws this publication may not be reproduced or transmitted in any form electronic or mechanical including photocopying recording storing in an information retrieval system or translating in whole or in part without the prior written consent of National Instruments Corporation Trademarks s LabVIEW NI DAQ National Instruments and natinst com are trademarks of National Instruments Corporation Product and company names listed are trademarks or trade names of their respective companies Internet E mail info natinst com FTP Site ftp natinst com Web Address http www natinst com Q OOO Q International Australia 02 9874 4100 Austria 0662 45 79 90 0 Belgium 02 757 00 20
17. M for effective operation Windows NT LabVIEW requires Windows NT version 3 5 1 or greater with a minimum of 12 to 16 MB of RAM for effective operation LabVIEW for Windows NT only runs under Windows NT 80x86 computers Installation Procedures National Instruments Corporation LabVIEW Development System For instructions on how to install Lab VIEW see the LabVIEW Release Notes Evaluation Software Ifyou are installing from the Software Showcase CD run Showcase exe Go to the LabVIEW section in Virtual Instrumentation Tools and click demo If you are installing from the LabVIEW Evaluation Version CD see the readme txt file for installation instructions A 1 LabVIEW QuickStart Guide B block diagram C Common Solutions Gallery conditional terminal control Controls palette D data flow DAQ Channel Wizard DAQ Solution Wizard National Instruments Corporation A pictorial description or representation of a program or algorithm In LabVIEW the block diagram which consists of executable icons called nodes and wires that carry data between the nodes is the source code for the VI The block diagram resides in the Diagram window of the VI Option within the DAQ Solution Wizard in which you can select from numerous categories of common DAQ applications The terminal of a While Loop that contains a Boolean value that determines whether the VI performs another itera
18. VI Run 6 To stop running the VI click the Power toggle switch again to turn it to the FALSE position Because the While Loop executes only as long as its conditional terminal remains TRUE changing the value of the toggle switch to FALSE stops the loop National Instruments Corporation 2 11 LabVIEW QuickStart Guide Chapter 2 Virtual Instruments Add Timing to Your VI You can add a timing delay to your VI to plot the points more slowly on the waveform chart EP 1 LabVIEW QuickStart Guide fr You can complete this section in approximately 5 minutes Untitled 1 Diagram TOI x File Edit Operate Project Windows Help eo a 13pt Application Font z Fo z ia z Random Plot DBL Go to the block diagram Select Wait Until Next ms Multiple from the Functions Time amp Dialog subpalette Place the Wait Until Next ms Multiple function within the While Loop Online Help Description Show gt Replace Create Control Create Indicator From the pop up menu on the left side of the Wait Until Next ms Multiple function choose Create Constant When you access the pop up menu of the function make sure you position the pointer over the left side of the function Otherwise the constant you create is not wired to the function 2 12 National Instruments Corporation Chapter 2 Virtual Instruments Tip To access the pop up menu of a LabVIEW object right click on the obje
19. an application in LabVIEW It also guides you through the Search Examples feature to help you find examples in LabVIEW You will learn to do the following e Use the Search Examples feature to find and run an example e Create a new program in LabVIEW The VI you build generates data analyzes it then writes it to a file Search for Examples After viewing the Online Tutorial you are ready to run some examples in LabVIEW Cr You can complete this activity in approximately 5 minutes 4 i gt LabVIEW x vq LabVIEW 4 1 eae i Graphical Programming for Instrumentation _Quick Tip hs Select the Preferences gt gt Front Panel gt gt Use transparent labels DAG Solution Wizard option from the Edit menu Search Examples T Do not show this window when launching 1 Click Search Examples to see a listing of LabVIEW examples National Instruments Corporation 2 1 LabVIEW QuickStart Guide Chapter 2 Virtual Instruments amp Search Examples _ OI x Eile Edit Bookmark Options Help Search Examples You can find examples related to the following subjects Fundamentals 1 0 Interfaces Communication Arrays Data Acquisition DAG OLE Strings GPIB Dynamic Data Exchange DDE Serial Communication TCP IP Instrument Driver Template Vis Demonstrations Queues Instrument 1 0 Customizing Controls and Vis Analysis Execution Control Calling External 2 Click Analysis
20. an launch the DAQ Channel Wizard from within the DAQ Solution Wizard to configure your channels Then you can generate a DAQ solution from the Common Solutions Gallery x Note The DAQ Solution Wizard currently is available on Windows platforms only er You can complete this activity in approximately 15 minutes LF National Instruments Corporation 3 1 LabVIEW QuickStart Guide Chapter 3 Data Acquisition Configure Your Analog Input Channel The DAQ Solution Wizard guides you through naming and configuring your analog input channels fr You can complete this section in approximately 5 minutes EF i gt LabVIEW x i Graphical Programming for Instrumentation Quick Tip Select the Preferences gt gt Front Panel gt gt Use transparent labels DAQ Solution Wizard option from the Edit menu Search Examples LabVIEW Tutorial T Do not show this window when launching 1 To get started with analog input quickly and easily select DAQ Solution Wizard in the LabVIEW dialog box To access the LabVIEW dialog box either launch LabVIEW or close all open VIs if you already are running LabVIEW LabVIEW QuickStart Guide 3 2 National Instruments Corporation Chapter 3 Data Acquisition gt Welcome to the DAQ Solution Wizard This wizard will help you find solutions to common data acquisition applications quickly and easily The DAQ Channel Wizard is a tool for configuring the sensors and signals connected
21. an search for your instrument among over 600 instrument drivers available with free source code You then can download the instrument driver you need 3 Place the VI on the block diagram 4 Double click this HP34401A Getting Started VI to see the front panel and block diagram This VI controls the HP34401A Digital Multimeter The Getting Started VI is an example of a higher level program that calls the instrument driver subV s to control the instrument You see these subVIs in the palette of the instrument driver National Instruments Corporation 4 3 LabVIEW QuickStart Guide Chapter 4 Instrumentation gt HP34401A Getting Started vi File Edit Operate Project Windows Help Cae HAAtt 344014 Packard Multimeter Eo _ 0 000 0 Source D intemal jo FI Internal Function 0 DC Range Resolution T Auto Samples 1 TE DC Voltage auto EL Manual Res 1 5 5 Digits Manual Range 1 00 Manual Delay 0 M 3 55 Diaits 11 00 0 Copyright 1995 National Instruments Corporation ALL RIGHTS RESERVED 5 On the front panel verify the GPIB address of the HP34401A Getting Started VI The default address is 4 6 Run the VI to measure DC voltage Run 7 Using the Operating tool change the Function input and run the VI again to see other measurements Operating tool LabVIEW QuickStart Guide 4 4 National Instruments Corporation Chapter 4 Instrumentation gt HP34401A Getting Started
22. and enter the range in the appropriate boxes Click Next gt gt to continue t Analog Input Configuration Define the Sensor s Scaling amp Range 1 How does the sensor scale values from the physical range to the sensor output range l Map Ranges z 2 What is the sensor s output range min 0 00 max 1 00 lt lt Back Next gt gt Cancel 6 Define the scaling and range of the sensor Click Next gt gt to continue 3 6 National Instruments Corporation Chapter 3 Data Acquisition nalog Input Configuration Select the Hardware 1 What DAQ hardware will read this signal p evl DAQCard 700 2 Which channel on your DAG hardware Only the available channels are listed 0 gt lt gt Pin ACHO 3 What Analog Input Mode will be used Referenced Single Ended z lt lt Back Next gt gt Finish 7 Select your data acquisition hardware settings If you have multiple DAQ hardware devices installed choose the device that will read this signal Click Finish to configure your analog input channel National Instruments Corporation 3 7 LabVIEW QuickStart Guide Chapter 3 Data Acquisition DAQ Channel Wizard C WINDOWS niconfig daq DAO Channel Wizard Channels Devices Scales Device Name Device Channel Description a Temperature DAGCard 700 Channel 0 IC Temp Sensor Export Customize 8 Notice that your new
23. button on the front panel toolbar to see the how a LabVIEW VI runs 5 Click the sliders knobs and other controls to see how they affect the data 6 Stop the program by clicking the Acquisition switch to the off position National Instruments Corporation 2 3 LabVIEW QuickStart Guide Chapter 2 Virtual Instruments Build a Virtual Instrument This activity demonstrates how simple it is to chart analyze and save data in LabVIEW fr You can complete this activity in approximately 30 minutes E2 Create a User Interface You can create a graphical user interface on the front panel using controls and indicators from the Controls palette Cr You can complete this section in approximately 5 minutes E2 TETE x LabVIEW 41 i Graphical Programming for Instrumentation Quick Tip Saba Select the Preferences gt gt Front Panel gt gt Use transparent labels DAQ Solution Wizard option from the Edit menu Search Examples LabVIEW Tutorial CRC 2 T Do not show this window when launching 1 Create a new VI by selecting New VI in the LabVIEW dialog box LabVIEW QuickStart Guide 2 4 National Instruments Corporation Chapter 2 Virtual Instruments gt Untitled 1 _ OI x File EEG Operate Project Windows Help Import Picture from File Remove Bad Wires Ctr B Panel Order Edit Control g rom Selection Move Forward Ctrl k Move Back
24. complete this activity in approximately 5 minutes ae File Edit Operate Project Windows Help eo a balale 13pt Application Font z Ra z ia z Random Plot Description List Errors Insert Probe Custom Probe gt 1 From the pop up menu on the output wire of the Random Number function choose Probe A small number window appears to show the value of the data at that point Tip Make sure the Power toggle switch is turned on in the front panel National Instruments Corporation 5 3 LabVIEW QuickStart Guide Chapter 5 Debugging gt Random Number Example vi Diagram File Edit Operate Project Windows Help Random Plot DEL bal 2 Click the Step Into button on the toolbar The While Loop now Step Into na indicating that the program is executing in single step 3 Click the Step Into button again The Random Number function now flashes gt Random Number Example vi Diagram File Edit Operate Project Windows Help Random Plot DBL number X 124 LE number 0 to 1 wila 5 471461 Gi led 4 Click the Step Over button to step over the Random Number function The random number function executes so the output now Step O FA appears in the probe LabVIEW QuickStart Guide 5 4 National Instruments Corporation Chapter 5 Debugging 5 Using Step Into and Step Over buttons single step a few more times through the loop to view each random nu
25. ct On the Macintosh use command click Random Plot DBL 4 Type 250 in the millisecond multiple control to create a 250 ms delay between the generation of points to plot for the chart 5 Go to the front panel click the Power toggle switch to the TRUE position and run the VI to see the delay effect Click the Power toggle switch to the FALSE position to stop the VI Save this program as Random Number Example vi in the LabVIEW vi lib tutorial llb directory Run x gt Note Paths in this manual are denoted using backslashes to separate drive names directories and files National Instruments Corporation 2 13 LabVIEW QuickStart Guide Chapter 2 Virtual Instruments Add Analysis and File 1 0 to Your VI You can average the random data points you collected and save your data to a spreadsheet file fr You can complete this section in approximately 10 minutes EP 1 Gotothe block diagram window of the Random Number Example VI you created If your VI is not open already choose Random Number Example vi from the LabVIEW vi lib tutorial 11b directory gt Random Number Example vi Diagram File Edit Operate Project Windows Help E Eo ERREKI 13pt Application Font z Bo z te z gt Functions Random Plot DBL oes la TAFF and Statistics 2 Select Mean vi from the Functions Analysis Probability and Statistics subpalette
26. d consultants who are experts in LabVIEW and other National Instruments products The National Instruments Solutions directory lists additional libraries and utilities developed by our Alliance members to help you use LabVIEW In addition the Solutions directory lists expert LabVIEW consultants who can help you develop custom applications National Instruments offers you complete technical support You can use our Internet sites Web and FTP BBS or fax on demand systems to download valuable information and product examples question and answer documents and technical development tips A technical forum for LabVIEW is available on the Internet where you can discuss issues with other LabVIEW users In addition National Instruments has experienced Applications Engineers located throughout the world to assist you National Instruments Corporation 6 3 LabVIEW QuickStart Guide Installation Instructions This appendix describes the system requirements and installation procedures for LabVIEW Required System Configuration LabVIEW has the following system configuration requirements for Windows platforms Windows 3 1 LabVIEW runs in 386 enhanced mode with a minimum of 8 MB of RAM LabVIEW runs optimally on a computer with an 80486 CPU but LabVIEW can run on an 80386 based PC LabVIEW for Windows requires a coprocessor Windows 95 LabVIEW runs under any system that supports Windows 95 with 8 to 12 MB of RA
27. d VIs The graphical programming language used to develop LabVIEW applications General Purpose Interface Bus is the common name for the communications interface system defined in ANSI TEEE Standard 488 1 1987 and ANSI IEEE Standard 488 2 1987 Hewlett Packard the inventor of the bus calls it the HP IB Front panel object that displays output Tool used to create labels and enter text into windows Laboratory Virtual Instrument Engineering Workbench G 2 National Instruments Corporation nodes 0 Operating tool P Palette Positioning tool probe R RS 232 RS 485 S structure subpalette subVI T terminal tip strip National Instruments Corporation Glossary Execution elements of a block diagram consisting of functions structures and subVIs See also data flow wire Tool used to enter data into controls as well as operate them A display of pictures that represent possible options See also Controls palette Functions palette subpalette Tools palette Tool used to move select and resize objects Debugging feature for checking intermediate values in a VI Recommended Standard 232 a serial interface bus standard Recommended Standard 485 a serial interface bus standard Program control element such as a While Loop A palette contained in an icon of another palette VI used in the block diagram of another VI comparable to a subroutine Object or region on a
28. ectly to The Wiring tool allows you to see tip strip labels for terminals on nodes in the block diagram 8 LabVIEW QuickStart Guide Create another wire branch from the branch created in the previous step Wire this new branch to the 1D data input of the Write to Spreadsheet File VI You use the 1D data input because the While Loop creates a one dimensional row of data from the generated random numbers Random Plot Create Constant Fi EE Create Control Create Indicator A Ower o ry The black tunnel on the While Loop is a data exit terminal on the loop From the pop up menu on the black tunnel choose Enable Indexing The dashed wires change to solid orange wires Enable Indexing allows the While Loop to collect the data and pass it to the Mean VI as a data set when the loop terminates 2 16 National Instruments Corporation Chapter 2 Virtual Instruments 10 Go to the front panel Using the Operating tool click the Power Operating tool toggle switch to the TRUE position and run the VI Random Number Example vi File Edit Operate Project Windows Help ni es Random Plot ros 0 8 m N Power Ir it 0 I IT i A IL DIR Choose file to write Savein E Labview El c et il 4 Menus fa DelsL2 isu Cintools Q Project ja DelsL3 isu Examples A User lib a DelsL4 isu JHelp CI Vilib a DelsL5 isu a dagdry a iw_en lrm el De
29. figure a custom DAQ application The Common Solutions Gallery contains ready to run virtual instruments for common DAQ applications including benchtop instruments temperature measurement systems data logging systems and more Custom DAQ Applications are examples built automatically to meet input and output requirements that you specify Solutions Gallery Recommended Custom DAG Applications 2 Click Next gt in the DAQ Solution Wizard to open the Common Solutions Gallery LabVIEW QuickStart Guide 3 10 National Instruments Corporation Chapter 3 Data Acquisition Solution Wizard Step 3 of 3 Solution lt Wizard Gallery Categories Transducer Measurements Bench T op Instruments Voltage amp Current Measurement Control Applications Application Solution Description simple software timed data logger which recieves data from any source specified Time a and date stamped data are logged to a spreadsheet format file Welcome to the Common Solutions Gallery Select one of the application categories to view a list of common solutions Open any selected application by double clicking on the common solution or by selecting it and clicking the Open Solution button Common Solutions Simple Data Reader Advanced Data Logger Advanced Data Reader High Speed Data Logger High Speed Data Reader 3 Choose a solution to generate for your analog input channel For this example se
30. g tool from the Tools palette Positioning tool LabVIEW QuickStart Guide 2 6 National Instruments Corporation Chapter 2 Virtual Instruments gt Untitled 1 olx File Edit Operate Project Windows Help 0 50 Waly AF 0 MER ry 6 Create a waveform chart by selecting Controls Graph Waveform Chart This chart plots data one point at a time 7 Place the chart on the front panel and label it Random Plot 8 To change the scale of the waveform chart select the Operating tool from the Tools palette If the Tools palette is not visible select Operating tool Windows Show Tools Palette Double click 10 0 on the Y axis of the Random Plot indicator and enter 1 0 National Instruments Corporation 2 7 LabVIEW QuickStart Guide Chapter 2 Virtual Instruments Build the Block Diagram Now you can create the source code in the block diagram of your VI Cr You can complete this section in approximately 5 minutes 1 Go to the block diagram by choosing Show Diagram from the Windows menu or clicking in the block diagram window The two terminals on the block diagram correspond to the Power toggle switch and the Random Plot waveform chart on the front panel Untitled 1 Diagram File Edit Operate Project Windows Help Oo E lal P 32 13pt Application Font z Ro z ia z Functions E3 Random Plot s 2 Select Random Number 0 1 from the Functions Numeric
31. he front panel and the block diagram The Tools palette contains the tools you use to edit and debug front panel and block diagram objects Controls Palette You use the Controls palette in the front panel The Controls palette contains the front panel controls and indicators you use to create the user interface if Controls x LabVIEW QuickStart Guide 1 6 National Instruments Corporation Chapter 1 Introduction to LabVIEW Functions Palette You use the Functions palette in the block diagram The Functions palette contains the objects you use to program your VI such as arithmetic instrument I O file I O and data acquisition operations pee ona Bier Data Flow LabVIEW VIs follow a dataflow model for program execution The block diagram consists of nodes such as VIs structures and terminals from the front panel These nodes are connected by wires which define the flow of data through the program The execution of a node occurs when all its inputs are available When a node finishes executing it releases all its outputs to the next node in the dataflow path er a per DBL 10 00 h DEL DBL 10 00 National Instruments Corporation 1 7 LabVIEW QuickStart Guide Chapter 1 Introduction to LabVIEW Where Do Start If you are new to LabVIEW the LabVIEW Online Tutorial and the LabVIEW QuickStart Guide help you get started quickly The LabVIEW Online Tuto
32. is the graphical user interface of your LabVIEW VI This interface collects user input and displays program output The front panel can contain knobs push buttons graphs and more Random Number Example I _ OI x File Edit Operate Project Windows Help 5 Oo 13pt Application Font z Ro z te z Power Random Plot 10 fe I i D J M il N f Wet ae rt soy 1 A control input 2 An indicator output 1 4 National Instruments Corporation Chapter 1 Introduction to LabVIEW Block Diagram The block diagram contains the graphical source code of your VI In the block diagram you program your VI to control and perform functions on the inputs and outputs you created on the front panel The block diagram can include functions and structures from the built in LabVIEW VI libraries It also can include terminals that are associated with controls and indicators created on the front panel Random Number Example I Diagram _ OI x File Edit Operate Project Windows Help oO a bal P 4 1 3pt Application Font z Fo z a z 1 A function 2 A structure 3 Terminals from the front panel National Instruments Corporation 1 5 LabVIEW QuickStart Guide Chapter 1 Introduction to LabVIEW Palettes LabVIEW palettes give you the options you need to create and edit your front panel and block diagram Tools Palette You use the Tools palette in both t
33. kits are available for a variety of application needs LabVIEW QuickStart Guide 1 2 National Instruments Corporation Chapter 1 Introduction to LabVIEW Why Should Use LabVIEW LabVIEW empowers you to build your own solutions for scientific and engineering systems LabVIEW gives you the flexibility and performance of a powerful programming language without the associated difficulty and complexity LabVIEW has given thousands of successful users a faster way to program instrumentation and data acquisition systems By using LabVIEW to prototype design test and implement your instrument systems you can reduce system development time and increase productivity by a factor of 4 to 10 LabVIEW also gives you the benefits of a large installed user base years of product feedback and powerful add on tools Finally National Instruments support services and user network ensure the successful development of your solutions National Instruments Corporation 1 3 LabVIEW QuickStart Guide Chapter 1 Introduction to LabVIEW How Does LabVIEW Work Front Panel LabVIEW QuickStart Guide All LabVIEW programs or virtual instruments VIs have a front panel and a block diagram The palettes in LabVIEW contain the options you use to create and modify your VI This section overviews the LabVIEW front panel block diagram and palettes It also explains the dataflow model for program execution that LabVIEW follows The front panel
34. lect Data Logging in the Gallery Categories list 4 Select Simple Data Logger in the Common Solutions list 5 Click Next gt to continue National Instruments Corporation 3 11 LabVIEW QuickStart Guide Chapter 3 Data Acquisition B Solution Wizard Specify Inputs Outputs Chosen Solution Simple Data Logger For this solution you must specify the Temperature Channel Name s you would like to use lt Back Open Solution 6 Select Temperature as the input channel to use for the solution 7 Click Open Solution to generate the solution LabVIEW QuickStart Guide 3 12 National Instruments Corporation Chapter 3 Data Acquisition E Tima Daia Logg qa 1 2 i a 5 6 LE 8 Click the Run button to take data from your configured analog input channel and log the data to a file A file dialog box prompts you for a file name Type temp txt and click Save Run 9 Click the STOP button at the lower right corner of the front panel to stop the VI Use any text editor to view temp txt Tip You can customize the front panel and block diagram of the VI and save your customized solution to disk 10 Close this VI and save any changes you want to keep 11 Go to the DAQ Solution Wizard window and click lt Back to browse other gallery categories and common solution VIs 12 Click Quit Wizard to exit National Instruments Corporation 3 13 LabVIEW QuickStart Guide Chapter 3 Data Acquisition
35. lsL1 isu labview exe I File name fdata txt Save as type fal m0 Cancel 11 When you turn off the power you see the mean of your data and a file dialog box that prompts you for the name of the random number file Type data txt and click Save Tip The mean does not appear until the data is collected when the power is turned off 12 Use any text editor to open data txt and view the data Note You can find the solution to this activity in LabVIEW vi 1ib tutorial 1llb Random Number Example Solution VI National Instruments Corporation 2 17 LabVIEW QuickStart Guide Data Acquisition This chapter teaches you how to use LabVIEW to acquire data from data acquisition hardware If you only use standalone instruments and control them with GPIB VXL or serial standards see Chapter 4 Instrumentation You will learn to do the following e Use the DAQ Solution Wizard to generate solutions for data acquisition applications Use the DAQ Channel Wizard to configure your analog input channel Generate a solution from the Common Solutions Gallery e Add analog input to the VI you created in Chapter 2 Virtual Instruments Note Refer to your hardware manual or the NI DAQ online Help file for data acquisition hardware installation and configuration instructions Use the DAQ Solution Wizard If you are using DAQ hardware you must configure your analog input channels You c
36. mber as it is generated in the VI gt Random Number Example VI Diagram ioj x File Edit Operate Project Windows Help SOI bales 92 4 Random Plot Fra i DEL number 0 to 1 6 9075E 1 1 6 Torun your VI in normal mode deselect the Pause button Pause 7 Go to the front panel and turn off the Power toggle switch to stop the VI Save the collected data to data txt National Instruments Corporation 5 5 LabVIEW QuickStart Guide Where To Go From Here Online Help This chapter teaches you how to use Online Help in LabVIEW It also outlines National Instruments commitment to your success and the additional resources available to you To learn more about LabVIEW programming techniques consult the LabVIEW Tutorial Manual and the LabVIEW User Manual available with the LabVIEW development system National Instruments Corporation 6 1 LabVIEW QuickStart Guide All built in LabVIEW VIs come with a complete online reference When you find an unfamiliar VI place it on your block diagram and choose Online Help from the pop up menu on the VI Online Help gives you a complete description of the VI functionality and parameters gt Untitled 1 Diagram OI x File Edit Operate Project Windows Help 1 Co 2 bal G2 l 13pt Application Font Fo is Online Help Description 4 Show gt Replace gt a Create Constant Create
37. node through which data passes A text banner that displays the name of an object control or terminal G 3 LabVIEW QuickStart Guide Glossary Tools palette tunnel V VI virtual instrument VISA VXI W waveform chart While Loop wire wire branch wire junction wire segment Wiring tool LabVIEW QuickStart Guide Palette containing the tools you can use to edit and debug front panel and block diagram objects Data entry or exit terminal on a structure See virtual instrument A program in the graphical programming language G that models the appearance and function of a physical instrument Virtual Instrument Software Architecture A single interface library for controlling GPIB VXI RS 232 and other types of instruments VME eXtensions for Instrumentation bus An indicator that plots data points at a certain rate Loop structure that repeats a section of code until a condition is met Comparable to a Do loop or a Repeat Until loop in conventional programming languages Data path between nodes See also data flow A section of wire that contains all the wire segments from one junction to another from a terminal to the next junction or from one terminal to another if there are no junctions in between The point where three or more wire segments join A single horizontal or vertical piece of wire Tool used to define data paths between terminals Resembles a spool of wire G
38. oration Chapter 3 Data Acquisition Random Number Example VI File Edit Operate Project Windows Help 8 Using the Labeling tool highlight the chart label and change the label to Temperature Chart Labeling tool 9 Using the Operating tool click the Power toggle switch to the TRUE position Operating tool 10 Click the Run button to see the data chart Run 11 Click t he Power toggle switch to stop the VI 12 In the file dialog box enter a name such as data txt and click Save This saves your temperature data to a spreadsheet file 13 Save this VI as Acquire Temperature vi in the LabVI EW vi lib tutorial 11b directory For multiple point acquisition waveform generation digital I O or counter timer applications see the LabVIEW Data Acquisition Basics Manual Use the Search Examples feature found in both the LabVIEW dialog box and the Help menu for examples and information Search Examples guides you to DAQ examples for reference Use the DAQ Solution Wizard found in both the LabVIEW dialog box and the File menu to automatically generate DAQ applications that you can customize National Instruments Corporation 3 17 LabVIEW QuickStart Guide Instrumentation This chapter teaches you how to use LabVIEW to acquire data from standalone instruments controlled by GPIB VXI RS 232 and other hardware standards You will learn to do the following e Use an instrument dri
39. rial introduces you to the LabVIEW environment The QuickStart Guide teaches you how to build VIs for data acquisition and instrument control and how to debug these VIs It also teaches you how to use the Search Examples feature and the DAQ Solution Wizard fr You can complete the activities in this book in approximately 90 minutes E2 Online Tutorial To learn about the LabVIEW environment first launch the LabVIEW Online Tutorial from the LabVIEW dialog box Cr You can complete the online tutorial in approximately 15 minutes EF i gt LabVIEW x LabVIEW 41 m i Graphical Programming for Instrumentation Open RRR RR Quick Tip Select the Preferences gt gt Front Panel gt gt Use transparent labels DAQ Solution Wizard option from the Edit menu Search Examples LabVIEW Tutorial IT Do not show this window when launching After you finish the Online Tutorial continue with the activities in the QuickStart Guide to learn how to build LabVIEW programs for data acquisition and instrument control You should complete the activities in this book in the order in which they appear because subsequent activities build upon the sample programs you will create Approximate completion times are given for each activity and each section within an activity LabVIEW QuickStart Guide 1 8 National Instruments Corporation Virtual Instruments This chapter teaches you step by step how to create
40. those names in your program The DAQ Channel Wizard also conditions those channels so that signal conditioning such as scaling factors and cold junction compensation are performed transparently to you 3 4 National Instruments Corporation Chapter 3 Data Acquisition an Analog Input Configuration Analog Input Configuration You are about to configure a channel First 1 Name your channel Temperature 2 Give it a description Temp Sensor 3 Choose the sensor type or measurement type which best matches your setup l Voltage Measurement FN This will be a temperature measurement Cancel Type your channel name and description in the appropriate text boxes You can select the type of sensor in the drop down list box Select the checkbox to mark the channel as a temperature measurement Click Next gt gt to continue Tip If you are not taking a temperature reading use parameters in the DAQ Channel Wizard appropriate for your measurement National Instruments Corporation 3 5 LabVIEW QuickStart Guide Chapter 3 Data Acquisition LabVIEW QuickStart Guide 5 t Analog Input Configuration Define the Physical Quantity You are measuring temperature 1 What is its unit DegF z 2 What is its measurement range min 0 00 Deg F max 100 00 Deg F lt lt Back Next gt gt Cancel Define the physical quantity that you are measuring Select the units
41. tion Front panel object for entering data to a VI interactively or to a subVI programmatically Palette containing front panel controls and indicators Programming system consisting of executable nodes in which nodes execute only when they have received all the required input data and produce output automatically when they have executed LabVIEW is a dataflow system Utility that guides you through naming and configuring your DAQ analog input channels Utility that guides you through specifying your DAQ application from which it provides a custom DAQ solution G 1 LabVIEW QuickStart Guide Glossary E Enable Indexing execution highlighting F front panel function Functions palette GPIB indicator L Labeling tool LabVIEW LabVIEW QuickStart Guide Option that allows you to build a set of data to be released at the termination of a While Loop With indexing disabled a While Loop releases only the final data point generated within the loop Feature that animates VI execution to illustrate the data flow in a VI The interactive user interface of a VI Modeled from the front panel of physical instruments it is composed of switches slides meters graphs charts gauges LEDs and other controls and indicators Built in execution element comparable to an operator function or statement in a conventional language Palette containing block diagram structures constants communication features an
42. to your DAQ board The wizard handles data scaling and unit conversion to greatly simplify programming Throughout your program you simply refer to your signals by the channel name specified in the DAQ Channel Wizard How would you like to program your channels Use channel names specified in DAQ Channel Wizard Recommended Go to DAQ Channel Wizard Program the input scaling and conversion myself Additional Information on the DAQ Channel Wizard Back Next gt Cancel 2 When the Welcome to the DAQ Solution Wizard dialog box opens click Go to DAQ Channel Wizard National Instruments Corporation 3 3 LabVIEW QuickStart Guide Chapter 3 Data Acquisition x Note Ifyou are using the evaluation version of LabVIEW and you do not have hardware the DAQ Channel Wizard will be disabled However you willsee a list of channels that you can use to generate solutions Name DAQ Channel Wizard C WINDOWS niconfig daq DAO Channel Wizard Channels Devices Scales Click New to create a new channel configuration Device Name Device Channel Description a New Copy Delete Go Live Export 4 Customize LabVIEW QuickStart Guide Open Save Save As Help Exit Click New in the DAQ Channel Wizard dialog box to configure a new channel The DAQ Channel Wizard helps you configure analog input channels by name so you can use
43. truments Wire and Run Your VI You need to add wiring to define the data flow in your VI After your VI is complete you can run it from the front panel to see the data plot to your chart fr You can complete this section in approximately 5 minutes A 1 Select the Wiring tool from the Tools palette If the Tools palette is on not visible select Windows Show Tools Palette Wiring tool FETAN x Random Plot DBL ei E 2 Wire the Random Number function to the Random Plot chart terminal To create a wire click on the Random Number function move to the Random Plot chart and click again to terminate the wire and a tip strip appears that labels the terminal When the correct Tips When you position the Wiring tool over a terminal the terminal blinks terminal blinks click to wire to or from that terminal If you see black dashed wires select Remove Bad Wires from the Edit menu 3 Wire the Power toggle switch terminal to the conditional terminal conditional terminal on the While Loop LabVIEW QuickStart Guide 2 10 National Instruments Corporation Chapter 2 Virtual Instruments gt Untitled 1 OI x File Edit Operate Project Windows Help Wi i Ii i Wel eg AF MERK 4 Goto the front panel and select the Operating tool Click the Operating tooi Power toggle switch to turn it to the TRUE position 5 Click the Run button on the toolbar to run the
44. ver to communicate with your instrument e Runthe Demo Scope VIif you do not have instrument I O hardware installed Instrument 1 0 LabVIEW communicates with most instruments through instrument drivers which are libraries of VIs that control programmable instruments LabVIEW instrument drivers simplify instrument control and reduce test development time by eliminating the need to learn the low level programming protocol for each instrument Instruments obey a command set to respond to remote control and requests for data When you use LabVIEW instrument drivers you run intuitive high level command VIs such as the Read DC Voltage VI for a digital multimeter or the Configure Time Axis VI for a digital oscilloscope The called instrument driver VI automatically sends the appropriate instrument specific command strings to the instrument The foundation for LabVIEW instrument drivers is the VISA Virtual Instrument Software Architecture VI library a single interface library for controlling GPIB VXI RS 232 and other types of instruments Instrument drivers using VISA are scalable across instrument I O interfaces National Instruments Corporation 4 1 LabVIEW QuickStart Guide Chapter 4 Instrumentation Use an Instrument Driver In this activity you use an instrument driver to communicate with your instrument fr You can complete this activity in approximately 5 minutes LP Tip If you do not have instrument I O hardware
45. vi Diagram File Edit Operate Project Windows Help DELIRARE Initialize Application Example Close Manual Delay 0 Samples 1 Function 0 DC GPIB Address 4 veu Measurements error in no error Er fer error out Source 0 Internal Range Resolution T Auto eae Manual Range 1 00 Manual Res 1 5 5 Digits 8 Examine the block diagram The HP34401A Initialize subVI is called first followed by a subVI to control the instrument and ending with the HP 34401A Close subVI Instrument Drivers Your Instrument When you write your own program with an instrument driver remember to call Initialize first followed by the series of sub VIs you want to use to control the instrument and finally the Close subVI to close the instrument session Tip You can find the instrument driver sub VIs under Functions National Instruments Corporation 4 5 LabVIEW QuickStart Guide Chapter 4 Instrumentation Run the Demo Scope VI If you do not have instrument I O hardware installed you can run the Demo Scope VI to see an instrument I O example The Demo Scope VI is the demonstration equivalent of a Getting Started VI for an actual instrument driver A Cr You can complete this activity in approximately 5 minutes 1 Open the Demo Scope VI instrument driver in LabVIEW vi lib tutorial 1lb Demo Scope VI OI x File Edit Operate Project Windows Help CHANN
46. ward Ctrl Move To Front Ctrl Shift K Move To Back Ctrl Shift J Preferences User Name Select Palette Set gt basic Edit Control amp Function Palettes daq_view default t amp m_view 2 On the new front panel choose Edit Select Palette Set basic action The sequence Edit Select Palette Set basic directs you to open the Edit menu click Select Palette Set and finally choose basic as your palette Tips The symbol leads you through nested menu and palette items to a final The basic palette you select for this activity is a small subset of the LabVIEW libraries You can select the default palette to view the entire functionality of LabVIEW National Instruments Corporation 2 5 LabVIEW QuickStart Guide Chapter 2 Virtual Instruments gt Untitled 1 File Edit Operate Project Windows Help 3 Select Vertical Toggle Switch from the Controls Boolean subpalette Select icons from the palette in the same way you select items from a menu 4 Move your pointer into the front panel and click to place the toggle switch on the front panel 5 Type Power into the label for the toggle switch If the label disappears choose Show Label from the pop up menu on the toggle switch To access the pop up menu right click on the toggle switch on the Macintosh command click on the toggle switch Tip To rearrange or resize objects and wires use the Positionin
Download Pdf Manuals
Related Search
Related Contents
CPSappl - Institut Royal de la Culture Amazighe Kensington USB Mini Dock with Ethernet Natural Music Song Databases COMOS 10.1 - Liesmich - Service STM32W-SK and STM32W-EXT starter and extension kits for HCS 1.5. Vis à compression sans tête. Pentax Optio M10 User`s Manual Copyright © All rights reserved.
Failed to retrieve file