LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

recognition usb device by measurment and automation explorer

HI
I have bought  nrf24lu1-dongle from nordicsemiconductor. this is a
transciever with usb interface. when i attach that to usb port it will be
recognized by computer .and in my package there is a driver for that too.so
i think it must be a USBTMC device. but i can't see this device in measurment
& automation explorer. i have update MAX driver(install legacy driver support) after ataching my device to
pc .but no changes occur! this will occur for any kind of usb device like my
mp3 player(i expect when i attach mymp3 player to usb port it must be accessible in measurment & automation). is this problem related with the kind of usb port that i use? all
my usb ports are flat type(host) . or maybe my NI-VISA (version 4.5 is not a complete
package! and don't support USB).
with best regards
0 Kudos
Message 1 of 8
(3,928 Views)

Your device is not USBTMC. What made you think this? And, your mpt3 player will not show up in MAX.

 

You should study some of the basics of USB. A great place to start is the Nuggets from Intaris and the tutorial. It looks like the datasheet has a lot of information. Probably enough to create your own driver for it.

Message 2 of 8
(3,907 Views)

thanks for your advise.

i studied links that you had mentioned. but after using visa driver wizard unfortunately my device(nrf24lu1-dongle)  is not recognized  by MAX (in devices and interfaces). i do the same strategy for my usb mouse and it will be recognized in MAX as a usb device.

of course my device is specified as a humman interface devise(HID) ,in device manager. i have done all the thing that is recommanded in "usb instrument control tutorial" but nothing changes!

what can i do?

best regards.

0 Kudos
Message 3 of 8
(3,882 Views)
I don't quite understand what you are doing. Since the device already had a driver (HID), why create something different? There have been code examples posted on using the HID driver. Have you done a search and looked at all of the related USB threads?
0 Kudos
Message 4 of 8
(3,875 Views)

ok. let have some discussion.

 

if i want to use of labview for communicatingwith my hardware based on visa at first i must  tell Windows to use NI-VISA as default driver for my device. in the first post you mentioned that my device is not USBTMC device. i thought my device is USBTMC because it will be recognized by windows automatically when i attach it to usb . by yhe way it has its own driver.

as you say if my device be raw i must build a driver for that by  "visa driver development wizard". so i have done that. but but with and without its own driver it won't be recognized by MAX.so it is a new idea in my mind: because my device is programmable so maybe it is necessary for that to be programed first ,after that it will be recognized by MAX. i must try this.

inform me with your suggestion

best regards

0 Kudos
Message 5 of 8
(3,863 Views)

One, your thought about USBTMC is very wrong. There are numerous classes of USB devices and TMC devices are a small percentage. The only ones I've seen are from the large vendors of GPIB instruments (Agilent, Tek, etc.). Your USB mouse and keyboard are automatically recognized by windows and they are not TMC. They are HID - just like this device.

 

Since it is HID, you can connect to the HID dll with the Call Library Function Node. That is why I suggested you search the board. I have not done this but there have been a number of people who have.

 

If you want to start from scratch, you would need to stop the device from loading the HID driver. Again, I'm not that familiar with HID but I believe this issue has also been addressed in some of the other threads.

 

Using the VISA wizard, has been imho, a last resort and something to be tried only when the vendor does not provide a documented driver.

0 Kudos
Message 6 of 8
(3,856 Views)

hi after a long time i have decided to use labview call library function node to transfer data to my device. because my device is HID i think i must use hid.dll to do my task.my task is receiving a data by my HID device and display it by labview.but i have no idea about the functions in hid.dll, the parameter type, and transfering data  using hid.dll. i searched NI Discussion Forums for finding an example but i couldn't find any thing. when i use call library function based on defined parameter sometimes labview memory problems occur and sometimes labview shut down after running. i need an labview example for understanding HID.DLL .

regards

0 Kudos
Message 7 of 8
(3,695 Views)

Hello farashi,

 

As noted in this KnowledgeBase article, the hid.dll file is from Microsoft, and you can find more information here.

 

I also found this really helpful nugget on programming USB devices that may prove to be helpful.Hope this helps.

 

Regards,

---

Peter Flores
Applications Engineer
Message 8 of 8
(3,676 Views)