LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How the target scoped fifos will work ?

Hi,

I am using LabVIEW 2015 and NI myRIO 1900 FPGA module.

I want to use Target scoped FIFOs to transfer data between two FPGA Target VIs. 

Suppose I want to transfer data from this VI

target scoped 1.png

to another VI

target scoped 2.png

 

What I try to do is call 2nd VI from 1st VI so that 2nd VI will act as sub VI to 1st VI.

 

Both of them are compiling. FOr 2nd VI I have to use some dummy Write method just to compile. 

I am not successful with this approach. 

Can anyone please suggest some standard or sample way  how this transfer can be achieved or give some resource where I can find details.

 

Thank you.

0 Kudos
Message 1 of 12
(5,596 Views)

What do you have reading the "Target Scoped Test" FIFO?  If it is not going anywhere, it is likely not being compiled.  Or is that supposed to be a DMA FIFO that you are reading in the RT?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 12
(5,575 Views)

Yeah it is a DMA FIFO reading on the RT side just for the sake of observing. Wave form chart isnt working !

0 Kudos
Message 3 of 12
(5,565 Views)

You should zip up your entire project and post that.  Sounds like something is not configured correctly.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 12
(5,545 Views)

Hello

Here is my project below.

Please check the ticked vis

Unbenannt.PNG

 

If possible please check my actual problem stated in this post.

 

Thank you.

0 Kudos
Message 5 of 12
(5,504 Views)

Hello charansai,

 

what do you mean when you say " I am not successfull with this method"? Are you getting some error message or are you simply not reading the correct data in the RT target?

Please be more specific. Your code, at a forst sight, seems like it has to work. Please let me know what are you getting when you run your vis.

 

Kind regards.

0 Kudos
Message 6 of 12
(5,416 Views)

Hey pep91,

Actually I could not see any data on RT side.

0 Kudos
Message 7 of 12
(5,400 Views)

I took a more deep look to your code. Actually you don't need to call the vi "Target scoped 2" in the vi "Target scoped 1"; in the latter one, you just fill the FIFO, in the first one you just read it and fill the FIFO you have to pass to RT target. 

You don't need flat sequences.

Try to do this changes, it should help you a lot (hopefully it should solve your problem).

Let me know.

 

Kind regards.

0 Kudos
Message 8 of 12
(5,389 Views)

Hey thanks for your concern 🙂

If I don't call ''Target scoped 2'' in ''Target scoped 1'' vi, I have to insert Target scoped FIFO read method in order to compile it. So, I think I have to call it. 

Anyway I will try the changes that you have suggested and come back.

Thank you.

0 Kudos
Message 9 of 12
(5,383 Views)

Yes, you are right, my fault. 

Try also to delete the part in "Target scoped 2" in which you write 0 in the FIFO. I don't think it is needed, and it could be the source of the error.

0 Kudos
Message 10 of 12
(5,379 Views)