FOUNDATION Fieldbus

cancel
Showing results for 
Search instead for 
Did you mean: 

block err

I'm using vb6,  When I try to Initialize a block I get a block error. The return -2 (Can't find block). If I run ni dialog first then vb code Initialize the block.   I'm using  ni fuction nifOpenBlock
The nifbstd.dll 4/6/06 and ni-fbus Communications Manger 3.1.1
 
0 Kudos
Message 1 of 2
(6,479 Views)
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
0 Kudos
Message 2 of 2
(6,457 Views)