2013/5/3 I Rabkina <irina.rabk...@gmail.com>:
> Hello,
>
> I am just getting started with pyusb. I need it to send an high/low signal
> to a DAQ box using USB. Unfortunately, I am coming across a problem within
> the first few lines of code. Specifically, pyusb can't find the device. I
> assumed that the error was from having incorrect IDs, but I've checked with
> the manufacturer and they are correct. Am I doing something incorrect with
> the code or does pyusb not support this kind of device? The code I'm using
> is below.
>
> import usb.core
> import usb.util
>
> #find the device
> dev = usb.core.find (idVendor=1307, idProduct=0x82)
>
> if dev is None:
>    raise ValueError ('DAQ not found')
>
> dev.set_configuration()
>

What Operating System are you using?

-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to