02-23-2024 03:50 AM
Hi,
I am new to Labview and I have been trying to automate a cancasexl(Canalyzer) using Labview. I have tried to transmit a message using "Vector XL Driver - LabVIEW wrappers" (link: Vector XL Driver - LabVIEW wrappers - NI Community).
But this model, I can just see an error light blinking in my cancasexl but not sure what the reason is. I think am not able to select the channel in this vi. Does anyone know how to solve it? Or are there any alternatives for doing this.
I can see so many posts point to Community (NI) Example:
https://decibel.ni.com/content/docs/DOC-16844...but this no longer available, I guess.
Thanks, in advance.
Anjali
02-25-2024 03:42 PM - edited 02-25-2024 03:45 PM
What is the error you're getting?
What settings are you using?
It's hard to guess what the problem is without you posting some code, screenshots or details of your configuration.
Also, just to clarify, Canalyser is a software tool developed by Vector. A cancasexl is (old) hardware also developed by Vector but you can control it using the LabVIEW library you referenced. You can use both at the same time on the same cancasexl, but you have to slightly change the way you call the functions in LabVIEW.
https://decibel.ni.com/content/docs/DOC-16844 is an old defunct link to the document you referenced: Vector XL Driver - LabVIEW wrappers - NI Community
02-26-2024 06:38 AM
Hi Troy,
Thanks for your reply.
My ultimate goal is to automate transmitting and receiving can signals in cancasexl from LabVIEW.
I ran the transmit example as shown in figure as such. But I am not sure if the configuration is right or wrong. I actually don't have any can piggies connected, my device manager is showing only the cancase xl as in the attachment.
There is no error visible in LABVIEW, only the error light in cancase blinks.
I have tried sending messages in canalyzer using virtual can bus 1 channel 1 as configuration and it worked. But I don't know how to configure this without canpiggies. Can you please suggest me, I am new to all of these.
Thanks,
Anjali
02-26-2024 03:46 PM
From what I see in image (11).png, you have configured CAN to be 250KBd with extended (29bit) IDs and are using the first channel (hwChannel 0) and the first CANcaseXL (hwIndex 0) plugged in.
I think there would be an error if there was no CAN piggy??? CAN "piggies" are what Vector calls the internal tranceiver daughter boards inside the CANcaseXL. Are you referring to other nodes on the bus?
There must be at least one other CAN node connected to the bus and it must be configured with the same BAUD rate. Otherwise there is nothing to ACK the CAN frame as being transmitted without errors. The red LED on the CANcaseXL may indicate that no other nodes on the bus have acknowledged the transmitted message.
If there is another properly configured node on the bus, is it connected and terminated properly? (E.g. At least 120R terminating resistor between CAN-H and CAN-L.)