Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Creating Elemental I/O Devices, Classes, Pins, and Resources (Embedded Targets)

LabVIEW Microprocessor SDK 2.5 Help
August 2007

NI Part Number:
372197A-01

»View Product Info

After you create the plug-in VIs, use the Elemental I/O Device Wizard to define Elemental I/O devices, classes, pins, and resources for an embedded target. The wizard determines which I/O resources are available for an embedded target, what attributes and I/O properties those resources have, and which VIs the Elemental I/O Node and Elemental I/O Property Node call to perform I/O operations.

Complete the following steps to run the Elemental I/O Device Wizard.

  1. To open the wizard by running EIOD_CreateDeviceWizard.vi, which is located in the following directory:
    labview\resource\Framework\Providers\Builds\Embedded\EIOEditor\EIOCreator\EIODeviceEditor.llb


    (Embedded Development Module) Select Tools»Embedded Tools»Elemental I/O Device Wizard to display the Elemental I/O Device Wizard.
  2. On the Name the Device page of the wizard, enter the name of the new device.
  3. Enter a description for the Elemental I/O device in the I/O Device Description text box. LabVIEW displays what you enter here in the Select Elemental I/O dialog box.
    Note  You also can click the Load existing I/O target button to select an existing device.
  4. Click the Next button to display the Select the Elemental I/O Classes page.
  5. Select the I/O classes the device supports. The I/O classes only affect the icon that appears on the I/O Node and the name of the I/O folder in which the resources show up in the project. The I/O classes have no functional effect on the I/O.
  6. Click the Next button to display the Add I/O Resources page.
  7. Add resources. Use this page of the wizard to name the I/O resources. These are the default names that appear when a user right-clicks the embedded target in the Project Explorer window and selects New» Elemental I/O from the shortcut menu.
  8. Click the Next button to display the Add Pins page.
  9. (Optional) Define the physical pins on the device. Use pins to reserve shared resources. You might have physical pins on the device that can be used for analog or digital input but only one can be configured. In this case, you can name these pins and assign them to the I/O resources. When a user adds an I/O resource that uses a pin, the user cannot add any other I/O resource that uses that same pin. If you do not need to reserve shared resources, do not create any pins. If you have shared resources, National Instruments recommends defining the pins.
  10. Click the Next button to display the Assign the Pins to Resources page.
  11. (Optional) Define the connection between the pins and the resources you created. You can assign multiple pins to each resource, and you can assign the same pin to multiple resources. If you do not need to reserve shared resources, do not assign any pins to the I/O resources. If you do have shared resources, National Instruments recommends assigning pins to the I/O resources.
  12. Click the Next button to display the Add Implementation VIs to Resources page.
  13. Associate the plug-in VIs with the resources. For each I/O resource, you must have at least one read or write I/O Implementation VI. All other VIs are optional.
  14. Click the Next button to display the Generating Elemental I/O VIs and Resource File page.
  15. Select the target to which you want to add Elemental I/O and click the Select Target button. When you select a target, LabVIEW displays the path in the Output Directory.
    Note  The eio.xml file must be in the directory or subdirectory specified in the Output Directory box.
  16. Click the Generate button. The wizard creates a directory in the location you specify in the Output Directory and adds several VIs the Elemental I/O framework needs and a eio.xml file in the new directory. The eio.xml file saves the info you enter in the Elemental I/O Wizard.
  17. Click the Finish button to exit the wizard.
Note  If you have more than one Elemental I/O device for a target, you select which Elemental I/O device by right-clicking and selecting Select Elemental I/O from the shortcut menu.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit