National InstrumentsメーカーNI LabVIEWの使用説明書/サービス説明書
ページ先へ移動 of 26
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.
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 .
© 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.
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.
© 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.
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 .
© 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.
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 .
© 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 .
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.
© 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.
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.
© 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.
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 .
© 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.
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.
© 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.
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.
© 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.
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.
© 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.
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.
© 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.
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.
© 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.
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 .
デバイスNational Instruments NI LabVIEWの購入後に(又は購入する前であっても)重要なポイントは、説明書をよく読むことです。その単純な理由はいくつかあります:
National Instruments NI LabVIEWをまだ購入していないなら、この製品の基本情報を理解する良い機会です。まずは上にある説明書の最初のページをご覧ください。そこにはNational Instruments NI LabVIEWの技術情報の概要が記載されているはずです。デバイスがあなたのニーズを満たすかどうかは、ここで確認しましょう。National Instruments NI LabVIEWの取扱説明書の次のページをよく読むことにより、製品の全機能やその取り扱いに関する情報を知ることができます。National Instruments NI LabVIEWで得られた情報は、きっとあなたの購入の決断を手助けしてくれることでしょう。
National Instruments NI LabVIEWを既にお持ちだが、まだ読んでいない場合は、上記の理由によりそれを行うべきです。そうすることにより機能を適切に使用しているか、又はNational Instruments NI LabVIEWの不適切な取り扱いによりその寿命を短くする危険を犯していないかどうかを知ることができます。
ですが、ユーザガイドが果たす重要な役割の一つは、National Instruments NI LabVIEWに関する問題の解決を支援することです。そこにはほとんどの場合、トラブルシューティング、すなわちNational Instruments NI LabVIEWデバイスで最もよく起こりうる故障・不良とそれらの対処法についてのアドバイスを見つけることができるはずです。たとえ問題を解決できなかった場合でも、説明書にはカスタマー・サービスセンター又は最寄りのサービスセンターへの問い合わせ先等、次の対処法についての指示があるはずです。