The sequence of initializing a block is :
open session -> open link -> open device -> open vfd -> open block
Please check your code, whether all the actions have been performed before open block.
NI Dialog also will do these tasks automatically to initialize block.
You can refer to example code:
C:\Program Files\National Instruments\NI-FBUS\MS Visual C\examples\nifbtest.c
Feilian (Vince) Shen