10-24-2009 04:07 PM
Guys,
I'm working on my first FPGA project on a cRIO. My FPGA code is working and I'm integrating it with my main VI running on the cRIO. To do the read from the FPGA I need to first open an FPGA VI reference. Should the sub-vi I'm designing do the FPGA open, read and close all in one session or should the open only be done once initially before the main program loop starts?
TIA,
Sean
10-25-2009 05:30 PM
10-26-2009 03:33 PM
Sean,
Definitely look at the example programs available for the cRIO. Help->Find Examples. This will help you greatly as you begin working on the FPGA and hopefully give you an idea for the structure of FPGA and Host VIs.
10-26-2009 03:44 PM - edited 10-26-2009 03:47 PM
Open it at the beginning of your program and close it at the very end. What you don't see is that the Open FPGA Reference is actually what loads the FPGA program you wrote to the FPGA. For many reasons, you don't want to do this a bunch of times in your program. This definately needs to happen each time your program is run. I don't know what you meant by each "session".
You should definately model your program after the module-specific examples for your hardware, and you will see that loading once and closing once is what they do.