LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Output not working during FPGA interface mode

Hello,

 

I've got a 9068 cRIO + NI9401 (Digital I/O).

If I set the chassis in scan mode and create a VI which runs on the controller I can easely control the output of the NI9401.

If I set the chassis in FPGA interface mode, create a VI and compile the code there is no output from the NI9401 board. (I have an oscilloscope connected)

 

Any help ?

 

Thanks,

Robert.

0 Kudos
Message 1 of 14
(3,460 Views)

Hi Robert,

 

did you create a FPGA VI and compiled a bitfile from it?

If yes: have you tried to create a simple FPGA VI that just copies some control values to 9401 DIO pins to verify basic FPGA working principles?

If yes: I always embed a small loop in the FPGA to blink the FPGA LED. That way I know my FPGA VI has started…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 14
(3,456 Views)

Hi GerdW,

 

I've created a new FPGA VI and compiled a bitfile from it.

The VI is very simple, it just sets the output of the NI9401; plus there is a temperature monitor indicator so I'm sure that it runs.

Please see the attachment.

 

I'm stuck on this problem for 2 days now... so any idea is wellcome, 

 

Thanks,

Robert.

 

 

0 Kudos
Message 3 of 14
(3,432 Views)

Hi Robert,

 

the BD looks quite ok - I do simple DO tasks the same way on the FPGA.

 

The FPGA VI is loaded and started on the RT target?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 14
(3,424 Views)

Hi GerdW,

 

Thanks for the quick response.

I'm sure that the FPGA runs correctly.

I even tried creating another VI that runs on the chassis controller from which I've opened an FPGA reference and switch the boolean control and read the chassis temperature.  

Please see attachment.

 

P.S. No error, everything looks fine, just that there is no output. 😞

 

Thanks,

Robert.

0 Kudos
Message 5 of 14
(3,419 Views)

The only thing that's quickly coming to mind is maybe you're addressing the wrong module? Can you upload your entire simplified project (as a zip) instead of just screenshots?

0 Kudos
Message 6 of 14
(3,386 Views)

Hey Robert,

 

Are you able to get any other modules working in FPGA mode?

 

Also, can you write a VI that runs on the FPGA and simply toggles one of the lines or something simple like that?

-Jim B
Applications Engineer, National Instruments
CLD, CTD
0 Kudos
Message 7 of 14
(3,352 Views)

Hello,

 

Thanks for all of your replyes.

 

I've figured it out, the problem is a hardware error/fault.

I've changed the chassis slot in which the module was inserted, and it works now.

Any NI board inserted into chassis slot 1 wont work in FPGA interface mode. 😞

 

Thanks again,

Robert.

0 Kudos
Message 8 of 14
(3,340 Views)

I am experiencing the same problem with cRIO 9054 and NI 9401.

I just bought the cRIO, and slot 1 won't work in FPGA mode. 

Any solutions yet ?

0 Kudos
Message 9 of 14
(2,754 Views)

The 9401 is a C Series module, not an FPGA module, so it must be used in Scan Interface mode. If you have other modules that do have FPGA functionality, your cRIO controller needs to be set to hybrid mode so that you can use both simultaneously. Instructions on how to do that can be found in our KnowledgeBase article on hybrid mode.

Lindsey Nestor
Program Manager, Hardware Services
National Instruments
0 Kudos
Message 10 of 14
(2,740 Views)