On Fri, 2011-02-18 at 19:45 -0800, Doug wrote: > I believe I understand. File should read. > loadrt charge_pump > # net estop-out charge-pump.enable iocontrol.0.user-enable-out > net signal_name master slaves > net cp charge-pump.out parport.0.pin-17-out > addf charge-pump base-thread > > Does it the order make a difference? > How do I set the hall scope to fast period. I think I know how to set the > trigger to charge-pump.out pin. > > Doug
Oops, leave the "net signal_name master slaves" line out or comment it out. " loadrt charge_pump addf charge-pump base-thread # net estop-out charge-pump.enable iocontrol.0.user-enable-out net cp charge-pump.out parport.0.pin-17-out " The order of the lines does make a difference, in that, in order for a component's pins or functions to exist, the loadrt line needs to be invoked. After the loadrt line, the pins and functions will have been made so then they can be addf'd and net'd. After the loadrt line, the other lines can be in any order. There is an exception. Sometimes you might see a 1 or -1 following an addf line. A 1 overrides the line order and puts this command first. A -1 places the command last. Here is an example: "... # next connect the parport functions to threads # read inputs first addf parport.0.read base-thread 1 # write outputs last addf parport.0.write base-thread -1 ..." It's my understanding that the first word after "net" is always a signal name and the next word is always an output or master. It gets more complicated when the net command is broken into more than one line, which is allowed. See: http://www.linuxcnc.org/docview/html/hal_basic_hal.html#r1_1_4 This screen in section 1.5.1 in HALscope: http://www.linuxcnc.org/docview/html/hal_tutorial.html#r1_5_1 shows where the setting is made. This screen comes up first if the setting has not been made before. To reset it,I believe you click on the button just above the "IDLE" in the example screen, which is just below the one linked above. In the example screen, the button has "4000 samples at 1.01kHz" on it. Click on it and make the change to "fast". -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
