From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB device autentication

Hi Guys,

 

I am having no idea how to go ahead with the below mentioned problem:

 

I am having 2 usb device connected to my laptop. I need to first recognize the USB device then authenticate the same programaticaly.

 

Can anyone help me how to go ahead with solving the problem.

 

 

 

0 Kudos
Message 1 of 6
(2,687 Views)

Please be more specific.

What are these USB devices? Do you have its drivers?

Once you install the driver the device will appear in MAx & then you can program or control it.

0 Kudos
Message 2 of 6
(2,679 Views)

Hi,

 

Does device type make any difference? the interface is USB.

 

Consider a scenario wherein I have connected two pendrive of capacity 4 GB in my two USB slots in laptop.

 

The NI Max software will recongnize that devices. Now How to import this data to my LabVIEW application from NI max.

 

Based on the information received like partnumber I need to authenticate the USB device.

 

Please let me know if anyone has any idea?

0 Kudos
Message 3 of 6
(2,674 Views)

Use VISA propertty node & give VISA reference of your USB device as seen in your MAX to it.

 

Kudos are welcomed.:-)

0 Kudos
Message 4 of 6
(2,667 Views)

If you attach a pendrive you access it as a drive as you would on your normal hard drive.  You don't need to do anything with USB at all.

 

I don't understand your problem.

 

Shane

0 Kudos
Message 5 of 6
(2,644 Views)

Do you see your device in MAX? The device type is possibly of importance, USB is just an interface, how the manufacturer uses it with their device is the important part. Some devices provide a serial number, some don't, some show up as "serial COM" ports, some as external hard drives, some don't show in MAX at all. I have a digital I/O card that does not show up in MAX, has to be ID'd using the supplied USB driver, and then doesn't provide a unique ID, so you have no way of determining which DIO is which, it is dependent on which one got "plugged in" first. NI's USB-serial cards do have individual serial numbers, so theirs can be ID'd no matter which "COM port#" they show up as. So knowing more about what you are using and whether you can see it in MAX might help.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 6 of 6
(2,632 Views)