LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subVI FPGA functions, shared variables

Solved!
Go to solution

    

  Hi, 

 

i want to create a FPGA project, there will be main.vi and subVIs. The point is, subVIs include while loops, and waiting for a button click by user (RT controller stage) to do their task.. i tried to use global variables but i think it s not working.. Because, the button changes not effected by subVIs.. i realized it when i changed some boolen global variables on FPGA subVIs, i couldn't see the same effect on RT controller front panel...

 

What should you recommend me to use shared variables, can be controlled through, RT controller, FPGA VIs, FPGA subVIs...  

 

  Best regards..

0 Kudos
Message 1 of 3
(2,627 Views)

"Because, the button changes not effected on subVIs"

 

i am using cRIO9022, chassis 9103, Labview 2011, etc..

0 Kudos
Message 2 of 3
(2,626 Views)
Solution
Accepted by topic author davut

Do I understand correctly that you ary trying to use a global variable to exchange data between RT and FPGA? This will not work. Global variables only work within one application scope, either Host, RT or FPGA, but not across them. To exchange data between RT and FPGA you will have to use "Read/Write Control" from the FPGA palette or use DMA.

You can use global variables to exchange data between the FPGA main VI and SubVIs or just between different loops on the FPGA.

 

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