Commit graph

11 commits

Author SHA1 Message Date
Dewey Garrett
d6db5cafb8 sim_pin: better default for bit types
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
(cherry picked from commit 854fc2324f)
2014-12-09 21:05:07 -07:00
Dewey Garrett
7f215f84d3 sim_pin: add reset button (restore start value)
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2014-10-04 10:57:08 -07:00
Jeff Epler
e667607774 Merge remote-tracking branch 'origin/2.6'
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2014-09-30 09:23:38 -05:00
Dewey Garrett
15f7d6f6dd sim_pin: remove special case (-0) in isnegative
just treat -0 as 0

Note: halcmd rejects nEmm format for u32,s32 -- not addressed here

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2014-09-29 13:31:47 -07:00
Dewey Garrett
431fb11f04 sim_pin: show initial value
and alter color when value changed
2014-09-18 14:45:24 -07:00
Dewey Garrett
4f677a92d1 sim_pin: try to use sig if pin connected already 2014-02-25 10:03:42 -07:00
Dewey Garrett
5f2266363e sim_pin: accomodate longer pin names 2014-02-24 21:23:10 -07:00
Dewey Garrett
3713c3da1d sim_pin: require exact_name
The command: hal show may return multiple matches so find exact_name

minor: change color for bit set value
2014-02-18 12:16:08 -07:00
Dewey Garrett
e5858b2f05 hal: make pins for several ini file items
When hal pins are changed, action for the ini value is taken
with no checks for suitability.

Includes a sim config for demonstration of pins:
    configs/sim/axis/ini_hal_demo.ini
2014-01-16 21:56:21 -07:00
Dewey Garrett
378cc9104a sim_pin: support u32,s32,float pin,param types
Refactor to:
 Use tcl package (Hal) instead of halcmd
 Use popup to show errors
 Update displayed values by poll
   (makes visible changes by multiple sim_pin guis or other setters)
 Support signals if they have no writers
 Detect and report pins/params that are not writable, e.g.:
   pin    not IN nor I/O
   param  not RW
   pin    connected to signal
   signal connected to writer
 Support multiple columns of items
2013-06-24 16:11:44 -05:00
Dewey Garrett
8c73b00fb3 sim_pin script to simulate writing to hal pin
Supports multiple pins with three modes available for each:
  1) OnePulse
  2) ToggleValue
  3) 1 WhilePressed

Usage:
       sim_pin pin_name1 [pin_name2 ...] &

Note:  linuxcnc must be running
       The pin(s) may not be connected to a signal
2013-02-20 15:23:48 -06:00