LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to update FPGA Reference inside Case Structure?

How do I update the FPGA References that are inside of a Case Structure? When I change/re-compile the FPGA VI, the references do not update.

 

Context:

I am building a 4-axis machine that uses the FPGA VI to monitor position switches. I have built an action engine for each axis comprised of a Enum Case Structure inside of a terminating While Loop with all pertinent information retained on un initialized shift registers. 

 

Details:

I have one Case that initializes the communication and uses "Open FPGA Reference" to put the FPGA VI Ref onto a shift register. Subsequent Cases use that FPGA VI Ref to transfer information. Works well. However, if I need to edit the FPGA VI and re-configure the "Open FPGA Reference" to that VI, the following items (e.g. FPGA I/O Node) do not update with the new information. 

 

The Nodes will update if I move the "Open FPGA Reference" in front of the While Loop, and open/close everytime the loop is called. However, that ends the FPGA VI. 

 

Is there a better solution? Am I missign something? 

 

THank you in advance for your help

 

-David

0 Kudos
Message 1 of 2
(1,123 Views)

Hi David,

 

create a typedef for the FPGA VI reference. Then instruct "OpenFGPAReference" to use that typedef for all times…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 2 of 2
(1,098 Views)