Ted Hyde wrote: > After lots of "pre-show" effort, I am starting simply inside of halrun: > > > > # components > > loadrt siggen > > loadrt hostmot2 > > loadrt hm2_7i43 config="firmware=hm2/7i43/SV8B.BIT num_encoders=1 > num_pwmgens=1 num_stepgens=1" > > loadrt threads name1=tt period1=100000 > > # parameter values > > setp hm2_7i43.0.gpio.P3.047.invert_output FALSE > > setp hm2_7i43.0.gpio.P3.047.is_output TRUE > > setp siggen.0.update.tmax 0 > > # realtime thread/function links > > addf hm2_7i43.0.read tt > > addf hm2_7i43.0.write tt > > addf siggen.0.update tt
A couple of other comments on this. You dont need to set siggen.0.update.tmax, it gets set by the siggen driver to communicate to the user how much time it's taking to run. Setting it has no effect. Also, I realize that you're not using siggen yet, but when you do you should probably run siggen.0.update before hm2_7i43.0.write, so that you're writing (to the 7i43) the latest stuff from siggen. The way it is now, you have to wait one thread-period before the siggen output appears on the 7i43's pins. -- Sebastian Kuzminsky Distances obtained as the speed of light multiplied by a cosmological time interval have no direct physical significance. <http://en.wikipedia.org/wiki/Observable_universe> ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
