Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET Create Database in Memory on cRIO - Error -1074384591

Hi. I have no experience with XNET and I'm trying to create a XNET database in memory on a cRIO-9035 so that I can create frame input and output single-point sessions for writing and reading CAN frames (I need to work with frames not signals). I used the same code from "CAN Dynamic Database Creation" example but the XNET Database Create (Cluster).vi returns error -1074384591. Any ideas?

 

Lucian
CLA
0 Kudos
Message 1 of 4
(3,373 Views)

The error is bad reference.  To debug this we would need to see the code you created, and try to figure out where the reference went bad.  Starting with a working example is the right way to go about this.

0 Kudos
Message 2 of 4
(3,358 Views)

Something is strange here: I missed work for 2 days and when I came back and tried the example again I received no errors. As I said, I use "CAN Dynamic Database Creation" example. I just saved it as a new copy with a different name, add it to my project under the real-time target and executed it. "CAN Frame Input Stream.vi" was and still working without issues: I could see all the frames sent by the ECU.

Anyway, I'll keep an eye on it and get back if still occurs. Thank you so far!

Lucian
CLA
0 Kudos
Message 3 of 4
(3,342 Views)

I know this is a couple years later but I just ran into this and I think I know why.  The error is Bad Reference, but that is deceiving because the example mentioned (and mine) uses :memory: as the database reference, and can't be bad.  What I found was that if you try to create a Cluster that is an invalid format, like containing a space in the name, then it will return this Bad Reference error.  I'd suggest that XNet in the future return a more verbose error and state that it is because the Cluster name contains invalid characters.

0 Kudos
Message 4 of 4
(2,592 Views)