03-09-2022 10:37 AM
I'm working with a fuel cell which can be communicated with via CAN. The problem that I'm having is that the function from the library PCANBasic.dll, PCAN WRITE, is not sending the signal to the cell. I have used the PCAN program to send signals and I can turn it on without any problem, but when executing the VI the program says that the signal sent through PCAN Write is not being received. Any alternatives that I can take here?
04-12-2022 01:25 PM
You need to use an API to talk to the hardware. Calling these DLLs blindly will not work. You need to be opening and closing sessions to the hardware. There also likely is configuring steps you are missing. Where are you selecting the baud rate in particular?. There are several PCAN drivers provided by people online. I have never hard access to PCAN hardware so I can't say which if any of these work well.
https://forums.ni.com/t5/LabVIEW-APIs-Documents/PCAN-Driver/ta-p/3517003
https://lavag.org/files/file/211-pcan-driver_lv2009/
https://www.gridconnect.com/products/labview%C2%AE-driver-for-pcan-adapters
https://www.peak-system.com/CAN-Bus-Connection-for-LabVIEW.255.0.html?&L=1
https://phytools.com/products/labview-driver-for-pcan-developer
http://www.microport-taiwan.com/english/SingleP.asp?Category=90&PNo=4010&Url=Product&page=2
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord