01:08:40 rayh has joined #emc-devel 01:08:59 Hi Ray 01:09:07 Hi Steven 01:09:25 logger_devel: bookmark 01:09:25 See http://solaris.cs.utt.ro/irc/irc.freenode.net:6667/emcdevel/2006-01-19#T01-09-25 01:09:51 not too much interesting stuff since you left 01:11:19 lost your addy in the crash 01:11:47 spadnos at sover dot net 01:12:19 like that'll fool any self-respecting spambot 01:20:30 on the way 01:21:16 ok, thanks 01:22:01 gonna switch machines 01:22:28 rayh has quit 01:33:33 rayh has joined #emc-devel 01:51:18 at least kill -9 still works ;) 01:53:19 Yes it does 01:54:59 You should try bc in place of halcmd 01:55:20 ok - maybe I should recompile halcmd first, with the changes ;) 01:55:32 Sure. 01:56:53 I changed it to bc, and I get "Error: can't read "fid":no such variable" 01:56:58 I sent it 2+3 01:57:19 of course, it helps if I "open" it first 01:57:47 interesting. I send bc 2+3, and I get back "2+3" 01:58:05 I then sent "2+3=", and it hung 02:04:19 I think some of the twisted up garbage I added to read is causing the problem 02:04:26 could be ;) 02:04:35 I've got serious mouse problems here. 02:04:47 that's no excuse 02:04:49 the wheel sends all kinds of editing events to kwrite 02:04:57 ah - maybe it is an excuse :) 02:04:59 I can't edit at all now. 02:05:16 how is the wheel configured? 02:05:24 is it a ZAxisMapping? 02:05:34 Uh I know not. 02:05:49 It's whatever psmouse does. 02:05:56 SWMBO just arrived home, I may be a little slow for a few 02:06:16 no worries. I'm going to be away for a while also. 02:06:25 ok 04:42:00 rayh has quit 04:45:34 SWPadnos is now known as SWP_Away 13:13:49 anonimasu has joined #emc-devel 14:23:12 rayh has joined #emc-devel 15:25:45 rayh has quit 15:49:20 SWP_Away is now known as SWPadnos 17:09:57 rayh has joined #emc-devel 17:11:59 hey there - would you like a copy of the (still not working right) test.tcl? 17:12:36 sure. 17:13:06 ok. I added console prints in every function, so we know what the args passed are 17:14:33 dcc? 17:14:42 yep :) 17:15:56 nothing to this irc stuff. 17:16:04 as usual, this works great with bc, but not with halcmd 17:16:17 heh - once you get all the firewalling set up correctly :) 17:16:31 I don't quite understand why bc works and halcmd doesn't. 17:16:37 me either 17:16:49 There was a lot of talk about using Don Libes Expect instead of tcl 17:16:58 I saw that 17:17:04 but I'd hate to have to add another package 17:17:13 yep 17:17:28 Don works a building north of Fred Proctor. 17:17:38 the other interesting thing is that the programs don't seem to get cleaned up when you hit "close" 17:17:47 hey - the transfer was aborted 17:18:28 darn I got a zero file. try it again. 17:19:44 I can probably email you if necessary 17:20:50 Says that it's done but 0 length file. 17:21:01 ok - I'll mail it 17:21:09 tnx 17:22:20 rayh has quit 17:22:42 rayh has joined #emc-devel 17:23:10 it should be on the way now 17:23:19 thanks 17:23:39 I added a quit button (bound to escape), and an edit box for the command to run 17:24:02 but the programs don't go away when you close the file 17:24:38 if you ctrl-Z, then ps axf, you see anything you've opened, even if you also closed it (within test.tcl) 17:31:20 did you get the email? 17:32:29 Yep. Trying your work now. 17:32:53 phone 17:37:48 ok - back 17:55:30 incidentally, one thing I found is that halcmd is getting the commands, it's the return information that I can't seem to locate :) 17:55:42 Right. 17:55:56 oh - and don't send a "quit" command ;) 17:56:16 And it reads the empty reply from a command properly. 17:57:06 It doesn't return an errror if halcmd fails. Is that the -k arg? 17:58:23 rayh@ray64:~/emcdevelop/emc2$ bin/halcmd -sk newsig MySig3 bit 17:58:24 HAL: ERROR: duplicate signal 'MySig3' 17:58:24 HAL:0: newsig failed 17:58:27 -k means "keep going after errors" 17:58:35 right. 17:58:54 above is the reply I get when I try to duplicate an existing sig 17:59:03 in a terminal 17:59:16 but see nothing in the tcl. 18:01:54 ah it is a definite buffering problem in halcmd. 18:02:07 let me edit a response and you can see what I mean. 18:03:34 Opened file25 18:03:35 show sig M 18:03:35 (no answer here) 18:03:35 show pin 18:03:36 % 18:03:36 ... Done 18:03:37 bit FALSE MySig1 18:03:39 ... Done 18:03:41 bit FALSE MySig2 18:03:43 ... Done 18:03:45 bit FALSE MySig3 18:03:47 ... Done 18:10:39 phone 18:14:35 Looks like a 2.4-2.7k buffer 18:14:46 I got that from "show pin" 18:14:56 and it got about half way through the list. 18:15:56 hey - you actually got output :) 18:17:49 Oh yea. 18:17:58 Just not enough of it. 18:18:02 heh 18:18:16 I get 0, which is also not enough 18:18:28 Is there a way to tell halcmd to flush the buffer on each output. 18:18:43 Try show pin 18:18:43 halcmd does no buffering 18:19:02 I was using status, which always generates some output 18:19:06 you'll see about half the pins 18:19:08 had no config loaded 18:19:20 oh I see. 18:19:45 i'd bet if you enter an empty command a couple times after the status you'll see it. 18:20:18 nope 18:20:36 nope 18:20:50 what did you change to get some output? (if anything) 18:21:33 status 18:21:34 % 18:21:34 ... Done 18:21:34 HAL locking status: 18:21:35 ... Done 18:21:35 current lock value 0 (00) 18:21:36 ... Done 18:21:38 HAL_LOCK_NONE - nothing is locked 18:21:40 ... Done 18:21:42 HAL memory status 18:21:44 ... Done 18:21:46 used/total shared memory: 31177/65500 18:21:54 It's there. 18:22:33 maybe I'll just rebuild emc2 - this is a bit out of date 18:22:52 I'll load up the univstep config and see if a big buffer gets me anything 18:24:00 k 18:24:40 back in a minute - might as well get the mail while it's compiling 18:26:34 I had to issue "status" 11 times to get a response. 18:27:10 12 times 18:28:56 29 times to get a return from "show sig M" 18:30:44 does halcmd write to stdout or stderr? 18:30:59 stdout, I think 18:31:44 but it does mix printf with rtapi_print 18:32:10 hmm 18:32:27 rtapi_print uses puts (..., stdout) 18:32:40 fputs 18:32:41 changed -buffering to none and it made no difference. 18:32:44 maybe you should put fflush() after that 18:32:45 phone 18:32:55 I just tried that as well - same here 18:34:59 you put fflush in halcmd? 18:35:07 nope 18:35:36 I wonder if bc uses that? 18:35:44 bc works fine, halcmd doesn't 18:35:59 dunno 18:39:31 yep - they do use it - I'll add it to halcmd 18:41:01 yay 18:42:12 Wah, another death defying act. 18:42:22 Thanks guys. 18:42:39 hey - that did it. thanks, Chris 18:43:35 looks like I need to clean up a thing or two woth script mode though 18:43:38 with 18:43:57 sure, np 18:44:41 How about a val mode while you're at it! 18:44:53 oh what now? ;) 18:45:03 whazzatfer? 18:45:13 send a name and get it's value 18:45:59 what, it isn't enough that you can say "name = newvalue" ? 18:46:22 I was thinking of a querry. 18:46:37 I know. I'll look into it 18:46:51 How about if there is nothing after the equals it replies with the current value 18:46:55 I think it's not so simple though 18:47:13 then make that a part of 2.2 or later. 18:47:15 it may be that simple - I'll check 18:47:40 wow, you guys are awesome. 18:48:28 I guess you can get rid of all that debugging code now ;) 18:49:05 all we need are a couple of the proc's. I'll put em into halconfig. 18:49:14 and do some testing. 18:49:41 On second thought we ought to build a routine that gets replies from a list of pins or sigs. 18:49:42 I'm assuming that you only want this query to work for pins and signals 18:49:50 let me add that here and get it to you. 18:50:08 the fileevent thing is pretty cool - did you leave that in? 18:50:34 Yes. 18:50:48 The problem with it was that there was no event. 18:50:55 yep ;) 18:51:14 Tried it the other day with no success. 18:52:22 ah 18:54:06 ok - doing the name only query could get weird. what order would you like it to check for pins / params / signals? 19:01:23 ok - I have it doing the value thing, but it still returns the full line like you'd get from show 19:01:35 like "bit FALSE MySig1" 19:03:02 it also does partial matches, since that's what show does anyway 19:03:06 That should be good. the bit tells what kind of widget to use 19:03:15 right. 19:03:23 so the command "MySig" is equivalent to "show all MySig" 19:03:34 That works for me. 19:03:47 ok - I'll commit this, along with the fflush and script mode changes 19:03:59 Fantastic. 19:04:57 You're not using the eof at all? 19:06:00 nope - you would use that when interpreting results 19:06:17 or if you want to use "read" instead of "gets" 19:06:25 that would be a useful test 19:08:08 gets is fine for me. 19:09:02 But we do return the %? 19:09:14 yes 19:09:20 Great. 19:09:24 it's "%\n", so you actually get it with gets 19:12:02 interesting - the halcmd manpage says nothing about show all 19:13:06 do you know how to get bold underlined text in troff (man format)? 19:14:02 Not a clue. 19:14:06 heh -thanks 19:14:13 I wonder what it would take to add halcmd to emcsh 19:14:14 I think I'll eliminate the need instead 19:14:26 Sorry. I believe there is a troff formatter for Lyx. 19:14:30 shouoldn't be too much actually 19:14:34 shouldn't 19:14:51 that's probably the better, but harder, solution 19:14:54 the hard part would be removing all the parsing stuff, and just using the hal access functions 19:14:59 yeah 19:15:49 there should be a C API common to emcsh/cmdline frontend/other gui frontend 19:16:03 How would you use "halcmd to emcsh" 19:16:43 Oh. I see. You'd make a button that issued a halcmd. 19:17:03 well - you'd have the halcmd commands added to emcsh 19:17:05 Right out of the gui. 19:17:11 so you can access emc and HAL from the same pipe 19:17:34 i.e. so there are tcl commands that do hal things 19:18:20 Since tcl can open a channel to halcmd from the emcsh shell there should be no need. 19:18:45 it would eliminate any possible problems with zombie child processes though 19:18:53 this code will break if halcmd dies for some reason 19:20:59 argh - the commit message got lost 19:21:47 fix it with cvs admin 19:22:02 can a non-admin do that? 19:22:14 one way to find out 19:22:20 heh 19:22:44 it's not really admin 19:23:00 it's the functions you do with the rcs program (not co/ci) if you're using rcs 19:23:09 do you know what cvs command would be used? 19:23:26 cvs admin -m1.2.3.4:'this is my checkin message' filename 19:23:37 fill in the appropriate version, message, filename of course 19:23:49 hmmm - OK. I'll try that. 19:26:05 do I have to checkin or anything after that? 19:26:14 no, just look at the log and see if it changed 19:28:27 ok - that worked. thanks 19:29:23 np 19:29:33 I'm quite the problem solver today 19:29:34 I'm sure jmk wil lhave something to say about the new feature though ;) 19:29:36 heh 19:29:55 tell him either this, or you'll stick it in emcsh and make him write tcl 19:30:14 nah - you tell him. You're chairman of the board. 19:30:33 bah 19:30:39 a tcl interpreter can create subinterpreters with specific sets of defined commands. 19:32:42 you'd likely get a big efficiency boost by making a "halsh" 19:33:16 emcsh.cc is a big file 19:34:54 yes it is. 19:35:30 I think alex was talking about building something that paralleled iocontrol 19:35:51 but used the command set from emcsh. 19:36:01 for userspace commands? 19:36:07 Right. 19:36:10 odd 19:37:00 cycle start would be one example 19:37:37 The idea would be pins into emc 19:43:53 interesting 20:24:50 * rayh shovels snow to prepare for the next batch. 20:24:57 rayh has quit 21:21:03 hello 21:21:09 gah 21:21:11 um - hello 21:21:29 * alex_joni just woke up.. 21:21:41 must have been a late night 21:22:55 yeah.. early morning :D 21:23:01 but it's late night now ;) 21:29:23 midafternoon, you meas :) 21:29:28 mean 21:36:17 who owns a motenc or motenc lite card around here? 21:37:09 Ray, probably 21:37:26 but I think he said they're "all out on loan" 21:39:51 that was about the STG afaik 21:40:00 s/afaik/iirc/ 21:40:15 OK - my memory certainly isn't infallible 21:42:42 certainly, I wouldn't wanna argue you on that 21:43:01 heh - thanks 22:15:47 logger_devel has joined #emc-devel 22:15:47 topic is: "Welcome to the Enhanced Machine Control development place. | Regular Developers' meetings 24/7 !" 22:15:47 Users on #emc-devel: logger_devel anonimasu jtr_ alex_joni LawrenceG SWPadnos_ SWPadnos jtr_away cradek @ChanServ 22:47:34 rayh has joined #emc-devel 22:58:28 rayh is now known as rayh_away 23:37:42 rayh_away is now known as rayh 23:47:35 hmmm - I was just thinking about the halcmd changes I made 23:47:53 and 23:48:00 I think jmk won't like them because they change the semantics of halcmd 23:48:16 it used to be command parameters 23:48:23 now it can also be "parameter" 23:48:38 I thought it was param 23:48:46 additionally, the method breaks if you want something with the same name as a command 23:49:04 ie, you make a signal named "show" for example 23:49:18 okay. 23:49:56 or, we add a command called "mysig" later :) 23:50:25 I'll leave them in until he complains though 23:50:46 did you put the new stuff in man? 23:50:52 I did 23:50:57 I forgot to update the help text though 23:51:04 (from -h or help) 23:52:44 SWPadnos___ has joined #emc-devel 23:53:12 SWPadnos___ is now known as SWP_Away 23:53:33 SWPadnos has quit 23:53:41 SWP_Away is now known as SWPadnos 23:53:49 hmm - that was odd. 23:53:54 what was the last thing you got? 23:55:19 Signoff: SWPadnos (Nick collision from services.) 23:55:19 SWP_Away is now known as SWPadnos 23:55:19 < 23:55:34 I mean from me :) 23:55:50 I didn't see anything from you after the question about the manpages 23:56:06 I did 23:56:06 I forgot to update the help text though 23:56:06 (from -h or help) 23:56:13 ah 23:56:20 it would be interesting to make a script mode for help, so a script can find out the available ocmmands 23:56:22 commands 23:57:41 Sort of like the "discovery" methods used in halconfig. 23:58:03 sort of 23:58:25 also useful if a comand is added to halcmd, and a script depends on it (can refuse to run if it's not available) 23:58:42 sure 23:59:36 just a [string first *save*] sor of thing. 23:59:42 sort