From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN communication with Veristand

Solved!
Go to solution

Hello,

I'm using a CRIO9081 with a CAN module 9268. I made a good configuration with module detection under MAX, power supply the module, adding CAN port under a Veristand project and i have NI XNET...

Now i want to interact with a sensor using CAN through Veristand, but i'm novice with CAN communication : do you know some "user manual" about how to use CAN through Veristand to interact with an other hardware ?

Thanks

0 Kudos
Message 1 of 6
(4,849 Views)

Hi vincentlg,

 

I'm assusming you're using the 9862 XNET module. If this is the case, the following white paper is a very good resource and starting point:

http://www.ni.com/tutorial/14706/en/

 

Let us know if you face any further issues!

 

Chris

Regards,
Chris (CLED, CLA, CTA)
Applications Engineering Specialist
0 Kudos
Message 2 of 6
(4,839 Views)

Hi vincentlg,

 

I'm assusming you're using the 9862 XNET module. If this is the case, the following white paper is a very good resource and starting point:

http://www.ni.com/tutorial/14706/en/

 

Let us know if you face any further issues!

 

Regards,
Chris (CLED, CLA, CTA)
Applications Engineering Specialist
0 Kudos
Message 3 of 6
(4,837 Views)

Yes, i'm using a 9862 sorry 🙂

And yes i have already read this paper, and i did all what is explain, all the set up is ok, i add the CAN port correctly, i add the NI "example" CAN database...

But after that, to communicate with an external sensor with CAN, do i have to create an other CAN database or CAN i use the "example" database ?

And is it possible to communicate this way through the Veristand Workspace ?

(I also think about the "CAN converter" in DIADEM but i'm not sur...)

Thank you for your answer !

0 Kudos
Message 4 of 6
(4,832 Views)
Solution
Accepted by topic author vincentlg

Hi vincentlg,

 

In order to communicate with an external sensor via CAN, it's likely that you'll need to configure a CAN database. You can create this with the NI-XNET Database Editor which is included with the XNET driver. The CAN database is responsible for converting CAN frames into 'real-world' values (see: http://www.ni.com/white-paper/2732/en/#toc6). It will also mean that you can add a frame/signal to VeriStand. By doing this, signals will appear as a channel in the environment allowing you to get (or set) the channel value in the VeriStand WorkSpace. 

 

You may find that the manufacturer of the external sensor will provide a database or the scaling that needs to be done to convert the frames to meaningful data. It's very unlikely that this will match with the example database.

 

The Bus Log Convertor in DIAdem allows you to take raw frame data and convert it to meaningful data AFTER acquisition. You'll still need a CAN database in order to do this.

 

To summarise: you can acquire data from CAN without a database, but you'll get the raw frames which might not mean anything to you. If you create a database, you'll be translating these frames into meaningful data.  

 

I hope this helps, but let me know if I can clarify anything.

Regards,
Chris (CLED, CLA, CTA)
Applications Engineering Specialist
Message 5 of 6
(4,828 Views)

Okay, well, finaly i find the sensor CAN database and i add it with the NIXNET.

And now it seems really easier ! I am able to get data through Veristand, i'll try to send datas but anyway, it's better !

Thank you very much for the help, i was lost with the CAN environnement, now it's ok 🙂

0 Kudos
Message 6 of 6
(4,809 Views)