Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Set the Power-Up States of My 78xx R Series Device?

Primary Software: LabVIEW Modules>>FPGA Module
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Reconfigurable I/O (RIO)>>R Series

Problem:
I would like to set the DIO lines of my 781xR or 783xR to a given state upon power-up. How do I do this?

Solution:
As the manual for R-series devices describes, the DIO lines are high impedance upon startup. In order for the DIO lines on the device to have a different power-on state, you need to create an FPGA VI and set the device to both load and run this VI at startup.

To have the R-series device load and run a VI at startup, do the following:
  1. Create a new project in LabVIEW.
  2. Add your R-series FPGA target to the project.
  3. Right-click on the FPGA target, and select Properties.
  4. In the General category of the Properties dialog box, check the box under VI Properties, Run when loaded to FPGA, and click OK.
  5. Create a new VI which sets the value of the DIO lines, and compile it.
  6. Right-click on the FPGA target, and select RIO Device Setup.
  7. In the Device Settings tab, select Autoload on Any Device Reset and click OK.
  8. Load the VI onto the flash memory. To do this, you can either go to the Download Bitfile to Flash tab of the RIO Device Setup dialog box or right-click on the VI in the Project Explorer window and select Download VI To Flash Memory.
  9. Now every time you reboot, the FPGA will load and run the VI, which will set the values of the DIO lines of the R-series board.
NOTE: Typically your FPGA VI will do more than just set the initial state of your DIO lines. Thus, you can put the initialization of the DIO lines in the first frame of a sequence structure and the rest of your FPGA VI in the next frame.

Related Links:

Attachments:





Report Date: 01/15/2007
Last Updated: 03/06/2007
Document ID: 45EE2T7E

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit