Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB 9862 Setup LabView 2014

Hey!

I have NI USB 9862 and I am new here. I want to set it up with LabView and run some codes to learn it. Can anyone please give me the steps for first setting it up and then some codes to refer?

Thanks!

0 Kudos
Message 1 of 13
(6,853 Views)

Did you install NI-CAN?  It should have came with your hardware.  Have you looked at the examples in the Help >> Find Examples?

Message 2 of 13
(6,833 Views)

Hi manu9511,

 

Hoovahh has the right idea. However, the NI 9862 is supported by the NI-XNET driver, so you'll want to install the version that corresponds to your version of LabVIEW. After you install the driver, check out the examples. There's also a Getting Started Guide that you might find useful.

Andrew T.
"His job is to shed light, and not to master" - Robert Hunter
Message 3 of 13
(6,809 Views)

Oops, yeah if your hardware supports NI-XNet then you should prefer using that.  NI-CAN is older and hasn't been updated in a while, and likely will be deprecated at some point.  I thought this was the cheap-o USB CAN that doesn't support XNet, which is where my comment came from.

Message 4 of 13
(6,803 Views)

Thanks!

This will help me with a great start! I have a small question though.

What kind of hardwares are recommended to use with NI-USB 9862?

0 Kudos
Message 5 of 13
(6,792 Views)

@manu9511 wrote:

 

What kind of hardwares are recommended to use with NI-USB 9862?


Uh...the 9862 is the hardware.  Are you asking what do you connect it to?  It's USB so any modern computer that you can load NI-XNet onto.

 

Or are you talking what hardware do you plug into the CAN port?  The answer to that would be a device that sends out CAN data at the ISO standard.

0 Kudos
Message 6 of 13
(6,789 Views)

Yes. I want to set up an experiment. Can you please help me?

0 Kudos
Message 7 of 13
(6,743 Views)

I can only help if you answer my questions.  My last post asked two questions, you didn't answer either of them, and you didn't mention if you tried any of the examples.

 

Plug in the USB CAN to your PC, plug in a device that will send out CAN data periodcially.  Run an example in the Example Finder for reading raw frames from your hardware.  Follow the instructions in that example.

0 Kudos
Message 8 of 13
(6,698 Views)

Kind Sir,

I am sorry for not replying.

I want to know the device that I can use to send data periodically to CANBus. I have 2 NI USB 9862. Can I connect them with two different PC and then use the twisted wire cable to connect them and communicate. I am trying to solve the examples but they do not seem to be working.

0 Kudos
Message 9 of 13
(6,680 Views)

@manu9511 wrote:

I have 2 NI USB 9862. Can I connect them with two different PC and then use the twisted wire cable to connect them and communicate. I am trying to solve the examples but they do not seem to be working.


Oh yes, but there is some things you should know.  You don't need 2 PCs, but you can try two VIs, where one spits data out and the other gets it.  Both of these are examples in the example finder.

 

Another thing you need to note is DO NOT TWIST THE WIRES (I hate yelling).  By that I mean CAN does not have a TX and an RX where they need to be swapped, instead CAN has a CANH and a CANL.  Wire the CANH from one device to the CANH of another, and the CANL to the CANL of another.  Usually you'll use a couple 120 ohm resistors but they can be optional in some cases, or a single 60 ohm.  It reduces reflection on the bus.  If you were just talking about how the lines are twisted pair then you are fine I just wanted to make it clear that Pin2 of one DB9 goes to Pin2 of another.

 

0 Kudos
Message 10 of 13
(6,678 Views)