FOUNDATION Fieldbus

cancel
Showing results for 
Search instead for 
Did you mean: 

device descriptor with .NET API

I am told that there is no need for a device descriptor, when using the .NET API with indexes. But I am not able to open a block after its device descriptor changed. Here is the exception message I'm getting. I would appreciate any help on this subject. Thanks,
 
Alan

---------------------------
TestApp
---------------------------
NationalInstruments.FieldBus.ExceptionHandler.FBUnknownException: Unknown exception, check the code!

   at NationalInstruments.FieldBus.ElementHandler.Element.SetName(Int32 ud, String id)

   at NationalInstruments.FieldBus.ParameterHandler.RecordParameter.SetElementName()

   at NationalInstruments.FieldBus.Block.Update(Boolean requestRead)

   at NationalInstruments.FieldBus.Block.Update()

   at NationalInstruments.FieldBus.Block.Open()

   at NationalInstruments.FieldBus.Block.ReadParameterByIndex(Int32 index)

   at FBNIWrapper.NIBlock.SetBlockMode(String newMode) in c:\program files\rosemount\functionalexec\fbwrapper-cs\fbniwrapper\niblock.cs:line 255

   at TestApp.MainForm.ButtonOpenBlock_Click(Object sender, EventArgs e) in C:\Program Files\Rosemount\FunctionalExec\FBWrapper-cs\TestApp\Main.vb:line 447
---------------------------
OK  
---------------------------

0 Kudos
Message 1 of 2
(7,201 Views)
I have the same problem using the .Net API (see my exception below).  This is happening on two different products we are producing where we upgrade firmware and then the API bombs on us (specifically won't open blocks).  We are not using DD's but using indices.  The error is poor and simply says 'check the code'.  This is code I do not have access to though as it is the NI-API code.
 
I verified that we are opening everything in the correct order.  The devices can be opened and read fine with Dialog and Configurator.  This issue seems specific to the .Net API or our usage?  Our usage is based on the .Net API samples however.
 
Please help!
Jim
~~~
 
                        Method Entry : <PreTestRackThread_Rack2> VortexFBChannel.ConnectFF
                            2/14/2008 6:11:30 PM FB About to Connect FF
                            2/14/2008 6:14:07 PM Failed to Open
                            Exception <PreTestRackThread_Rack2>: NationalInstruments.FieldBus.ExceptionHandler.FBUnknownException: Unknown exception, check the code!
   at NationalInstruments.FieldBus.ElementHandler.Element.SetName(Int32 ud, String id)
   at NationalInstruments.FieldBus.ParameterHandler.RecordParameter.SetElementName()
   at NationalInstruments.FieldBus.Block.Update(Boolean requestRead)
   at NationalInstruments.FieldBus.Block.Update()
   at NationalInstruments.FieldBus.Block.Open()
   at EFieldbusNi.ENifbBlock.Open()
   Source: ENiFieldbus
    Trace:    at EFieldbusNi.ENifbBlock.Open()
   at Rosemount.TempComp.VortexFBChannel.ConnectFF() in D:\TempComp-Universal2003\tempcomp.core\CChannelVortexFB.vb:line 1762
2/14/2008 6:14:34 PM Finished ConnectFF
                        Method Exit  : <PreTestRackThread_Rack2> VortexFBChannel.ConnectFF
                 
0 Kudos
Message 2 of 2
(7,185 Views)