From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

myRIO FPGA problem

Hi everyone.

 

I have some doubts about myRIO and its components and how they work but an specific doubt is this one:

 

I thought CPU on myRIO  works with FPGA and its previous configuration so as the FPGA is configurated you can acces on RT Processor to the controls and indicators to manipulate them on the RT VI so when the FPGA is no configurated with its default personality it's suppoused to do not let me use myRIO APIs BUT I actually can use myRIO APIs.

I download this VI on FPGA:
FPGAVI.PNG

When I run this VI it look like all is working as the FPGA was its default personality.

ghgh.PNG
 

In an example of myRIO projects I found this in one of the VIs at the Chasis:

This VI contains the default FPGA personality in addition to code that generates a sine waveform and filtered sine waveform based on parameters set by RT Main.vi. Keeping the default personality allows you to continue using the myRIO APIs even after adding custom FPGA code.

 

So as I said, working with APIs in my RT VI should not be possible if my FPGA VI doesn't hace the default personality.


I would appreciate your answers and explanations.

Thank you.

0 Kudos
Message 1 of 2
(4,439 Views)

If you use the myRIO API, it automatically loads and runs the currently selected personality to the FPGA, stopping any existing FPGA code that is running on the FPGA. There is some information about the default personalities and switching between them here: http://zone.ni.com/reference/en-XX/help/373925B-01/myriohelp/myrio_fpga_personalities/

 

If you want to write custom FPGA code, you can either:

1) Make a copy of one of the default personalities and customise it to add your in your own custom functionality. You can then select this customised personality and you will be able to use the myRIO API as well as the FPGA running your own custom code. Of course, if you remove any of the functionality from the default FPGA code, that functionality won't work with the myRIO API.

2) Write your own FPGA VI from scratch and call it using the 'open FPGA reference' method on the RT side. You cannot use the myRIO API if you do this.

 

For reference, there is a 'myRIO Custom FPGA Project' that ships with LabVIEW. The documentation for the template is here.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 2
(4,431 Views)