12-22-2015 03:22 AM
Hi,
is it possible to execute a bitfile generated using the NI 802.11 application framework in headless mode? Either using the Python wrapper for the NI FPGA C interface (https://github.com/vpaeder/pynifpga) or directly using the C API. Just loading the bitfile to FPGA seems not to be sufficient. Are there any additional steps required?
res = "RIO0" # instrument address (resource name, for example RIO0)
fname = "usrp_x310_fpga_HGS.lvbitx" # Bitfile name
sig = "97C6D9F4F4829001B83378F93CAB0C94"
# loads FPGA drivers
from pynifpga import pynifpga
fpga = pynifpga()
# loads file into the FPGA
fpga.Open(fname, sig, res, 0)
12-23-2015 08:04 AM
Hi
I am not familiar with the Python Wrapper for C API but in LabVIEW and in C you can start the Bitfile with a Method:
Method Functions - FPGA Interface C API Help - National Instruments
http://zone.ni.com/reference/en-XX/help/372928G-01/capi/functions_method/
in Python:
I hope this helps
12-23-2015 09:31 AM - edited 12-23-2015 09:32 AM
I don't know anything about the NI 802.11 application framework, but I do know that from NI MAX, you can download a bitfile directly to an (well..at least some of them like cRIOs) FPGA target.
When I select the FPGA target under 'devices and interfaces', I get the following options:
This allows me to load a bitfile to the FPGA target and specify whether or not to load it on start-up.
In LabVIEW and probably the C API, there options when deploying/running the bitfile to set it to load on power up etc.