05-02-2013 02:45 PM
I need to read the CAN interface assigned to my NI-USB 8473 CAN-to-USB controller within NI's System Configuration (MAX).
The purpose is to programmatically identify the NI-USB hardware device attached to the PC, read the CAN interface assigned to it, and use that in LabVIEW instead of manually checking NI MAX after the controller is disconnected and reconnected or using it on a different PC etc.
Using LabVIEW's VI's found through
Measurement I/O - System Configuration I
Initialize, Get Experts, Find Hardware and get:
Expert = nisyscfg
VendorName=National Instruments
ProdName=USB-8473 (High-Speed CAN)
IsNI=true
IsPresent=1
Is there a property for the CAN Interface? If so, where is it found?
Is there a different way to accomplish the same thing?
Thanks, Scott.Pierskalla
05-03-2013 07:05 PM
Hi Scott,
This may not answer your question directly, but I was able to locate a KnowledgeBase (KB) article that discusses detecting a different NI USB device.
How to Programmatically Detect USB-8451 I2C/SPI Interface
I was also able to find a KB on determining the resource name.
How Can I Programatically Retrieve a VISA Resource Name in LabVIEW?
I hope this is helpful for you. Let us know if you have more questions/information.
05-06-2013 09:52 AM
This was the best I could do.
http://forums.ni.com/t5/LabVIEW/Get-CAN-Bus-Ports/td-p/2174296
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord