Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control a can bus device

Hi Sir,

 

I did not experienced can bus device control, but it seems it is very common for automotive.

Thus I want to know the logic clearly:

 

1. Firstly the PC or laptop need a can card, or a convertor, just like the GPIB card and usb to GPIB convertor, right ?

2. Secondly, after i install the labview, i did not see any "can bus" function, so we need to install third-party lib ?

3. After the above action, we can find the ID in Ni-MAX, then we can communicate the device by the commands of off-the-shelf(provided by supplier) ?

 

Thanks.

Learning from other people
0 Kudos
Message 1 of 6
(1,124 Views)

1) Yes

2) Yes, except if you choose NI hardware it's not a third party hardware but an NI driver

3) Depends on 2), if you used a NI hardware then yes you can see the device in NI Max, if it is a third party hardware, then no, you can not see that in NI Max.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 6
(1,076 Views)

For item 2, i saw some third-part hardware in online shop, it is much cheap, i guess it need the third-part dll, just like some usb-i2c tools.

 

I watched some videos of NI-XNET:

 

1. XNET monitor:    this is just like logic analyzer for I2C,to monitor the data back and forth, right ?

2. XNET database: this is to define the frame format of the 8 bytes;

3. General logic for communication: we can read both  the frame or single bit, flow chart is something like open connection-->read/write-->close connection ? where i can get some samples ?

Thanks.

Learning from other people
0 Kudos
Message 3 of 6
(1,056 Views)

@Brzhou wrote:

Hi Sir,

 

I did not experienced can bus device control, but it seems it is very common for automotive.

Thus I want to know the logic clearly:

 

1. Firstly the PC or laptop need a can card, or a convertor, just like the GPIB card and usb to GPIB convertor, right ?

2. Secondly, after i install the labview, i did not see any "can bus" function, so we need to install third-party lib ?

3. After the above action, we can find the ID in Ni-MAX, then we can communicate the device by the commands of off-the-shelf(provided by supplier) ?

 

Thanks.


My first suggestion would be to post this under [Additional NI Product Board --> Automotive and Embedded Products].

Now, CAN bus seems quite simple and with a two-wire connection (CAN-L & CAN-H), how difficult can it be?  The answer is that unless you know all about the device you are trying to connect (Baud rate, endian, ...) or are given the database files (A2L, DBC, ...) then you are probably going to be out of luck.  Many suppliers keep this proprietary information to themselves and will only push the necessary data up to the ODBCII level.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
Message 4 of 6
(958 Views)

Wrong thread

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 6
(952 Views)

See an earlier description entry of the header connection information required here.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 6 of 6
(837 Views)