04-25-2023 05:01 AM
Hello,
I am using a combination of Hooovahh's Vector XL Driver LabVIEW Wrapper and CAN Frame Signal Conversion to read CAN frames from a test bench with multiple analog sensor and thermo couples that are connected to a CSM DAQ. CSM DAQ is connected to a Vector VN1610 CAN USB interface.
In a first step I created a VI the is only focusing on the CAN stuff to get rid of any influence of other parts of the test bench VI. Therefore I used Hooovahh's Example CAN Read Write.vi and modified it to my needs. With that I was able to reproduce the same issues.
Receiving of CAN frames is working. But I am facing two issues:
Can anybody help me with these two issues?
04-26-2023 01:26 PM
I'm not sure why you aren't getting the correct conversion. Attached is a VI that converts to 4 of the signals you had listed and they generate different data.
I'm pretty sure this is using version 1.8 of the package that I just downloaded from my blog.
As for the device error. You are using the stop button on the front panel correct? Not the stop button next to the run arrow? Stopping the VI this way will halt all communication, and can leave the device still opened, and then trying to use it again will generate an error. The VI Properties window under Appearance can help you hide this stop button so that you don't accidentally hit it. If you are using the stop button on the front panel it should clean up the device access properly.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-02-2023 07:43 AM
I started the VI on a different laptop with same LabVIEW Version and here the CAN frame to signal conversion is working correctly. Do you have any idea what could cause this?
The device error is in fact caused by an unclean exit routine. After modification, it almost always runs smoothly.
05-02-2023 09:05 AM
Very weird, maybe the wrong DBC was used? Or an older one was selected from the database some how.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-03-2023 10:18 AM
DBC file was same. Copied the complete project file from one to the other laptop.
Bad news. Used the new laptop today again and now same issues with CAN signals occured. I don't have any clue. DBC file was not changend inbetween.