LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

compactRIO: How to use scan mode and FPGA simultaneously in the same vi?

Hello all,

I am using cRIO-9025 and LABVIEW to develop a data aquisition system and met a problem. I am trying to use NI 9023 to sample from several current channels in scan mode. At the same time, I also need to use NI 9871 to read from serial devices in FPGA mode. Hence I need to use both of the two modes in the same project. I have already created a project containing the two modes following the link below:

http://digital.ni.com/public.nsf/allkb/0DB7FEF37C26AF85862575C400531690

 

Since I need to sample current and read from serial devices simultaneously, I add the code in scan mode for current sampling to the host vi of FPGA mode for NI 9871. What I did was just past the scan mode code  under the original code in the host vi. However, when I run the vi,  the code in scan mode can not sample at the expected rate. I set the timed loop to sample at 100 Hz, but it turns out that it only sample current 3 or 4 times a second. It seems that scan mode can not work as expected when put with FPGA in same host vi.

 

May I ask is there any method for me to solve this problem? How can I achieve to run both scan mode code and FPGA code at the same time?

 

Thank you very much for your help.

 

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

Hi MasterWho.

 

I'm afraid I'm struggling to come up with anything particular just off the top of my head.

 

Any chance you can post your code and the details of your hardware set up? I may well be able to see a simple flaw or even recreate the scenario.

 

Thanks for your time!

Rhys
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,746 Views)