LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data read using CAN (PCAN), XNET

Solved!
Go to solution

Hey, I want to have confirmation like can we read like this in LabVIEW from CAN,

 

(This from BUSSMASTER)

Basavaraj093_0-1734074331893.png

 

 

 

 

WE need to modify to get data like this or 

 

we can get directly.

 

I am getting data like this.

(not in Hex) 

 

Basavaraj093_2-1734074714306.png

I have attached a Vi.

 

I am also not getting message type in string. It is giving different in Table.

 

 

I just modified (not all) Hooovahh's Frame conversion to get string

 

 

 

 

 

 

 

 

0 Kudos
Message 21 of 30
(170 Views)

Update,

 

I am getting data like this.

 

Basavaraj093_0-1734085376518.png

 

 

 

how can I get it like this,

 

all reading at a time.

Basavaraj093_1-1734085503753.png

 

The Message Column I need this column.

 

 

AND THIS DATA I WANT:

 

(I think in BUSSMASTER they use some conversion File or something I am not sure).

AFTER conversion we get this value, I want this instead of those pic 1.

 

and it should read all at a time it is reading one by one.

Basavaraj093_1-1734088929816.png

 

 

 

 

 

 

 

0 Kudos
Message 22 of 30
(150 Views)

Create a .dbc file with the XNET darabase editor. There you define your frames and signals. See XNET examples and hoovahs blog how to convert your CAN data into something meaningful.

Actor Framework
Message 23 of 30
(131 Views)

Sorry guys I don't understand anything.

 

I got some .log files from BUSMASTER and .dbf file.

 

Can anyone give me example code or something so I can communicate with PCAN USB.

 

Thank you

 

 

0 Kudos
Message 24 of 30
(92 Views)

Thank you for sharing this information.

0 Kudos
Message 25 of 30
(84 Views)

@Basavaraj093 wrote:

Sorry guys I don't understand anything.

 

I got some .log files from BUSMASTER and .dbf file.

 

Can anyone give me example code or something so I can communicate with PCAN USB.

 

Thank you

 

 


 Share what you have tried so far and where you are stuck. Did ou read the blog? What do you not understand particulary?

Actor Framework
Message 26 of 30
(59 Views)

Hi, I am attaching the Vi here 

 

  • I am reading the data (RAW).
  • but I want filtered data.
  • For particular data they are giving name and for that they are reading data (in bus master) 
  • I also want to read like that.
  • For more details you can see this I am explained in my Previous Reply 

 

0 Kudos
Message 27 of 30
(44 Views)

Hi Basavaraj,

 


@Basavaraj093 wrote:
  • I am reading the data (RAW).
  • but I want filtered data.
  • For particular data they are giving name and for that they are reading data (in bus master) 
  • I also want to read like that.
  • For more details you can see this I am explained in my Previous Reply 

Your VI could look so much more clean:

 

When you want to filter CAN signals:

  • only parse message data for the ArbIDs you are interested in
  • when there is a message with your ArbD of interest you need to get the bits for your signal as defined in your CAN database
  • once you found those bits you can convert the value according to the signal descriptions in the CAN database

Or you can use the XNet driver to convert the messages into signals as suggested before

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 28 of 30
(35 Views)

Thank you for your reply,

 

I am stuck at this database thing; I don't understand it I am new to it (CAN DATA BASE).

0 Kudos
Message 29 of 30
(21 Views)

Hi Basavaraj,

 


@Basavaraj093 wrote:

I am stuck at this database thing; I don't understand it I am new to it (CAN DATA BASE).


Then you need to learn about it! There are resources like this

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 30 of 30
(14 Views)