Hi Karl,

Those are the numbers they gave me. Do you think converting the vendor ID
to hex (or product ID to decimal) could fix the problem?

Thanks,
Irina


On Fri, May 3, 2013 at 3:40 PM, Karl P <ka...@tweak.net.au> wrote:

>
>
> On 05/03/2013 06:48 PM, Wander Lairson Costa wrote:
> > 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()
> >>
>
> Really?  You reallllly mean to use hex for one and decimal for the other?
>  You
> may have checked with the manufacturer, but that seems like a needlessly
> confusing way to do things if deliberate....
>
> Cheers,
> Karl P
>
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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