You should be able to pass a FIFO referene into a VI with a FIFO Control. Ensure the control is configured correctly with all the methods you need to use in the VI.
The Discrete Delay node provides dynamic delay capabilities. Unless you need additional functionality I would suggest using that node. If you do need to build your own library, you will want to use the most efficient memory for the maximum delay of your algorithm.