07-04-2020 09:59 AM
I have a LV framework that controls a variety of devices like climate chambers, environment sensors, and logs its parameters to TDMS file. There's a new requirement to make this data available in CANape. I have no experience with CANape. How should go about doing this?
07-05-2020 02:16 AM
I also have no experience with this, but I'd suggest looking at the following:
MDF DataPlugin (NI addon)
Vector's description of MDF4-lib
It seems like CANape wants to read MDF4 files ideally, so to accomplish your goal you probably want to find a way to have your LabVIEW code output MDF4(.1) files.
The data plugin above might help you do that - additionally it appears to include at least basic examples.
There are also a sizeable number of "related links" at the bottom of the first link.
07-05-2020 12:02 PM
Thanks for the input. I'm sorry I did not make myself clear the first time around. The file conversion is not needed
Previously, the data was logged at 2 places
1. CANape
2. LV via TDMS
Now it has been decided to log everything from one place via CANape. So, data from LV must be streamed to CANape.
07-06-2020 08:04 AM
Streamed to CANape? I don't think Vector allows for that kind of real-time data viewing of external data. If you want playback functionality logging to something like MDF, or BLF is likely an option.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-06-2020 10:54 AM
I came across this Vector XL driver that allows sending data from an application to CANape via a vector hardware physical channel.
The situation is such that the conversion of TDMS to MDF and analysis in CANape should be avoided. Rather, the data should be available in CANape for logging it along with UUT parameters
07-06-2020 11:25 AM - edited 07-06-2020 11:27 AM
I didn't mean for you to convert TDMS to MDF, but rather just use LabVIEW to log directly to MDF files.
Would that not be suitable for your application? It wasn't exactly clear to me from your replies.
@GoKu25 wrote:
I came across this Vector XL driver that allows sending data from an application to CANape via a vector hardware physical channel.
Do you have a link describing this in more detail?
07-06-2020 11:35 AM
They are likely referring to this, which lets you use read and write data to Vector hardware.
With that you could write LabVIEW code that puts data on the CAN bus, that another piece of Vector hardware reads. But that that point I'd just use any CAN hardware that you have drivers for like KVaser, Intrepid, NI-CAN, or NI-XNet depending on cost and availability. You could then make your own database (XNet Database editor works fine) and load that DBC into CANape reading the data you are writing.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-06-2020 01:24 PM
The schematic above illustrates the setup I have. I would like to know if there is some sort of way to broadcast the signals from LV side and receive it from the CANape side so that UUT & LV data are logged concurrently
07-06-2020 01:26 PM
Do you know if there is a way to transmit data from LV to CANape via ethernet?