SIMION® Industry standard charged particle optics simulation software.
Newsflash: SIMION 8.1.0 is here.
About | Documentation | Community/Support | Downloads | Ordering

SIMION 8.0 Issues/Bugs/Enhancements

Filter issues by query:
Issue I429 [80,enhancement,med-high,resolved]
  Define behavior of adj_elect[i] and adj_electXX for non-existent
  electrode numbers and #adj_elect.

  == SUMMARY ==
  
  The behavior of the `adj_elect` variable in user programs is
  currently as follows.

  `#adj_elect` returns the last adjustable electrode
  number in the current PA (as of 8.0.6-TEST11).  For example,
  if your PA0 has electrodes numbered 1, 2, 3, and 10,
  then `#adj_elect == 10`.  If your PA0 only has fast scalable electrodes
  (i.e. adjustable potential #0), then `#adj_elect == 0`.  `#adj_elect`
  is not accessible for arrays with no adjustable potentials
  (e.g. `fast_adjust` segment is not called).

  `adj_elect[i]` returns `nil` if `i` is a non-existant
  electrode (as of 8.0.5-TEST2).  Writing to `adj_elect[i]`
  for non-existant electrode `i` raises an error.  If your user
  program is not sure whether an electrode exists and is able
  to be written to, it may use code like this:

    if adj_elect[20] then adj_elect[20] = 10 end
Any comments on this web page? (will be sent to SIS)
[Optional] Your name: email: phone/fax:
(c) 2003-2006 Scientific Instrument Services, Inc. (SIS). Contact SIS.