LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA Interface C API 2.0 NiFpga_Open

According NiFpga_Open documentation : 

 

NiFpga_Status NiFpga_Open(const char* bitfile, const char* signature, const char* resource, uint32_t attribute, NiFpga_Session* session)

Opens a session to the FPGA. This call ensures that the contents of the bitfile are programmed to the FPGA. 

 

All the API functions use session as input parameters.

 

Here is my question : I would like to have 2 different software :

- one to download the fpga software (using NiFpga_Open)

- one to monitore the I/O (using NiFpga_ Read, Write etc.. but not NiFpga_Open).

 

Is it possible ?

 

In other words, one the FPGA is downloaded, I would like to shut down the PC. And next time it starts, I would like to use the second software without having to download again the software in the FPGA.

 

If I memorize the session value after using NiFpga_Open, can I use it in an other software ??

 

Thanks.

0 Kudos
Message 1 of 2
(3,404 Views)

Hello sfla,

 

I found some documents which could interest you :

 

First, did you look the examples located in the folders given by this section ?

 

Then, I found an example program that I attached to this post in order to help you. In it, there is NiFpga_Session function.

 

By looking in other sections of the help, I found this section which lead to read and write functions. Those functions need a session (NiFpga_Session) and an indicator number as parameters. So I think the following line should allow you to only open a session without loading any bitfile on the FPGA :

 

NiFpga_Session session;

 

At last, if my advices don't allow you to realize what you want, I think you can take a look to this forum.

 

Regards,

Jérémy C.
NI France

0 Kudos
Message 2 of 2
(3,341 Views)