comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » USB dlm for IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
USB dlm for IDL? [message #69819] Fri, 19 February 2010 08:03 Go to next message
tegus is currently offline  tegus
Messages: 20
Registered: October 2008
Junior Member
Hi,

I am currently using my serial port, via IDL, to command a motion
controller. I works fine with the serial port dlm from the ITT code
library. Of course, I want to control more stuff, so it seemed USB was
the way to go, but before attempting to build my own USB dlm, I was
hoping someone has already done so.
Possibly Ron Kling's "generic interface for calling Windows DLL
functions directly" on his Kilvarock website could be one approach,
but I don't know much about Windows DLL functions.
I'm running 7.0 on 64 bit Win7.

Thanks!
Bill
Re: USB dlm for IDL? [message #69930 is a reply to message #69819] Tue, 23 February 2010 14:42 Go to previous message
Marco is currently offline  Marco
Messages: 5
Registered: April 2009
Junior Member
USB is not a port like a serial port out of which you can pump arbitrary
data. There must be a device plugged into it. The OS will recognize that a
device has been plugged in and query it. It will then find out if it has a
driver for that device. If it does, it will then load the driver. Once the
driver is successfully loaded, a user can access the device. How that
device is accessed depends on the driver. If the device is a serial device
you will be able to talk to it as a serial port. If it is a disk, it will
look like a disk. If it is a camera it might look like a camera or a disk
depending.



In any case, you need to have a USB device and a driver for it. In your
case, if you are currently using a serial port, get a USB-to-serial device.
Then, you just talk to it like a serial port just as you have been.



If the device has a USB interface that is not a standard interface, the user
documentation will tell you how to talk to it in C or C++. Then you can
build a DLM if you need.

Marco
UCO Lick Observatory
Laboratory for Adaptive Optics


"tegus" <tegusbillharris@gmail.com> wrote in message
news:9b7703de-6ad1-4f24-a709-bbe3c7d1ac77@c16g2000yqd.google groups.com...
> Hi,
>
> I am currently using my serial port, via IDL, to command a motion
> controller. I works fine with the serial port dlm from the ITT code
> library. Of course, I want to control more stuff, so it seemed USB was
> the way to go, but before attempting to build my own USB dlm, I was
> hoping someone has already done so.
> Possibly Ron Kling's "generic interface for calling Windows DLL
> functions directly" on his Kilvarock website could be one approach,
> but I don't know much about Windows DLL functions.
> I'm running 7.0 on 64 bit Win7.
>
> Thanks!
> Bill
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Poor comparable performance for IDL on Solaris vs Vista or Snow Leopard
Next Topic: Preview of IDL 8.0

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:20:48 PDT 2025

Total time taken to generate the page: 0.00436 seconds