National Instruments NI LabVIEW manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of National Instruments NI LabVIEW, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of National Instruments NI LabVIEW one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of National Instruments NI LabVIEW. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of National Instruments NI LabVIEW should contain:
- informations concerning technical data of National Instruments NI LabVIEW
- name of the manufacturer and a year of construction of the National Instruments NI LabVIEW item
- rules of operation, control and maintenance of the National Instruments NI LabVIEW item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of National Instruments NI LabVIEW alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of National Instruments NI LabVIEW, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the National Instruments service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of National Instruments NI LabVIEW.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the National Instruments NI LabVIEW item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    Getting Started with the NI LabVIEW Embedded Module for ADI Blackfin Processors V ersion 2.0 The NI LabVIEW Embedded Module fo r ADI Blackfin Pro cessors is a comprehensive graphical developm ent environment for embedded design. Jointly developed by Analog Devi ces and National Instruments, this module seamlessly integrates th e LabVIEW development[...]

  • Page 2

    Embedded Module for Bl ackfin Pr ocessors 2 ni.com Creating the Front Panel ....................... .............. .............. ........... .....13 Creating the Block Diagram ....................... .............. .............. ..........14 Configuring the Targ et and Debuggi ng Options .............. .............. ..16 Creating the ADSP-BF537 [...]

  • Page 3

    © National Instruments Corporation 3 Em bedded Module for Blackfin Processors After you install LabV IEW , refer to the LabVIEW Upgrad e Notes , av ailable by selecting Start »All Programs»Na tional Instrum ents» LabVIEW»LabVIEW Manuals and opening LV_Upgrade_Notes.pdf , for more informati on about new featur es in LabV IEW 8.2. Refer to th e [...]

  • Page 4

    Embedded Module for Bl ackfin Pr ocessors 4 ni.com Tip If the installer does no t automatically begin, double-cli ck VisualDSP++4.5.exe on the CD to begin installation. 3. After you finish installing V isualDSP++, select Start»All Programs» Analog Devices»VisualDSP++ 4.5» Maintain this in stallation . 4. Select Apply a downloaded Update and cli[...]

  • Page 5

    © National Instruments Corporation 5 Em bedded Module for Blackfin Processors Installing the EZ-KIT Lite or Emulator Caution Be careful when removing the board from the package and handling the board to av o id the discharge of static electricity , which might damage some components. The EZ-KIT Lite or USB-based IC E board is designed to run as a [...]

  • Page 6

    Embedded Module for Bl ackfin Pr ocessors 6 ni.com On the board, the power LED illu minates, and you might see other visible acti vity , such as blinking LEDs. The connection activ ates the W i ndows F ound Ne w Hardware W izard. 2. Follo w the instructions on the screen to inst all the software automatically . A Windo ws message notifies you when [...]

  • Page 7

    © National Instruments Corporation 7 Em bedded Module for Blackfin Processors LabVIEW 8.2.1 project ( .lvproj ) files. Complete the f ollo wing step s to update embedded project f iles for use with LabVIEW 8.2.1 and the Embedded Module for Blackfin Processors 2.0. 1. Launch LabVIEW 8.2.1. 2. Select File»Open in the Getting Started windo w and nav[...]

  • Page 8

    Embedded Module for Bl ackfin Pr ocessors 8 ni.com 8. Select File»Sav e in the Project Explorer window to sav e the project. LabVIEW sav es a copy of all the VIs for the project in the same folder as the .lvproj fi le . Refer to the Building, Downlo ading, and Running a Blackfin Applicati on section for information about building a Blackfin VI int[...]

  • Page 9

    © National Instruments Corporation 9 Em bedded Module for Blackfin Processors Tu t o r i a l Use this tutorial to learn how to cr eate a LabVIEW project and build, run, and debug a Blackfin application. Note Y ou can create a project and Blackfin VI wi thout connecting a Blackfin target to the host computer . Howe v er , you must connect a Bl ackf[...]

  • Page 10

    Embedded Module for Bl ackfin Pr ocessors 10 ni.com 3. Right-click Project:Untitled Project 1 in the Project Explorer window and select New»Targets and Devices from the shortcut m enu to open the Add Targets and Devic es dialog box as shown in Figure 3. Figure 3. Add T argets and Device s Dialog Box[...]

  • Page 11

    © National Instruments Corporation 11 E mbedded Mod ule for Blackfin Processors 4. Expand the Embedded folder and select Analog Devices ADSP-BF537 as shown in Figure 4. Figure 4. Adding a New Device 5. Click the OK button to add the target to the project. The tar g et appears in the Project Explorer window as sho wn in Figure 5. Figure 5. Adding t[...]

  • Page 12

    Embedded Module for Bl ackfin Pr ocessors 12 ni.com 6. Expand the ADSP-BF537 target as shown in Figure 6. LabVIEW automatically adds Dependencies and Build Specifications under t he target. SubVIs appear under Dependencies when you add a VI that contains subVIs to a project. Build specifications you create for a target in a project appear under Bui[...]

  • Page 13

    © National Instruments Corporation 13 E mbedded Mod ule for Blackfin Processors Creating the Front Panel The front panel is the user interface fo r a VI. You can use the front panel as a debugging interface for Blackfin appl ications you create with LabVIEW. This tutorial includes an LED indicator that lights if the input exceeds a threshold value[...]

  • Page 14

    Embedded Module for Bl ackfin Pr ocessors 14 ni.com 2. Rename the controls by double-clicking the labels and entering new names as shown in Figure 9. • Change one of the numeric controls to input . • Change the other numeric control to threshold . • Change the numeri c indicator to output . • Change the round LED to threshold exceeded? . Ti[...]

  • Page 15

    © National Instruments Corporation 15 E mbedded Mod ule for Blackfin Processors 3. Create the block diagram as sho wn in Figure 10. a. Place a While Loop located on the Structures palette around the controls and indicator on the block diagram. While Loops repeat the subdiagram inside it unt il the conditional terminal, whi ch is an input terminal,[...]

  • Page 16

    Embedded Module for Bl ackfin Pr ocessors 16 ni.com 4. Sav e the VI as Blackfin Tutorial . Configuring the T arget and Debugging Options The target options you set tell La bVIEW how the Blackfin target is connected to the host co mputer. The EZ-KIT Lite is connected to the host computer through the USB port, which also is know n as a debug agent. N[...]

  • Page 17

    © National Instruments Corporation 17 E mbedded Mod ule for Blackfin Processors 5. Click the Debug Options tab to configure the debug options you can use while debugging a Blackf in application on the Blackfin target. Tip Click the Help button to open the LabVIEW Help and read a description of each deb ug setting. 6. Change the Front Panel/Probe U[...]

  • Page 18

    Embedded Module for Bl ackfin Pr ocessors 18 ni.com Creating the ADSP-BF537 Build Specification Build specificatio ns tell the LabVIEW C Code Generat or how to generate the C code and build the Blackfin VI into a Blackfin app lication. You can create the build specification when you create a project or wait until you are ready to build the Blackfin[...]

  • Page 19

    © National Instruments Corporation 19 E mbedded Mod ule for Blackfin Processors C code for synchronization and data transfer . Y ou must place a checkmark in the Enable lwIP TCP/IP support checkbox on the Advanced tab before you can select the TCP port debug option. Note Y ou must connect the Blackfin tar get to the host computer with an Ethernet [...]

  • Page 20

    Embedded Module for Bl ackfin Pr ocessors 20 ni.com 6. Click the Processor tab and verify the silicon revision in the Silicon revision pu ll-down menu, sho wn in Figure 14, matches the silicon revision on the hardware. Figure 14. Verifying the Silicon Revisio n[...]

  • Page 21

    © National Instruments Corporation 21 E mbedded Mod ule for Blackfin Processors 7. Select Source Files from the Category list and select Blackfin Tutorial.vi in the source f iles list. Click the blue right arrow button, sho wn at left, to mov e the VI from the source files list to the Top-level VI text box as sho wn in Figure 15. Figure 15. Select[...]

  • Page 22

    Embedded Module for Bl ackfin Pr ocessors 22 ni.com 8. Click the OK button and expand the Build Specifications item in the Project Explorer window . The build specifi cation you just created appears under the Blackfin tar get as shown in Figure 16. Figure 16. Blackfin Build Spec ificatio n in the Project Explorer Window 9. T riple-click VDK Applica[...]

  • Page 23

    © National Instruments Corporation 23 E mbedded Mod ule for Blackfin Processors Building, Downloading, and Ru nning a Blackfin Application After you develop the Blackfin VI on the host compu ter, you build the Blackfin VI into a Blackfin applicatio n you can run on a Blackfin target. When you build a Blackfin applicati on, the La bVIEW C Code G en[...]

  • Page 24

    Embedded Module for Bl ackfin Pr ocessors 24 ni.com Debugging with Brea kpoints and Probes Complete the f ollowing st eps to deb ug the Blackfin tuto rial application with breakpoints and probes. 1. Switch to the block diagram if it is not visi ble. 2. Right-click the Multi ply function and select Set Breakpoint from the shortcut menu. The breakpoi[...]

  • Page 25

    © National Instruments Corporation 25 E mbedded Mod ule for Blackfin Processors 4. Add a probe to see the v alues on the wire coming into the Multi ply function. a. Click the wire coming into the x input. b . Click the wire coming into the y input. A floating Probe window appears after you create each probe. LabVIEW numbers the Probe windows autom[...]

  • Page 26

    National Instruments, NI, ni.com, and LabVIEW are tradem arks of National Instruments Corporation. Refer to t he Terms of Use section on ni.com/legal for more information a bout National Instruments trademarks. Other product and compan y names mentioned herein are trademarks or trade names of their respective companie s . For patents covering Natio[...]