Chris,

While I have not looked into it myself, you might want to look at USB-DUX
here:
http://www.linux-usb-daq.co.uk/

Depending on the device, it supports sampling rates between 8Khz and 3Mhz
over USB, and claims to be real-time. Granted this is their own device, but
it could show you how to do a real-time interface to USB devices.

The Linux driver is open source, and supported by Comedi, see:
http://www.comedi.org/

That can show you how to talk to the USB port for this type of application.
Then you might also look at "classic ladder" to see how it uses EMC's
real-time in place of that of Comedi, which is used by Classic Ladder
(http://membres.lycos.fr/mavati/classicladder/) when not adapted to run with
EMC.

Then, I presume you could map whatever I/O you handle through it to HAL pins
with a driver similar to those found in the [EMC Folder]/src/hal/drivers
folder, provided you have downloaded and installed the source code.

I still have it in the back of my mind to try to write a hal driver for an
XBOX controller, which also uses USB, to use as a joy-stick input, etc. as
an inexpensive means of jogging and otherwise performing related functions
within EMC2. But I don't know how to do that yet either. :)

HTH,
Eric

>    Yes I was only thinking about running 'slow' devices like 
> relays or led/indicator lights. realtime would be unnessary.
>    I don't  Really understand how USB is a more a Windows 
> standard then Linux or better said LOTS of Linux standards 
> are ported from others. Personally I like the idea of using a 
> 'Windows' device in a more open, free and originally 
> unthought of way. I just like to tinker I guess. MHO.
>    So can anyone point me in the right direction to research 
> how to do this? Thanks


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to