03-25-2015 03:00 PM - edited 03-25-2015 03:01 PM
Hi everyone,
I'm searching for examples of database editing and setting properties that are more complex than the ones that ship with LabWindows/CVI. As far as I can tell, these don't even edit the database, they just manipulate aliases and parse through the different clusters/frames/signals, despite being titled "Managing Databases". Anyone out there know where I can find this kind of info? Thanks!
- Brandon
EDIT: I'm using the XNET API
03-25-2015 03:13 PM
Those examples do edit a database, the database just happens to be in memory instead of on disk. To be honest whenever I need to actually edit a DBC file I usually resort to Vectors database editing software which runs without needing any particular hardware or software license.
But if you are strickly in the XNET world, import the DBC, then use the "Database Editor" to edit the XNET database. This is saved as an XML but contains much of the same information as DBC. You can also programatically import a DBC to use in XNET if you periodically get updates.
My conversion library does this in the examples.
https://decibel.ni.com/content/docs/DOC-39793
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-25-2015 03:29 PM
Starting with NI-XNET 14.5, you can export the database in the dbc format.
03-25-2015 03:30 PM
Oh neat-o sorry I haven't used 14.5 yet, and if I had I probably wouldn't have noticed this new feature.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-26-2015 08:20 AM - edited 03-26-2015 08:20 AM
I'm looking at "Managing Local Databases.prj" and I don't see any calls to nxdbOpenDatabase(), nxdbFindObject(), or any of the Property manipulation functions (such as nxSetProperty). From what I've read in the API manual, editing in memory still requires those calls to open the objects in question. I just see the functions that get the names of the database objects for the purposes of UI manipulation and alias creation, which apparently doesn't require opening the database. Am I missing something? Wouldn't be the first time!
I need this in order to allow users to standardize their .dbc files before running the HIL simulation, so doing it by hand isn't really an option.
Thanks for the replies!
Another EDIT: I'm using NI XNET 14.5