10-23-2017 06:23 AM
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?
10-23-2017 08:22 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-25-2017 05:56 AM
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!
08-26-2019 03:25 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord