08-31-2009 03:52 AM
08-31-2009 07:44 AM
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.
09-02-2009 08:03 AM
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.
09-02-2009 09:34 AM
09-02-2009 03:52 PM
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
09-02-2009 04:37 PM
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.
10-08-2009 02:02 AM
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
10-09-2009 03:03 PM
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,