10-08-2012 02:02 AM
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..
Solved! Go to Solution.
10-08-2012 02:05 AM
"Because, the button changes not effected on subVIs"
i am using cRIO9022, chassis 9103, Labview 2011, etc..
10-08-2012 02:38 AM
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.