LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple readers of an RT FIFO?

Hi, I'm using LabView RT on a PXI target, and ran into a problem.  My target vi has multiple loops, only one of which is high priority.  It acquires data and writes to an RT FIFO.  Is there any way I can read this data in more than one of the other loops?  That is, I want to read but not remove the data in those loops, kind of like Preview Queue Element works for queues - is there an RT FIFO equivalent?

 

Thanks in advance!

0 Kudos
Message 1 of 4
(3,542 Views)

Hi drmase13,

 

Would it be possible to combine your low priority loops so that you could use an RT FIFO?  That seems to be the most effective way of doing this.  Could you post your code so that I can get a better idea of what is happening? 

 

Thanks!

Chris S.

National Instruments
Applications Engineer

Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 2 of 4
(3,490 Views)

Hi Chris,

 

Sorry for the delayed response.  I want to avoid combining my low priority loops into one.  One of those loops is much more important than the others, so I'm planning to read the main RT FIFO there, and have it generate other RT FIFOs for use in the other less important loops.

 

Perhaps multiple RT FIFO readers isn't possible without making them shared resources and ultimately defeating their purpose?

 

Thanks,
Don

0 Kudos
Message 3 of 4
(3,459 Views)

Don,

 

If it is not possible to combine them into one loop and use a state machine to execute your lower priority tasks then I think you could do it the way you suggested.  In order to reduce your resource usage, try to combine the lowest priority loops so you limit your RT FIFOs usage.

 

If I understand your last question correctly, the RT FIFO readers will not be using shared resources as they will each be a seperate instance.

 

Cheers,

Chris

National Instruments
Applications Engineer

Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 4 of 4
(3,424 Views)