LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RT not updating my NI9474

I have Labview 8.5, cRIO 9014 and 2 NI 9474 DO modules.

 

In my FPGA VI, I have 5 loops.  The first loop deals with my 9474 cars.  I have boolean values as inputs to that when the boolean is one, the DO# will turn on.  This loop runs 1 time.  In side FPGA vi, the program works great.  I can get the cards to give me the output needed IOT turn on relays I need.  However, when I get into my RT VI, I have my read write FPGA block, have those boolean inputs connected, I select the ones I want, but it doesn't update the 9474 cards.  It seems that it saves the last running inputs that I selected in FPGA, then I stop the loop in RT, shuts off the cards, then when I start the RT vi back up, it doesn't turn on the DO# selected.  Just wanted to see if anyone has suggestion on how I can control the 9474 from RT controller or an idea of what is going on.

 

Thanks,

guilio

0 Kudos
Message 1 of 4
(2,791 Views)

Hi,

 

You probably need to set your FPGA loop updating the 9474s to run more than once.  It sounds like currently it only updates them when you start the FPGA VI, so it will use whatever was already set on your boolean controls.

Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,768 Views)

I have it in a loop and if I dont stop that 9474 loop, then the other loops won't run.  Now, when I change the setting, I stop the RT program that runs FPGA, and I start it back up.  I would think that this would at least start the 9474 loop over again, allow the settings to be changed, but I could be wrong.  What I have right now is when the iteration is greater than 1, stop the loop.  Should I put sometype of inital value outside the loop such as 0 so that when I start the FPGA again, it always starts at 0?

 

Thanks,

guilio

0 Kudos
Message 3 of 4
(2,749 Views)

Hi,

 

Could you post your VI, or a screenshot?  It might help me if I can see it. 

Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,734 Views)