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

On Fri, 2011-02-18 at 07:56 -0800, Doug wrote:
> This is what Step wizard put in the Hal.
> 
> # Include your customized HAL commands here
> # This file will not be overwritten when you run stepconf again
> 
> loadrt charge_pump
> net estop-out charge-pump.enable iocontrol.0.user-enable-out
> net charge-pump <= charge-pump.out
> addf charge-pump base-thread
> net charge-pump => parport.0.pin-17-out
... snip

loadrt is good
addf is good

I read the net command line as:
net signal_name master_pin slave_pin0 [slave_pin1 ... etcetera]

so charge-pump.enable doesn't seem correct because it is a slave,
iocontrol is a slave. I don't think this line will work, but I could be
wrong. Commenting it out (adding # or ; to the front of the line) should
make charge-pump work because the default is "enabled".

net charge-pump... is okay.

The charge-pump component just toggles the output pin each time the
component gets invoked by the thread, so the frequency is 1/2 the thread
rate or .5 x 1/thread period. A common base thread is 50000 nanoseconds
(see your .ini file), or .00005 seconds, f = 1/(.00005 * 2) = 10kHz.

I would check the signal with HALscope set to the fast period, and check
and trigger on the charge-pump.out pin.

I would tend to condense the two lines above:

net charge-pump <= charge-pump.out
net charge-pump => parport.0.pin-17-out

to

net signal_name  master           slaves
net cp           charge-pump.out  parport.0.pin-17-out

(I seem to recall component and signal names can not be the same so I
used "cp" for the signal name)


-- 
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
 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5887 (20110218) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


------------------------------------------------------------------------------
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

Reply via email to