PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA IO Switch

Hi,

I'm encountering some issues with the PXIe-7820R.
I'm trying to acheive a Bus Switch. 
Two device, the same, would be connected to the module, device A to Connector0 and device B to Connector1.
They have Inputs Only, Outputs Only and Bidirectionnal I/O.

My problem is that the FPGA IO Refnum can't be multiplex, meaing they don't work with either Select nor Structure Case, as output. They can be pass inside Structures.
It gives a weird error : Possibility of dynamic reference. Is it possible to make their Refnum Static?

SimonLafl_0-1747764990615.png
Note that this method works without FPGA module, plein LabVIEW. (Any Refnum)
This is in Simulation Execution Mode.

I've tried Using only Case Structure with IO Nodes inside, but the design get pretty clunky and SubVi could make it more confusing in my opinion since there is not much code.
Also, Modifying one part would require to thoroughly change each case, making it prone to mistakes by being distracted.

Is there plan to support static refnum for FPGA target?

 

Snippet Code, just drag and drop into a new VI:

RefnumSelect.png



 

0 Kudos
Message 1 of 2
(79 Views)

The reason for the dynamic reference error is that you must allocate two separate resources for individual I/O. 

In LVFPGA, the block diagram will be converted into VHDL which then be compiled into binary using Xilinx toolkit.

LabVIEW doesn't know how to allocate the resource if you try to assign multiple I/O into a single subVI.

 

What you can do instead is to create subVI with dynamic I/O reference input. Then duplicate subVI with individual I/O refnum in separate case structures. LVFPGA will assign separate resources for each case. And when you modify the subVI, all the subVI instances are updated. 

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 2
(35 Views)