Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Change NI-XNET CAN timing type on the fly

Recently I used USB-8502 to realize the functions as goeple CAN 6153. You can use Goeple CAN 6153 to change different transmit mode easily, such as cyclic mode, single mode. But when I tried to use function "nxdbSetProperty((l_pFrameRefs, nxPropFrm_CANTimingType, (u32)sizeof(u32), &CyclicType))" on the fly to change cyclic type from cyclic to single, there is an error "NI-XNET: (Hex 0xBFF6314F) Database object is locked because it is used in a session. Solution: Configure the database before using it in a session." 

It seems that I should to clear the session I'm using or even the database and then rebuild them. But that's not suitable for us and will cause lost communcation between DUT and NI-CAN 8502. Do you have any idea for that?

0 Kudos
Message 1 of 2
(2,315 Views)

Hi,

From your error "NI-XNET:  (Hex 0xBFF6314F) Database object is locked because it is used in a session. Solution: Configure the database before using it in a session."

I found this forum post: https://forums.ni.com/t5/Automotive-and-Embedded-Networks/XNET-Signal-output-erases-some-signals-in-...

 

0 Kudos
Message 2 of 2
(2,273 Views)