07-22-2009 04:22 PM
I can't read the transducer block mode with the following code (the the same code returns the resource block mode without any problem).
paramNi = m_blockNi.ReadParameterByIndex(5);
The error thrown is {"Unknown exception, check the code!"} with an ErrorCode of E_OK {0}
The block has the following properties when running:
{Block Property:
Tag=TRANSDUCER_2000
StartIndex=2000
DDName=0
DDItem=133671
DDRev=1
Profile=-32752
ProfileRev=1
ExecutionTime=0
PeriodExecution=0
NumberOfParameters=108
NextFB=0
StartViewIndex=31008
NumberOfView3=1
NumberOfView4=3
OrdinalNumber=1
Type=TransducerBlock
}
07-27-2009 04:59 AM
Hi,
Please check if the DD file of this device exists.
The profile number of the transducer block is -32752 (0x8010). This is custom block defined by manufacturers and does not included in standard DD. If the corresponding DD file is not loaded, NI-FBUS software can not get the parameter information.
07-27-2009 09:37 AM
Do I need the DD just to read the block mode? How can I change my code so that I don't need the DD?
If not, I do have the following files in C:\Program Files\National Instruments\NI-FBUS\Data\001151\8732
020101.cff
0201.sym
0201.ffo
They are the latest DD files from http://www.fieldbus.org/ for my Fieldbus device, so what can I do in code to make sure it loads?
Thanks,
Kevin
07-27-2009 01:15 PM
I found this code in my .cff file of the DD:
//------------------------------------------------------
// Transducer Block
//------------------------------------------------------
[VFD 2 Transducer Block 1]
BLOCK_INDEX=2000
DD_ITEM=0x20a27
PROFILE=0x8010
PROFILE_REVISION=0x0001
NUM_OF_PARMS=108
VIEWS_INDEX=31008
NUMBER_VIEW_3=1
NUMBER_VIEW_4=3
This makes me think that the DD is being loaded, since the profile is listed as 0x8010 as you said.