Manuel d'utilisation / d'entretien du produit NI LabVIEW du fabricant National Instruments
Aller à la page 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 .
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté National Instruments NI LabVIEW c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du National Instruments NI LabVIEW - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation National Instruments NI LabVIEW, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le National Instruments NI LabVIEW va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le National Instruments NI LabVIEW, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du National Instruments NI LabVIEW.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le National Instruments NI LabVIEW. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei National Instruments NI LabVIEW ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.