IT-LIST Digest 47Topics covered in this issue include:  1) invalid page fault message	by mandarino@uthscsa.edu (Larry Mandarino)  2) More stacks problems	by Linnea Ista   3) identifying objects -Reply	by "R. Naimi"   4) binary file question	by Laura Louise Cowen   5) Can IT be run with a macro as a command line argument?	by Keith Humphrey <100121.3325@CompuServe.COM>  6) Default Spatial Calibration	by hclack@titanium.ME.Berkeley.EDU (Herek Lerron Clack)  7) Problem installing acquisition plug ins	by Ben Strowbridge   8) Re: Can IT be run with a macro as a command line argument?	by "S. Brent Dove"   9) Re: binary file question	by "S. Brent Dove"  10) Re: invalid page fault message	by "S. Brent Dove"  11) Re: More stacks problems	by "S. Brent Dove"  12) Re: Can IT be run with a macro as a command line argument?	by John Irving  13) Macro language	by "Tony Collins" ----------------------------------------------------------------------Date: Thu, 12 Sep 1996 09:53:23 -0500 (CDT)From: mandarino@uthscsa.edu (Larry Mandarino)To: IT-LIST@sparky.uthscsa.eduSubject: invalid page fault messageMessage-ID: <01I9DY67GQ3I000LE5@uthscsa.edu>I have just down-loaded IT and it seems to run fine with just one problem.When I try to Acquire!select source to set the source to a Twain compatiblescanner (I down-loaded the Twain source manager dll), I get the message"invalid page fault in kernel 32.dll at 0137:BPF9928z" and a bunch of stackinfo.  IT terminates and I get thrown back into Windows.  Any ideas?Larry Mandarino------------------------------Date: Mon, 16 Sep 1996 10:34:32 -0600 (MDT)From: Linnea Ista To: itlist Subject: More stacks problemsMessage-ID: Hi!I wrote about a week ago with a problem retrieving stacks after I had saved them. I ran into another problem today. I am needing to do an overnight experiment and thought that maybe if I selected the "save to file" option in the DT Multi image acquisition menu that this would solve the problem. I got it all set up and then I got the "This program has performed an illegal operation and will be shut down" message from Win95.Just to refresh your memory, I am running Win95 on a gateway p5-120 with a Pentium processor, a DT3155 board and IT 1.25.Any help would be greatly appreciated!Thanks,Linnea------------------------------Date: Mon, 16 Sep 1996 11:30:00 +001 (GMT0)From: "R. Naimi" To: it-list@sparky.uthscsa.eduSubject: identifying objects -ReplyMessage-ID: <323D3A49.92FC.0000@lut.ac.uk>Hi everyone,After some time, I bought a DT3155 for the Image Tool and now I have a lotof problems and the computer crashes periodically as a result of trying to runIT(1.25).I have a Pentium 100 MHz with 32 M RAM and am trying to capture imagesfrom a monochrome camera at the moment and at the final stage, I*ll becapturing images from a video player.I installed both DTOL and DTOL95,I initially set it up for 1 M of Image RAM and I had problems trying to getmore than one image. So I increased it to 8 M and this still did not solve myproblem.For instance, while running the DT*s own software Acq2hst, it can only take 2 images andthen it returns with an unable to acquire status message of internal FIFOoverflowed (OLC_STS_FIFO_OVERFLOW), and then I can take another onewithout this message and then every other capture gives the same error.When I try to run IT and select the source it performs an illegal operation andshuts down.When I Acquire using Data Translation Acquisition: I get an Invalid page faultin module CW3220.DLL and IT crashes.When I Acquire using Data Translation Multiimage Acquisition onto the stack,the program crashes without getting any image giving an invalid page fault(OWL50F.DLL and KERNEL32.DLL).After all these the windows become unstable and crashes.  Is there anything I need to do to avoid these problems? And if so, what can Ido to get IT working with Image tool?Appreciate any comments.Thanks in advance,R.Naimi------------------------------Date: Tue, 17 Sep 1996 21:38:25 -0700 (PDT)From: Laura Louise Cowen To: IT-LIST@sparky.uthscsa.eduSubject: binary file questionMessage-ID: <199609180438.VAA05998@fraser>Presently i am trying to save a portion of an image and then try to countthe black and white pixels of that saved portion.  The problem is when Isave my selected portion, image tool will not give my a binary option yetto annalyse the pixels it requires my image to be a binary file.  Is therea problem with the gray scale somehow being saved?  Any ideas how toresolve this problem? -- Laura Cowen          lcowen@sfu.ca------------------------------Date: 18 Sep 96 08:56:52 EDTFrom: Keith Humphrey <100121.3325@CompuServe.COM>To: Image Tool Users Subject: Can IT be run with a macro as a command line argument?Message-ID: <960918125652_100121.3325_EHQ41-1@CompuServe.COM>Can IT be run with a macro as a command line argument?If not, can it be controlled by an external program like excel? Keith------------------------------Date: Wed, 18 Sep 1996 14:22:08 -0700From: hclack@titanium.ME.Berkeley.EDU (Herek Lerron Clack)To: it-list@sparky.uthscsa.eduSubject: Default Spatial CalibrationMessage-ID: <199609182122.OAA14246@titanium.ME.Berkeley.EDU>I'm processing large #'s of images.  The manual says that once youload a spatial calibration, and answer "yes" to whether you wantit to be the default calibration, that calibration should remainfor all measurements and for all images as long as you don'tquit out of IT.However each time I open a new image, if I don't reload the spatial calibration, the object analysis plug-in writes datato the results window in the unit of pixels. Is there something I'm doing wrong?Thanks,Herek------------------------------Date: Wed, 18 Sep 1996 14:48:46 -0700 (PDT)From: Ben Strowbridge To: it-list@sparky.uthscsa.eduSubject: Problem installing acquisition plug insMessage-ID: I have just installed IT 1.25 on a pentium with the DT3155 running NT 4.0and cannot get the acquistion menu to come up. The other plug inmodules seem to work fine, however when I inquire about the DT dlls, ITsays "not a valid plug-in". Is there a special DTOL.DLL for NT (the manualmentions DTOLNT.DLL but that wasn't in the zip file.)Thanks,Ben Strowbridge------------------------------Date: Thu, 19 Sep 1996 15:59:44 -0500 (CDT)From: "S. Brent Dove" To: IT List Subject: Re: Can IT be run with a macro as a command line argument?Message-ID: <01I9O2ZSIU5W002D9T@uthscsa.edu>Recently on ITLISt>Can IT be run with a macro as a command line argument?>>If not, can it be controlled by an external program like excel? We are presently working on a version of ImageTool 2.0 which will support a complete scripting language similar to NIH Image's macro language.  It is basically a text file which is interpreted at runtime.  We are also looking into making ImageTool OLE controllable form other applications.  We will keep you posted as this work proceeds. Thank you for your interest in UTHSCSA ImageTool.S. Brent Dove                            Voice: (210) 567-3333Diagnostic Sciences                      Fax:   (210) 567-3334University of Texas                      Email: dove@uthscsa.eduHealth Science Center                    Web:   ddsdx.uthscsa.eduSan Antonio, TX    USA                   ftp:   maxrad6.uthscsa.edu------------------------------Date: Thu, 19 Sep 1996 15:59:46 -0500 (CDT)From: "S. Brent Dove" To: IT List Subject: Re: binary file questionMessage-ID: <01I9O2ZV8CZ2002D9T@uthscsa.edu>Recently Laura wrote:>>Presently i am trying to save a portion of an image and then try to count>the black and white pixels of that saved portion.  The problem is when I>save my selected portion, image tool will not give my a binary option yet>to annalyse the pixels it requires my image to be a binary file.  Is there>a problem with the gray scale somehow being saved?  Any ideas how to>resolve this problem? -- In order to perform the operation you will need to first save the portion of the image that you want to analyze as a separate image.  This appears to be no problem.  You will next need to segment the image by selecting the  Threshold|Manual from the Processing menu.  Set the threshold by moving the slider bars to separate the black pixels (which will be red in the  image) from the white.  Click OK. A black and white binary image will be displayed in a new window on the screen. Next, select Count Black/White Pixels... from the Analysis menu. The results will be placed in the Results window.  In the results window Black Count, White Count, Black % and White % should be listed.  Good luck.S. Brent Dove                            Voice: (210) 567-3333Diagnostic Sciences                      Fax:   (210) 567-3334University of Texas                      Email: dove@uthscsa.eduHealth Science Center                    Web:   ddsdx.uthscsa.eduSan Antonio, TX    USA                   ftp:   maxrad6.uthscsa.edu------------------------------Date: Thu, 19 Sep 1996 15:59:47 -0500 (CDT)From: "S. Brent Dove" To: IT List Subject: Re: invalid page fault messageMessage-ID: <01I9O2ZX6JYQ002D9T@uthscsa.edu>Recently on ITList,>I have just down-loaded IT and it seems to run fine with just one problem.>When I try to Acquire!select source to set the source to a Twain compatible>scanner (I down-loaded the Twain source manager dll), I get the message>"invalid page fault in kernel 32.dll at 0137:BPF9928z" and a bunch of stack>info.  IT terminates and I get thrown back into Windows.  Any ideas?You need to make sure that you have the necessary TWAIN DLLs for the Windows 95 environment these are different for Windows 3.11, Windows 95 and Windows NT.  These may or may not come with your scanner.  If you have an application running under Win95 which correctly interfaces with the scanner, ImageTool should also work since they will use the same TWAIN source manager and TWAIN drivers to interface to the scanner.  See if you can get the scanner working with a the test software that was sent with the scanner. Then check with ImageTool.You can also directly go to the TWAIN site athttp://www.twain.orgSelect the code link on the home page and you can download the files you need.I hope this helps.  Also please give us more details about the type of scanners and hardware you are using. So long for now.S. Brent Dove                            Voice: (210) 567-3333Diagnostic Sciences                      Fax:   (210) 567-3334University of Texas                      Email: dove@uthscsa.eduHealth Science Center                    Web:   ddsdx.uthscsa.eduSan Antonio, TX    USA                   ftp:   maxrad6.uthscsa.edu------------------------------Date: Thu, 19 Sep 1996 15:59:50 -0500 (CDT)From: "S. Brent Dove" To: IT List Subject: Re: More stacks problemsMessage-ID: <01I9O2ZXW092002D9T@uthscsa.edu>Recently Linea wrote,>I wrote about a week ago with a problem retrieving stacks after I had >saved them. I ran into another problem today. I am needing to do an >overnight experiment and thought that maybe if I selected the "save to >file" option in the DT Multi image acquisition menu that this would solve >the problem. I got it all set up and then I got the "This program has >performed an illegal operation and will be shut down" message from Win95.I need a little bit more information to try and duplicate the error.  What were the specific parameters you selected for the DT Multiimage acquisition. S. Brent Dove                            Voice: (210) 567-3333Diagnostic Sciences                      Fax:   (210) 567-3334University of Texas                      Email: dove@uthscsa.eduHealth Science Center                    Web:   ddsdx.uthscsa.eduSan Antonio, TX    USA                   ftp:   maxrad6.uthscsa.edu------------------------------Date: Thu, 19 Sep 1996 22:01:38 -0700 (PDT)From: John Irving To: it-list@sparky.uthscsa.eduSubject: Re: Can IT be run with a macro as a command line argument?Message-ID: <199609200501.WAA15098@andorra.it.earthlink.net>Keith,     There seems to be very little about this subject.      I wanted to program my scanner to make copies.  I tried to do this usinga program call WINBATCH, a 32-bit program which writes windows batch filesand which is available free for the trial athttp://www.windowware.com/winware/download.html.    This trial package includes a program "WDF-EXE" that identifies the true.WDF and .EXE files at the heart of a program and also indicates whether theprogram is 16-bit.  My scanning software is ART-SCAN version 3.94, whichemploys a 32-bit TWAIN driver, but "WDF-EXE" indicates that the programitself is 16-bit. I just found this out a few days ago.      About three weeks ago I FAXed Morrie Wilson of Wilson WindowWare (&visa-versa) who lives nearby in West Seattle.  I mentioned to him that thereare a number of graphic professionals who would like to be able to automatethe process of scanning and filing graphic images, and I described thesituation to him as best I could and asked him for some pointers, but I havereceived no response from him as yet--even though he seems very muchcommited to providing tech support.       Anyway, I tried to find the TWAIN package of drivers to run 'IT' withoutinvolving the  ART-SCAN program at all---to see if I could get a pure 32-bitthing going with WINBATCH. Sadly, when I tried to track down the TWAINpackage from the leads I got from 'IT', I found myself on yet another wildgoose chase. When I run 'IT' I must also run ART-SCAN.     MEGASCAN by TEAM GRAPHICS permits the user to scan directly intoCorelDRAW!@ version 5.  A new version of MEGASCAN for CorelDRAW!@ version 6is to be examined in CompuServe, but I don't have CompuServe; CorelDRAW!@version 6 incorporates the use of SCRIPTS.......     Let me know if you come up with any clues.                           Thanks,                              John IrvingAt 08:05 AM 9/18/96 +0600, you wrote:>Can IT be run with a macro as a command line argument?>>If not, can it be controlled by an external program like excel? >>Keith>>>------------------------------Date: Fri, 20 Sep 1996 10:02:26 +0000From: "Tony Collins" To: it-list@sparky.uthscsa.eduSubject: Macro languageMessage-ID: <1BFE04407A8@srv0.bio.ed.ac.uk>I note with interest the suggestion that a more complete macro language is to be included in IT. I am a simple biologist and C++ programming is beyond me, as it is for most biologists.I am currently trying to get IT to drive a filter wheel assembly, between acquiring images.What is required is for certain values to be written to certain memoryaddresses. With a macro language this is trivial, even for a biologist! I can get Optimas ALI macros to power the filter wheel witha combination of PortOutByte and PortOutWord functions which write8-bit and 16 bit values respectively to one or more outputports, the macros 6 lines are long. I'm sure that writing such a plug-in is trivial too for an experienced programmer, but there needs to be a great deal of learning the basics before it becomes trivial, and I'm too busy doing biology!The macro script is a great idea. Keep up the good work.Tony CollinsICMBUniversity of Edinburgh------------------------------End of IT-LIST Digest 47