Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace factory shipped FPGA funtionality in myRIO?

Solved!
Go to solution

Hi,


I have created a sample FPGA code and downloaded in myRIO.  I expect it would have erased the factory shipped FPGA functionality which included all interpretation of digital input/output (DIO) lines as PWMs, universal asynchronous receivers/transmitters (UARTs), encoder inputs, I2C, and SPI.  Is there a way to put back that factory shipped code in FPGA?  Where I can get that code?

 

Thanks,

Ajay.

--
Ajay MV


0 Kudos
Message 1 of 5
(6,106 Views)
Solution
Accepted by topic author Ajay_MV

Hello Ajay,

 

When you run your host code, which calls FPGA VI (opens its reference), it is automatically deploying the FPGA code to the hardware. If you will run after some example code, coming with myRIO drivers, it will deploy default FPGA code included.  

 

To find the defalt FPGA code, which comes with the drivers, create new project from Create Project -> Templates -> myRIO and select myRIO Custom FPGA Project, you will find FPGA Main Default.vi inside.

 

Just note that UART functiality is not implemented on the FPGA, but instead is using functionality included in the Zynq processor. So you still have UART fucntionality, even with your custom FPGA code running.

 

Thanks,

Arev

 

Certified-LabVIEW-Embedded-Systems-Developer_rgb.jpgCertified-LabVIEW-Architect_rgb.jpg 

Message 2 of 5
(6,101 Views)

As an added note, every one of the express VIs that you use on the myRIO to interact with the default I/O look to see if the fpga is using the default personality and will run it if it is not.

Matt J | National Instruments | CLA
0 Kudos
Message 3 of 5
(6,085 Views)

Thanks Arev & Matt.  Let me check it ou over weekend and get back to you.

 

Regards,

Ajay.

--
Ajay MV


0 Kudos
Message 4 of 5
(6,075 Views)

I'm able to run the factory default FPGA personality just by using the myRIO project template.  FPGA node has the bit file of it.  Thanks everyone.

 

Regards,
Ajay.

--
Ajay MV


0 Kudos
Message 5 of 5
(5,951 Views)