On Tue, 2007-12-25 at 14:58 -0600, John Thornton wrote: > Kirk, > > Thanks for the reply. Are you suggesting that I do something like you did but > in > reverse somehow to read the voltage with EMC?
Yes. Both the DAC and ADC move the data in the same way, by clocking in or out one bit at a time, then finishing with a load signal. > I understand that the usb port can > handle analog 0-5v inputs from a joystick. I don't know much about USB, but it seems USB is not supported in EMC for real time performance reasons. > Perhaps something that would scale the > 0-220vac to 0-5vdc that I could somehow use in EMC with a scaler... dunno I'm > thinking out loud right now so anyone have any simple ideas please jump in... > > Thanks > John I have no idea what signal you are dealing with, but if it can be converted to a signal between 0 and 5 Volts DC, then the rest is pretty much done. The scale HAL component is used to scale the 100% input value from the ADC, which for the LTC1286 is 12 bits = 0xFFF = 4095, to the value that EMC will understand as a 100% value. Can you supply more information on what kind signal you are trying to measure, how it's value should affect the system, and the machine you are working on? Now that you got me thinking, it would be nice to measure spindle and axis load/current in EMC -- maybe air pressure and temperature too. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users