NECST.MAC
|
[
source code |
installed at |
configured at
]
|
See other macros in category:
All
|
Description:
Macros to control ESRF NECST device over ethernet.
The NECST can be used as "Counter" or "Counter/Timer".
Tested with embedded firmware 00.02
|
Documentation:
DESCRIPTION
- Configuring counters
-
Macro counters can be configured to read board counters
(counters 1->12 have physical inputs, 13->16 are internals only).
Configure first in SCALERS a new "Macro Counter" controller with
DEVICE field set to string "necst" and ADDR field set to the
hostname of NECST device. The "NUM" field must be set to 16
Then configure counters using the previous controller, the "channel"
is used to select the counter to read (from 1 to 16)
- Configuring the timer
-
Configure first in SCALERS a new "Macro Counter/Timer" controller with
DEVICE field set to string "necst" and ADDR field set to the
hostname of NECST device. The "NUM" field must be set to 16
Configure the "timebase" counter ("sec") to use the previous controller,
the "Channel" must be set to 0, the "Scale Factor" must can be
2e4 1e5 1e6 1e7 1e8 2e8 (the internal NECST clock will be set
according to this value)
Then configure counters using the previous controller, the "Channel"
is used to select the counter to read (from 1 to 16)
- Electrical signals
-
When used as "counter/timer, the gate signal of the timer is available
on output "DO1" of the front end.
When used as "pure counters", the counters are gated by the signal
incoming in input "DI1" of the front end.
Currently, these signals are not configurable but hardcoded in
the macros, sorry.
|
Macros:
necst
Usage: necst hostname
Launch an interactive command line interface.
This allows for intance to check/setup the instrument configuration
using direct command like ?HELP
|
Internal Macros:
|
necst_config
Usage: necst_config ()
Called by spec after reading the config file
necst_cmd
Usage: necst_cmd ()
Called by spec on motor or counter operations
necst_par
Usage: necst_par ()
Called by spec on motor_par() or counter_par()
necst_comm
Usage: necst_comm (hostname, command)
Send a command to the given device and returns the answer if any
_necst_err
Usage: _necst_err
Pure cosmetic macro
_necst_test
Usage: _necst_test
Test macro
Expect a 100MHz incoming signal on cnt1 counter.
|
Filename: | necst.mac |
Author: | MP BLISS (Original 2/2017).
$Revision: 1.1 $ / $Date: 2017/03/20 10:19:59 $ |
Last mod.: | 20/03/2017 11:19 by perez |
|