With respect to "messing it up", the hal and ini file are as they are directly generated from pncconf. The source simply does an input and I am doing that to keep the configuration modular. I run various configurations on this machine, and can pick and choose configurations by sourcing different sub-hal files in the custom hal.
On Sat, Mar 17, 2012 at 9:31 AM, Viesturs Lācis <viesturs.la...@gmail.com>wrote: > 2012/3/17 Scott Hasse <scott.ha...@gmail.com>: > > > > [HAL] > > HALUI = halui > > HALFILE = 3300_mill.hal > > HALFILE = custom.hal > > POSTGUI_HALFILE = custom_postgui.hal > > SHUTDOWN = shutdown.hal ... > > > > > > the custom.hal file: > > > > source analog-in.hal > > > > the analog-in.hal file: > > > > #http://linuxcnc.org/docs/devel/html/hal/rtcomps.html#sec:Encoder > > # hm2_5i23.0.gpio.048.in is the freqeuncy in > > # load the component > > loadrt encoder num_chan=1 > > setp encoder.0.counter-mode true > > #encoder.0.phase-A > > net analog-A encoder.0.phase-A <= hm2_5i23.0.gpio.048.in > > # set the velocity of the encoder for a proper scale > > setp encoder.0.position-scale 1.0 > > # set the volicity out to feed the analog input > > net analog-1 <= encoder.0.velocity > > # add the component to the thread > > addf encoder.update-counters base-thread > > addf encoder.capture-position servo-thread > > Why are You messing it all up? > In INI file You load custom.hal file, but in that You tell - look in > analog-in.hal file. > And then all the stuff is hidden in analog-in.hal file... > > Any particular reason not to specify analog-in.hal file already in INI > file or at least copy/paste all the commands in custom.hal file? > > I am telling this, because it is the first time I see "source" command > in HAL. I do not remember seeing it in docs too, so I have no idea, > how it works or how it affects the performance. The same goes for > "alias pins" in Your main HAL file. > > Have You tried routing the frequency input directly to 5i23 card? > IMHO that way You would check, if You are exceeding opto-isolators' > capabilities. > > Viesturs > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users