08-10-2015 01:08 PM
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!
08-10-2015 03:08 PM
Did you install NI-CAN? It should have came with your hardware. Have you looked at the examples in the Help >> Find Examples?
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-11-2015
08:41 AM
- last edited on
11-15-2024
04:20 PM
by
Content Cleaner
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.
08-11-2015 09:43 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-11-2015 12:39 PM
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?
08-11-2015 01:23 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-15-2015 12:06 PM
Yes. I want to set up an experiment. Can you please help me?
08-17-2015 07:25 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-17-2015 12:11 PM
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.
08-17-2015 12:22 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord