11-15-2017 11:35 AM
I checked the forums for this topic but didn't find a match...close, but not the same.
I wrote code for Windows to load a CAN .dbc file and do what I needed to do. I now need to use the same code in LabVIEW RT (cRIO Linux) but it doesn't look like I can load the .dbc file directly...I have to deploy it, then reference the alias for 'XNET Database Create (Cluster).vi"...the rest of my code works fine from there.
I'd like to skip the hassle of deploying the .dbc database for each cRIO system (I know I can write code to deploy the database; BTW, the same undeploy/deploy vis are not supported in RT)....deploying the .dbc file with the executable (then loaded on RT) is preferred since the procedure is simple and doesn't require any additional code.
Thanks,
Todd
Solved! Go to Solution.
11-15-2017 02:08 PM - edited 11-15-2017 02:09 PM
AFAIK there still no way to directly load an new CAN or LIN database on a Linux cRIO with XNET. There's no other way than to either deploy the database from your PC (even programmatically) or creating an image of your cRIO with the RAD (Replication and Deployment) Utility and copying that to your next target. In my experience that works too.
Perhaps it's also a good idea to vote for this idea.
Regards, Jens
11-16-2017 05:23 AM
Thanks Jens, that is what I thought.
I'll write code to create a pre-processed cfg file for the RT code to load which is used to create all the messages and signals used in the data collection. Code will be called before the build is started (as configured in the "Pre/Post Build Actions" of the Build Spec).
Granted, I am loading a large database where I load all messages (1,321) and signals (6,485)...I just want to see how long it takes and will cut it down significantly once my customer decides what to do, which is 1.5 minutes on RT (dual core 1.33 GHz) and 15 seconds on a PC.
Thanks Again,
Todd
08-29-2018 04:31 AM
Try this with Xnet API in RT code.
06-21-2020 08:55 PM - edited 06-21-2020 08:56 PM
XNET Database Add Alias.vi
"This VI is supported on Windows only. For LabVIEW RT, you can pass the new alias to the XNET Database Deploy VI to transfer an optimized binary image of the database to the LabVIEW RT target. After deploying the database, you can use the alias name in any VI for the Windows host and the LabVIEW RT target."
http://zone.ni.com/reference/en-XX/help/372841W-01/nixnet/xnetdatabaseaddaliasvi/