LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

headless mode

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)

 

0 Kudos
Message 1 of 3
(3,197 Views)

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:

 

  • bool Run(int attribute)

 

I hope this helps

 

 

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

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:

2015-12-23_15-29-59.png

 

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.

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 3 of 3
(3,113 Views)