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.
- 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.
- On the Name the Device page of
the wizard, enter the name of the new device.
- 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. |
- Click the Next button to
display the Select the Elemental I/O Classes page.
- 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.
- Click the Next button to display
the Add I/O Resources page.
- 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.
- Click the Next button to display
the Add Pins page.
- (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.
- Click the Next button to display
the Assign the Pins to Resources page.
- (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.
- Click the Next button to display
the Add Implementation VIs to Resources page.
- 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.
- Click the Next button to display
the Generating Elemental I/O VIs and Resource
File page.
- 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. |
- 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.
- 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. |