LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Learn CAN by communicating with a CAN device (IVTS) using CAN USB.

Solved!
Go to solution

I am trying to learn CAN. So i downloaded XNET. Now I connected an IVTS via CAN USB. So the first thing I am trying to do is to make NI MAX detect it. My Device manager is detecting it. But NI MAX is not. So what needs to be done. Thank you. 

0 Kudos
Message 1 of 16
(221 Views)

is the IVTS a current/ voltage sensor? I used that with LabVIEW using the DBC file they supplied. is used The HOOOVAH CAN libraries, not xnet.  i was able to set up and use the IVT-S.  What CAN hardware do you have?

0 Kudos
Message 2 of 16
(197 Views)

IVTS is a voltage sensor. The CAN hardware I have is PCAN USB from Peak. It is Peak IPEH 002021.Isnt the first task the NI MAX to detect the hardware. I dont know, do I have to download special drivers for that.

0 Kudos
Message 3 of 16
(185 Views)

Yes you can't use Xnet or NI Max with that.  You have to use the dll from Peak. I strongly recommend starting with: https://hooovahh.blogspot.com/2017/03/can-blog-introduction-and-downloads.html?m=1

It is an excellent resource and has non NI hardware support. 

I used this driver set with the device you have.  You really need a hardware device this library supports, it will make life easier.

0 Kudos
Message 4 of 16
(177 Views)

@govindsankar wrote:

IVTS is a voltage sensor. The CAN hardware I have is PCAN USB from Peak. It is Peak IPEH 002021.Isnt the first task the NI MAX to detect the hardware. I dont know, do I have to download special drivers for that.


NI Max AND NI-Xnet obviously only recognize and support NI hardware. Your Peak CAN dongle is from a competitor and NI never ever would try to recognize that device. 😁

It's also not a sustainable support model to try to do that as they have not all the technical details from Peak to properly integrate it into their own software stack. It would require reverse engineering of the Peak hardware and software, which is not only a legally problematic method but also costly and there is no economic gain for NI to do that, so why should they even try to?

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 16
(162 Views)

Oh ok, thank you for that info. So we can only program via CAN only if we use NI devices. 

0 Kudos
Message 6 of 16
(157 Views)
Solution
Accepted by topic author govindsankar

@govindsankar wrote:

Oh ok, thank you for that info. So we can only program via CAN only if we use NI devices. 


No! You can use NI-XNet with NI hardware only.

 

You can of course use any CAN interface in LabVIEW if you use its own driver instead of the NI one. And NI is not going to write drivers for 3-party hardware. The profit is in selling the hardware not in providing free to download drivers. 😁

And even if they would charge for such drivers it is not an economical sustainable model, since people expect to get that sort of things for free.

Rolf Kalbermatter
My Blog
0 Kudos
Message 7 of 16
(150 Views)

You need to start at step 1 of the link I showed you.  True, the Peak device is not ideal and not supported by NI drivers but it is not true to say you can only use NI devices. I use NI xnet dbc functions with Kvaser and Vector hardware. 

0 Kudos
Message 8 of 16
(146 Views)

Ok thank you, I did find a driver for PCAN. I didnt test it out because I thought the first step is setting it up in NI MAX. Also it is useless, what I needed to learn was NI XNET. Using the driver from PCAN is useless for me because I need to learn CAN for a different project. Well now I will try to get the NI hardware for the other project and then learn CAN. I planned on learning CAN before getting Hardware. Now I cant, have to wait for the harware to start learning. 

0 Kudos
Message 9 of 16
(144 Views)
Solution
Accepted by topic author govindsankar

Hi govindsankar,

 


@govindsankar wrote:

Also it is useless, what I needed to learn was NI XNET.


Correct, using Peak hardware to learn NI XNet is not the right way…

 


@govindsankar wrote:

Using the driver from PCAN is useless for me because I need to learn CAN for a different project. Well now I will try to get the NI hardware for the other project and then learn CAN. I planned on learning CAN before getting Hardware.


You still can learn "CAN" by using Peak hardware and software. The Peak devices come with free-to-use software (as long as I used them) and this still enables you to learn and understand CAN basics!

Using Peak's CAN monitor you can analyse/send CAN messages and learn how to control your own devices on the CAN bus. When you know which messages are needed for your devices then it becomes easier to handle them later using NI hardware and NI XNet…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 16
(125 Views)