From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubVI is not executable in PXIe-7965R:

Solved!
Go to solution

I develop a SubVI (please see the screenshot “NDFT_FPGA” attached to this request) that performs a non-uniform FFT using Dynamic-Link library (dll) written in c and LabVIEW. The SubVI is added to FPGA data board (A PXIe-7965R) to calculate non-uniform fft of a signal acquired from a photodetector (New Focus 1817).

The SubVI has three inputs and one output: first input is called vandermonde matrix and its size1024 x 1024, second input is called weight vector, its 1x2014 vector .Both inputs are in .csv format stored in the host PC, and the SubVI is reading them using “Read Delimited Spreadsheet.vi” function. The third input is a vector coming from the photodetector of our system.

 

 A PXIe-7965R is attached to a NI5761 CLIP and it is acquiring the signal coming from a photodetector. The signal is stored in a FIFO called DataTargetFIFO (please see the screenshot “NDFT_FPGA” attached to this request) then in the “SS-OCT” case structure, the first for loop constructs an array of length 1024 and this array is sent to the SubVI and the SubVI produces output array which will be saved in a FIFO called the PostTargetFIFO element by element, after that  the whole procedure will be repeated by constructing a new array of length 1024, send to the SubVI, then the output is saved in the PostTargetFIFO and so on.

Now the LabVIEW produces an error saying SubVI is not executable and the error particularly refers to the “Read Delimited Spreadsheet.vi” function in the SubVI. However, when I check and run the SubVI separately, it works. So can you please help me solving this error . Thanks in advance.

 

NI Software: LabVIEW Professional Development System version 2011 SP1.

NI Hardware : PXIe-7965R device

OS: Window 7

Download All
0 Kudos
Message 1 of 5
(3,142 Views)
Solution
Accepted by topic author Bnyam

Hi Bnyam,

 

the FPGA neither can do any file operation nor will it call any DLL!

 

You need to develop your subVI specifically for your FPGA target with functions supported on the FPGA!

- While you are busy to do so: the FPGA doesn't support any DBL datatypes. Either use FXP or SGL!

- It also doesn't support 2D arrays. You need to stick with fixed-sized 1D arrays!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(3,117 Views)
Solution
Accepted by topic author Bnyam

Your subVI calls a dll.  DLL's work on Windows.  They don't work on an FPGA.

 

Secondarily, I do not believe you can have floating point numbers on an FPGA.

 

Also, an FPGA does not have a file system, so how wold you ever be able to read a file using the Read Spreadsheet File?

 

Make sure you create your FPGA VI's within a project under the FPGA target, and only use functions available in that FPGA palette.

0 Kudos
Message 3 of 5
(3,113 Views)

Thank you so much GerdW & RavensFan for your help and informations.

0 Kudos
Message 4 of 5
(3,073 Views)

Magic !

I am also looking for a non-uniform FFT (dll with labview wrapper).

Please can you share your dll with your vi.

(without FPGA of course)

0 Kudos
Message 5 of 5
(2,084 Views)